Ticket #55: DSS-6.0.3-linux.patch
| File DSS-6.0.3-linux.patch, 10.2 KB (added by bero@…, 3 years ago) |
|---|
-
DarwinStreamingSrvr6.0.3-Source/APICommonCode/QTAccessFile.cpp
old new 46 46 47 47 48 48 #include <grp.h> 49 #ifdef __MacOSX__ 49 50 #include <membership.h> 51 #endif 50 52 #include <pwd.h> 51 53 #include <signal.h> 52 54 #include <unistd.h> … … 613 615 614 616 bool DSAccessFile::CheckGroupMembership(const char* inUsername, const char* inGroupName) 615 617 { 618 #ifdef __MacOSX__ 616 619 // In Tiger, group membership is painfully simple: we ask memberd for it! 617 620 struct passwd *user = NULL; 618 621 struct group *group = NULL; … … 641 644 if ( mbr_check_membership(userID, groupID, &isMember) ) 642 645 return false; 643 646 return (bool)isMember; 647 #else 648 struct group *group = getgrnam(inGroupName); 649 if(!group) 650 return false; 651 int i=0; 652 while(group->gr_mem[i]) 653 if(!strcasecmp(inUsername, group->gr_mem[i])) 654 return true; 655 return false; 656 #endif 644 657 } 645 658 646 659 Bool16 DSAccessFile::ValidUser( char*userName, void* extraDataPtr) -
DarwinStreamingSrvr6.0.3-Source/CommonUtilitiesLib/OSHeaders.h
old new 120 120 121 121 122 122 #elif __linux__ || __linuxppc__ || __FreeBSD__ 123 124 #include <stdint.h> 123 125 124 126 /* Defines */ 125 127 #define _64BITARG_ "q" 126 128 #define _S64BITARG_ "lld" 127 129 #define _U64BITARG_ "llu" 128 #if __LP64__130 #if __LP64__ 129 131 #define _S32BITARG_ "d" 130 132 #define _U32BITARG_ "u" 131 #else 133 #define _SPOINTERSIZEARG_ _S64BITARG_ 134 #define _UPOINTERSIZEARG_ _U64BITARG_ 135 #else 132 136 #define _S32BITARG_ "ld" 133 137 #define _U32BITARG_ "lu" 134 #endif 138 #define _SPOINTERSIZEARG_ _S32BITARG_ 139 #define _UPOINTERSIZEARG_ _U32BITARG_ 140 #endif 135 141 136 142 /* paths */ 137 143 #define kEOLString "\n" … … 146 152 #define QT_TIME_TO_LOCAL_TIME (-2082844800) 147 153 #define QT_PATH_SEPARATOR '/' 148 154 155 #define kSInt16_Max (SInt16) SHRT_MAX 156 #define kUInt16_Max (UInt16) USHRT_MAX 157 158 #define kSInt32_Max (SInt32) LONG_MAX 159 #define kUInt32_Max (UInt32) ULONG_MAX 160 161 #define kSInt64_Max (SInt64) LONG_LONG_MAX 162 #define kUInt64_Max (UInt64) ULONG_LONG_MAX 163 149 164 /* Typedefs */ 150 165 typedef signed long PointerSizedInt; 151 166 typedef unsigned long PointerSizedUInt; 152 typedef u nsigned charUInt8;153 typedef signed charSInt8;154 typedef u nsigned shortUInt16;155 typedef signed shortSInt16;156 typedef u nsigned intUInt32;157 typedef signed intSInt32;158 typedef signed int intSInt64;159 typedef u nsigned int intUInt64;167 typedef uint8_t UInt8; 168 typedef int8_t SInt8; 169 typedef uint16_t UInt16; 170 typedef int16_t SInt16; 171 typedef uint32_t UInt32; 172 typedef int32_t SInt32; 173 typedef int64_t SInt64; 174 typedef uint64_t UInt64; 160 175 typedef float Float32; 161 176 typedef double Float64; 162 177 typedef UInt16 Bool16; -
DarwinStreamingSrvr6.0.3-Source/Makefile.POSIX
old new 21 21 CCFLAGS += -IAPICommonCode 22 22 CCFLAGS += -IAPIModules/OSMemory_Modules 23 23 CCFLAGS += -IAPIModules/QTSSAccessLogModule 24 CCFLAGS += -IAPIModules/QTSSDSAuthModule 24 25 CCFLAGS += -IAPIModules/QTSSFileModule 25 26 CCFLAGS += -IAPIModules/QTSSFlowControlModule 26 27 CCFLAGS += -IAPIModules/QTSSReflectorModule … … 71 72 Server.tproj/RTPBandwidthTracker.cpp \ 72 73 Server.tproj/RTPOverbufferWindow.cpp \ 73 74 Server.tproj/RTPSessionInterface.cpp\ 75 Server.tproj/RTPSession3GPP.cpp \ 74 76 Server.tproj/RTPStream.cpp \ 77 Server.tproj/RTPStream3gpp.cpp \ 75 78 Server.tproj/RTSPProtocol.cpp\ 76 79 Server.tproj/RTSPRequest.cpp \ 80 Server.tproj/RTSPRequest3GPP.cpp \ 77 81 Server.tproj/RTSPRequestInterface.cpp\ 78 82 Server.tproj/RTSPRequestStream.cpp \ 79 83 Server.tproj/RTSPResponseStream.cpp\ 80 84 Server.tproj/RTSPSession.cpp \ 85 Server.tproj/RTSPSession3GPP.cpp \ 81 86 Server.tproj/RTSPSessionInterface.cpp\ 82 87 Server.tproj/main.cpp \ 83 88 Server.tproj/RunServer.cpp \ … … 92 97 HTTPUtilitiesLib/HTTPProtocol.cpp \ 93 98 HTTPUtilitiesLib/HTTPRequest.cpp \ 94 99 RTCPUtilitiesLib/RTCPAPPPacket.cpp\ 100 RTCPUtilitiesLib/RTCPAPPNADUPacket.cpp \ 101 RTCPUtilitiesLib/RTCPAPPQTSSPacket.cpp \ 95 102 RTCPUtilitiesLib/RTCPPacket.cpp \ 96 103 RTCPUtilitiesLib/RTCPSRPacket.cpp\ 97 104 RTCPUtilitiesLib/RTCPAckPacket.cpp\ … … 102 109 APICommonCode/SDPSourceInfo.cpp \ 103 110 APICommonCode/SourceInfo.cpp \ 104 111 APICommonCode/QTAccessFile.cpp \ 112 APICommonCode/QTSS3GPPModuleUtils.cpp \ 105 113 SafeStdLib/InternalStdLib.cpp \ 106 114 APIModules/QTSSAccessLogModule/QTSSAccessLogModule.cpp \ 107 115 APIModules/QTSSFileModule/QTSSFileModule.cpp \ -
DarwinStreamingSrvr6.0.3-Source/RTSPClientLib/PlayerSimulator.h
old new 31 31 #ifndef _PLAYERSIMULATOR_H_ 32 32 #define _PLAYERSIMULATOR_H_ 33 33 34 #include "SafeStdLib.h" "34 #include "SafeStdLib.h" 35 35 #include "OSHeaders.h" 36 36 #include "OS.h" 37 37 #include "SVector.h" -
DarwinStreamingSrvr6.0.3-Source/Server.tproj/QTSSErrorLogModule.cpp
old new 41 41 #include "OS.h" 42 42 #include "Task.h" 43 43 44 #ifdef __linux__ 45 size_t strlcpy(char *dst, const char *src, size_t siz); 46 size_t strlcpy(char *dst, const char *src, size_t siz) 47 { 48 char *d = dst; 49 const char *s = src; 50 size_t n = siz; 51 52 /* Copy as many bytes as will fit */ 53 if (n != 0) { 54 while (--n != 0) { 55 if ((*d++ = *s++) == '\0') 56 break; 57 } 58 } 59 60 /* Not enough room in dst, add NUL and traverse rest of src */ 61 if (n == 0) { 62 if (siz != 0) 63 *d = '\0'; /* NUL-terminate dst */ 64 while (*s++) 65 ; 66 } 67 68 return(s - src - 1); /* count does not include NUL */ 69 } 70 #endif 71 44 72 // STATIC FUNCTIONS 45 73 46 74 // The dispatch function for this module -
DarwinStreamingSrvr6.0.3-Source/Server.tproj/QTSServer.cpp
old new 85 85 #include "RTCPTask.h" 86 86 #include "QTSSFile.h" 87 87 88 #include "RTPStream3 GPP.h"88 #include "RTPStream3gpp.h" 89 89 #include "RTSPRequest3GPP.h" 90 90 91 91 // CLASS DEFINITIONS … … 680 680 (void)AddModule(theWebDebug); 681 681 #endif 682 682 683 #ifdef __MacOSX__ 683 684 QTSSModule* theQTSSDSAuthModule = new QTSSModule("QTSSDSAuthModule"); 684 685 (void)theQTSSDSAuthModule->SetupModule(&sCallbacks, &QTSSDSAuthModule_Main); 685 686 (void)AddModule(theQTSSDSAuthModule); 687 #endif 686 688 687 689 QTSSModule* theQTACCESSmodule = new QTSSModule("QTSSAccessModule"); 688 690 (void)theQTACCESSmodule->SetupModule(&sCallbacks, &QTSSAccessModule_Main); -
DarwinStreamingSrvr6.0.3-Source/Server.tproj/RTPSession.cpp
old new 38 38 #include "RTSPProtocol.h" 39 39 #include "QTSServerInterface.h" 40 40 #include "QTSS.h" 41 #include "RTSPRequest3 gpp.h"41 #include "RTSPRequest3GPP.h" 42 42 43 43 #include "OS.h" 44 44 #include "OSMemory.h" -
DarwinStreamingSrvr6.0.3-Source/Server.tproj/RTPStream3gpp.cpp
old new 34 34 #include "RTPStream.h" 35 35 #include "RTPStream3gpp.h" 36 36 #include "RTPSessionInterface.h" 37 #include "RTSPRequest3 gpp.h"37 #include "RTSPRequest3GPP.h" 38 38 #include "RTCPAPPNADUPacket.h" 39 39 40 40 #if DEBUG -
DarwinStreamingSrvr6.0.3-Source/Server.tproj/RTPStream.h
old new 57 57 58 58 #include "RTCPPacket.h" 59 59 60 #include "RTSPRequest3 gpp.h"60 #include "RTSPRequest3GPP.h" 61 61 62 62 #ifndef MIN 63 63 #define MIN(a,b) (((a)<(b))?(a):(b)) -
DarwinStreamingSrvr6.0.3-Source/Server.tproj/RTSPRequest3GPP.cpp
old new 32 32 */ 33 33 34 34 35 #include "RTSPRequest3 gpp.h"35 #include "RTSPRequest3GPP.h" 36 36 #include "RTSPProtocol.h" 37 37 #include "QTSServerInterface.h" 38 38 -
DarwinStreamingSrvr6.0.3-Source/StreamingLoadTool/Makefile.POSIX
old new 22 22 CCFLAGS += -I../PrefsSourceLib 23 23 CCFLAGS += -I../APIStubLib 24 24 CCFLAGS += -I../RTPMetaInfoLib 25 CCFLAGS += -I../RTCPUtilitiesLib 25 26 26 27 # EACH DIRECTORY WITH A STATIC LIBRARY MUST BE APPENDED IN THIS MANNER TO THE LINKOPTS 27 28 … … 39 40 ../PrefsSourceLib/FilePrefsSource.cpp \ 40 41 ../APICommonCode/SDPSourceInfo.cpp \ 41 42 ../APICommonCode/SourceInfo.cpp \ 43 ../RTCPUtilitiesLib/RTCPPacket.cpp \ 42 44 ../RTPMetaInfoLib/RTPMetaInfoPacket.cpp \ 43 45 ../OSMemoryLib/OSMemory.cpp 44 46 -
DarwinStreamingSrvr6.0.3-Source/StreamingLoadTool/StreamingLoadTool.cpp
old new 135 135 #ifndef __Win32__ 136 136 struct sigaction act; 137 137 138 #if defined(sun) || defined(i386) || defined (__MacOSX__) || defined(__powerpc__) || defined (__osf__) || defined (__sgi_cc__) || defined (__hpux__)138 #if defined(sun) || defined(i386) || defined(__x86_64__) || defined (__MacOSX__) || defined(__powerpc__) || defined (__osf__) || defined (__sgi_cc__) || defined (__hpux__) 139 139 sigemptyset(&act.sa_mask); 140 140 act.sa_flags = 0; 141 141 act.sa_handler = (void(*)(int))&sigcatcher;

