Changeset 464 for trunk/server/lib/tevent
- Timestamp:
- Jun 10, 2010, 12:38:39 PM (15 years ago)
- Location:
- trunk/server/lib/tevent
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/lib/tevent/tevent_signal.c
r429 r464 30 30 #include "tevent_internal.h" 31 31 #include "tevent_util.h" 32 #ifdef __OS2__ 33 #include <sys/socket.h> 34 #endif 32 35 33 36 #define TEVENT_NUM_SIGNALS 64 … … 246 249 setup */ 247 250 if (ev->pipe_fde == NULL) { 251 #ifndef __OS2__ 248 252 if (pipe(ev->pipe_fds) == -1) { 253 #else 254 if (socketpair(AF_UNIX, SOCK_STREAM,0, ev->pipe_fds) == -1) { 255 #endif 249 256 talloc_free(se); 250 257 return NULL; -
trunk/server/lib/tevent/tevent_util.c
r414 r464 29 29 #include "tevent_util.h" 30 30 #include <fcntl.h> 31 #ifdef __OS2__ 32 #include <sys/filio.h> 33 #endif 31 34 32 35 /** … … 82 85 if((val = fcntl(fd, F_GETFL, 0)) == -1) 83 86 return -1; 87 #ifndef __OS2__ 84 88 if(set) /* Turn blocking on - ie. clear nonblock flag */ 85 89 val &= ~FLAG_TO_SET; … … 87 91 val |= FLAG_TO_SET; 88 92 return fcntl( fd, F_SETFL, val); 93 #else 94 if(set) /* turn blocking on - ie. clear nonblock flag */ 95 val = 0; 96 else 97 val = 1; 98 return os2_ioctl(fd, FIONBIO, (char *) &val, sizeof(val)); 99 #endif 100 89 101 #undef FLAG_TO_SET 90 102 }
Note:
See TracChangeset
for help on using the changeset viewer.