Changeset 698 for trunk/server/source3/lib
- Timestamp:
- Apr 23, 2012, 7:29:26 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/source3/lib/os2helper.c
r672 r698 180 180 */ 181 181 182 / / OS/2 specific pipe implementation, we have to use socketpair as select on filehandle is not working183 // and we have to use local variables to be sure we use low mem, as socketpair doesn't work in high mem 182 /* OS/2 specific pipe implementation, we have to use socketpair as select on 183 filehandle is not working. */ 184 184 int os2_pipe(int fds[2]) 185 185 { 186 int mypair[2];187 186 int rc = 0; 188 187 189 rc = socketpair(AF_UNIX, SOCK_STREAM, 0, mypair); 190 if (rc >= 0) { 191 fds[0] = mypair[0]; 192 fds[1] = mypair[1]; 193 } 194 188 rc = socketpair(AF_UNIX, SOCK_STREAM, 0, fds); 195 189 return rc; 196 190 } 197 191 192 #if 0 198 193 // OS/2 specific connect() implementation, as it only works in low mem 199 194 int os2_connect(int fd, const struct sockaddr *address, int address_len) … … 212 207 return rc; 213 208 } 209 #endif 214 210 215 211 /* OS/2-specific random functions. these functions used to be based on APR
Note:
See TracChangeset
for help on using the changeset viewer.