Changeset 655
- Timestamp:
- Nov 8, 2011, 1:28:52 PM (14 years ago)
- Location:
- trunk/server
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/lib/tevent/tevent_signal.c
r620 r655 31 31 #include "tevent_util.h" 32 32 #ifdef __OS2__ 33 # include <sys/socket.h>33 #define pipe(A) os2_socketpair(A) 34 34 #endif 35 35 … … 249 249 setup */ 250 250 if (ev->pipe_fde == NULL) { 251 #ifndef __OS2__252 251 if (pipe(ev->pipe_fds) == -1) { 253 #else254 if (socketpair(AF_UNIX, SOCK_STREAM,0, ev->pipe_fds) == -1) {255 #endif256 252 talloc_free(se); 257 253 return NULL; -
trunk/server/source3/lib/os2helper.c
r646 r655 18 18 #include <types.h> 19 19 #include <string.h> 20 #include <sys/socket.h> 20 21 //YD for tmalloc 21 22 #include <malloc.h> … … 156 157 } 157 158 */ 159 // OS/2 specific socketpair() implementation, as it only works in low mem 160 int os2_socketpair(int fds[2]) 161 { 162 int mypair[2]; 163 int rc = 0; 164 165 rc = socketpair(AF_UNIX, SOCK_STREAM, 0, mypair); 166 if (rc >= 0) { 167 fds[0] = mypair[0]; 168 fds[1] = mypair[1]; 169 } 170 171 return rc; 172 } 173 158 174 /* OS/2-specific random functions. these functions used to be based on APR 159 175 random code, but we discovered some nasty problems with it on fast hardware -
trunk/server/source3/libsmb/clireadwrite.c
r596 r655 815 815 816 816 writesize = cli_write_max_bufsize(cli, write_mode); 817 817 printf("@remove me: writesize %d\n", writesize); 818 818 blocks = (size + (writesize-1)) / writesize; 819 819
Note:
See TracChangeset
for help on using the changeset viewer.