version 1.2, 2015/07/17 09:51:18 |
version 1.3, 2015/07/17 10:15:24 |
|
|
|
|
struct file { |
struct file { |
struct file *next; /* next in file_list */ |
struct file *next; /* next in file_list */ |
struct pollfd *pfd; /* arg to poll(2) syscall */ |
|
struct fileops *ops; /* event handlers */ |
struct fileops *ops; /* event handlers */ |
void *arg; /* argument to event handlers */ |
void *arg; /* argument to event handlers */ |
#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 */ |
|
int nfds; /* number of descriptors polled */ |
char *name; /* for debug purposes */ |
char *name; /* for debug purposes */ |
}; |
}; |
|
|