Changeset 658 for trunk/server/source3/lib
- Timestamp:
- Nov 9, 2011, 3:53:47 PM (14 years ago)
- Location:
- trunk/server/source3/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/source3/lib/os2helper.c
r656 r658 192 192 } 193 193 194 // OS/2 specific connect() implementation, as it only works in low mem 195 int os2_connect(int fd, const struct sockaddr *address, int address_len) 196 { 197 struct sockaddr *addresslow; 198 int rc; 199 addresslow = (struct sockaddr*) _lmalloc(address_len); 200 if (!addresslow) 201 return -1; 202 203 memcpy(addresslow, address, address_len); 204 rc = connect(fd, addresslow, address_len); 205 206 free(addresslow); 207 208 return rc; 209 } 210 194 211 /* OS/2-specific random functions. these functions used to be based on APR 195 212 random code, but we discovered some nasty problems with it on fast hardware -
trunk/server/source3/lib/select.c
r656 r658 66 66 67 67 if (initialised != sys_getpid()) { 68 #ifndef __OS2__69 68 if (pipe(select_pipe) == -1) 70 #else71 if (socketpair(AF_UNIX, SOCK_STREAM,0, select_pipe) == -1)72 #endif73 69 { 74 70 DEBUG(0, ("sys_select: pipe failed (%s)\n",
Note:
See TracChangeset
for help on using the changeset viewer.