… | |
… | |
165 | |
165 | |
166 | int pid; /* ro */ |
166 | int pid; /* ro */ |
167 | int status; /* rw, holds the exit status, use the macros from sys/wait.h */ |
167 | int status; /* rw, holds the exit status, use the macros from sys/wait.h */ |
168 | }; |
168 | }; |
169 | |
169 | |
170 | #define EVMETHOD_NONE 0 |
170 | #define EVMETHOD_AUTO 0 /* consults environment */ |
171 | #define EVMETHOD_SELECT 1 |
171 | #define EVMETHOD_SELECT 1 |
172 | #define EVMETHOD_EPOLL 2 |
172 | #define EVMETHOD_POLL 2 |
|
|
173 | #define EVMETHOD_EPOLL 4 |
|
|
174 | #define EVMETHOD_ANY ~0 /* any method, do not consult env */ |
173 | #if EV_PROTOTYPES |
175 | #if EV_PROTOTYPES |
174 | extern int ev_method; |
176 | extern int ev_method; |
175 | int ev_init (int flags); /* returns ev_method */ |
177 | int ev_init (int methods); /* returns ev_method */ |
176 | int ev_version_major (void); |
178 | int ev_version_major (void); |
177 | int ev_version_minor (void); |
179 | int ev_version_minor (void); |
178 | |
180 | |
179 | /* these three calls are suitable for plugging into pthread_atfork */ |
181 | /* these three calls are suitable for plugging into pthread_atfork */ |
180 | void ev_fork_prepare (void); |
182 | void ev_fork_prepare (void); |