… | |
… | |
195 | #define EV_VERSION_MAJOR 4 |
195 | #define EV_VERSION_MAJOR 4 |
196 | #define EV_VERSION_MINOR 0 |
196 | #define EV_VERSION_MINOR 0 |
197 | |
197 | |
198 | /* eventmask, revents, events... */ |
198 | /* eventmask, revents, events... */ |
199 | enum { |
199 | enum { |
200 | EV_UNDEF = -1, /* guaranteed to be invalid */ |
200 | EV_UNDEF = 0xFFFFFFFF, /* guaranteed to be invalid */ |
201 | EV_NONE = 0x00, /* no events */ |
201 | EV_NONE = 0x00, /* no events */ |
202 | EV_READ = 0x01, /* ev_io detected read will not block */ |
202 | EV_READ = 0x01, /* ev_io detected read will not block */ |
203 | EV_WRITE = 0x02, /* ev_io detected write will not block */ |
203 | EV_WRITE = 0x02, /* ev_io detected write will not block */ |
204 | EV__IOFDSET = 0x80, /* internal use only */ |
204 | EV__IOFDSET = 0x80, /* internal use only */ |
205 | EV_IO = EV_READ, /* alias for type-detection */ |
205 | EV_IO = EV_READ, /* alias for type-detection */ |