… | |
… | |
174 | |
174 | |
175 | int pid; /* ro */ |
175 | int pid; /* ro */ |
176 | int status; /* rw, holds the exit status, use the macros from sys/wait.h */ |
176 | int status; /* rw, holds the exit status, use the macros from sys/wait.h */ |
177 | }; |
177 | }; |
178 | |
178 | |
179 | #define EVMETHOD_AUTO 0 /* consults environment */ |
179 | #define EVMETHOD_AUTO 0 /* consults environment */ |
180 | #define EVMETHOD_SELECT 1 |
180 | #define EVMETHOD_SELECT 1 |
181 | #define EVMETHOD_POLL 2 |
181 | #define EVMETHOD_POLL 2 |
182 | #define EVMETHOD_EPOLL 4 |
182 | #define EVMETHOD_EPOLL 4 |
|
|
183 | #define EVMETHOD_KQUEUE 8 |
|
|
184 | #define EVMETHOD_DEVPOLL 16 |
183 | #define EVMETHOD_ANY ~0 /* any method, do not consult env */ |
185 | #define EVMETHOD_ANY ~0 /* any method, do not consult env */ |
184 | #if EV_PROTOTYPES |
186 | #if EV_PROTOTYPES |
185 | extern int ev_method; |
187 | extern int ev_method; |
186 | int ev_init (int methods); /* returns ev_method */ |
188 | int ev_init (int methods); /* returns ev_method */ |
187 | int ev_version_major (void); |
189 | int ev_version_major (void); |
188 | int ev_version_minor (void); |
190 | int ev_version_minor (void); |