Changeset 655 for trunk/server/source3/lib
- Timestamp:
- Nov 8, 2011, 1:28:52 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.