ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev.h
(Generate patch)

Comparing libev/ev.h (file contents):
Revision 1.21 by root, Fri Nov 2 20:05:05 2007 UTC vs.
Revision 1.24 by root, Sat Nov 3 09:19:58 2007 UTC

170/* revent EV_CHILD */ 170/* revent EV_CHILD */
171struct ev_child 171struct ev_child
172{ 172{
173 EV_WATCHER_LIST (ev_child); 173 EV_WATCHER_LIST (ev_child);
174 174
175 int pid; /* ro */ 175 int pid; /* ro */
176 int rpid; /* rw, holds the received pid */
176 int status; /* rw, holds the exit status, use the macros from sys/wait.h */ 177 int rstatus; /* rw, holds the exit status, use the macros from sys/wait.h */
177}; 178};
178 179
179#define EVMETHOD_AUTO 0 /* consults environment */ 180#define EVMETHOD_AUTO 0 /* consults environment */
180#define EVMETHOD_SELECT 1 181#define EVMETHOD_SELECT 1
181#define EVMETHOD_POLL 2 182#define EVMETHOD_POLL 2
182#define EVMETHOD_EPOLL 4 183#define EVMETHOD_EPOLL 4
184#define EVMETHOD_KQUEUE 8
185#define EVMETHOD_DEVPOLL 16 /* NYI */
186#define EVMETHOD_PORT 32 /* NYI */
183#define EVMETHOD_ANY ~0 /* any method, do not consult env */ 187#define EVMETHOD_ANY ~0 /* any method, do not consult env */
184#if EV_PROTOTYPES 188#if EV_PROTOTYPES
185extern int ev_method; 189extern int ev_method;
186int ev_init (int methods); /* returns ev_method */ 190int ev_init (int methods); /* returns ev_method */
187int ev_version_major (void); 191int ev_version_major (void);
188int ev_version_minor (void); 192int ev_version_minor (void);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines