Changeset 699 for branches/samba-3.3.x/source/lib
- Timestamp:
- Apr 23, 2012, 8:01:39 PM (13 years ago)
- Location:
- branches/samba-3.3.x/source/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.3.x/source/lib/os2helper.c
r673 r699 40 40 #include <types.h> 41 41 #include <string.h> 42 #include <sys/socket.h> 42 43 //YD for tmalloc 43 44 #include <malloc.h> … … 177 178 } 178 179 */ 180 181 /* OS/2 specific pipe implementation, we have to use socketpair as select on 182 filehandle is not working. */ 183 int os2_pipe(int fds[2]) 184 { 185 int rc = 0; 186 187 rc = socketpair(AF_UNIX, SOCK_STREAM, 0, fds); 188 return rc; 189 } 190 179 191 /* OS/2-specific random functions. these functions used to be based on APR 180 192 random code, but we discovered some nasty problems with it on fast hardware -
branches/samba-3.3.x/source/lib/select.c
r578 r699 28 28 This means all Samba signal handlers should call sys_select_signal(). 29 29 */ 30 #ifdef __OS2__ 31 #define pipe(A) os2_pipe(A) 32 #endif 30 33 31 34 static pid_t initialised; … … 59 62 60 63 if (initialised != sys_getpid()) { 61 #ifndef __OS2__62 64 if (pipe(select_pipe) == -1) 63 #else64 if (socketpair(AF_UNIX, SOCK_STREAM,0, select_pipe) == -1)65 #endif66 65 smb_panic("Could not create select pipe"); 67 66
Note:
See TracChangeset
for help on using the changeset viewer.