| 28 |
28 |
| 29 #else |
29 #else |
| 30 #include <sys/socket.h> |
30 #include <sys/socket.h> |
| 31 #endif |
31 #endif |
| 32 |
32 |
| 33 Code_t Z_WaitForNotice (notice, pred, arg, timeout) |
33 Code_t |
| 34 ZNotice_t *notice; |
34 Z_WaitForNotice(ZNotice_t *notice, int (*pred)(ZNotice_t *, void *), void *arg, |
| 35 int (*pred)(ZNotice_t *, void *); |
35 int timeout) |
| 36 void *arg; |
|
| 37 int timeout; |
|
| 38 { |
36 { |
| 39 Code_t retval; |
37 Code_t retval; |
| 40 struct timeval tv, t0; |
38 struct timeval tv, t0; |
| 41 fd_set fdmask; |
39 fd_set fdmask; |
| 42 int i, fd; |
40 int i, fd; |