version 1.4, 2015/08/01 10:47:30 |
version 1.5, 2016/01/08 16:17:31 |
|
|
char *name; |
char *name; |
int (*pollfd)(void *, struct pollfd *); |
int (*pollfd)(void *, struct pollfd *); |
int (*revents)(void *, struct pollfd *); |
int (*revents)(void *, struct pollfd *); |
/* |
/* |
* we have to handle POLLIN and POLLOUT events |
* we have to handle POLLIN and POLLOUT events |
* in separate handles, since handling POLLIN can |
* in separate handles, since handling POLLIN can |
* close the file, and continuing (to handle POLLOUT) |
* close the file, and continuing (to handle POLLOUT) |
|
|
#define FILE_INIT 0 /* ready */ |
#define FILE_INIT 0 /* ready */ |
#define FILE_ZOMB 1 /* closed, but not free()d yet */ |
#define FILE_ZOMB 1 /* closed, but not free()d yet */ |
unsigned int state; /* one of above */ |
unsigned int state; /* one of above */ |
unsigned int max_nfds; /* max number of descriptors */ |
unsigned int max_nfds; /* max number of descriptors */ |
unsigned int nfds; /* number of descriptors polled */ |
unsigned int nfds; /* number of descriptors polled */ |
char *name; /* for debug purposes */ |
char *name; /* for debug purposes */ |
}; |
}; |