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

Comparing libev/ev.h (file contents):
Revision 1.196 by root, Thu Jul 11 04:35:48 2019 UTC vs.
Revision 1.199 by root, Sun Dec 22 15:05:31 2019 UTC

213#endif 213#endif
214 214
215/*****************************************************************************/ 215/*****************************************************************************/
216 216
217#define EV_VERSION_MAJOR 4 217#define EV_VERSION_MAJOR 4
218#define EV_VERSION_MINOR 27 218#define EV_VERSION_MINOR 31
219 219
220/* eventmask, revents, events... */ 220/* eventmask, revents, events... */
221enum { 221enum {
222 EV_UNDEF = (int)0xFFFFFFFF, /* guaranteed to be invalid */ 222 EV_UNDEF = (int)0xFFFFFFFF, /* guaranteed to be invalid */
223 EV_NONE = 0x00, /* no events */ 223 EV_NONE = 0x00, /* no events */
502}; 502};
503 503
504/* flag bits for ev_default_loop and ev_loop_new */ 504/* flag bits for ev_default_loop and ev_loop_new */
505enum { 505enum {
506 /* the default */ 506 /* the default */
507 EVFLAG_AUTO = 0x00000000U, /* not quite a mask */ 507 EVFLAG_AUTO = 0x00000000U, /* not quite a mask */
508 /* flag bits */ 508 /* flag bits */
509 EVFLAG_NOENV = 0x01000000U, /* do NOT consult environment */ 509 EVFLAG_NOENV = 0x01000000U, /* do NOT consult environment */
510 EVFLAG_FORKCHECK = 0x02000000U, /* check for a fork in each iteration */ 510 EVFLAG_FORKCHECK = 0x02000000U, /* check for a fork in each iteration */
511 /* debugging/feature disable */ 511 /* debugging/feature disable */
512 EVFLAG_NOINOTIFY = 0x00100000U, /* do not attempt to use inotify */ 512 EVFLAG_NOINOTIFY = 0x00100000U, /* do not attempt to use inotify */
513#if EV_COMPAT3 513#if EV_COMPAT3
514 EVFLAG_NOSIGFD = 0, /* compatibility to pre-3.9 */ 514 EVFLAG_NOSIGFD = 0, /* compatibility to pre-3.9 */
515#endif 515#endif
516 EVFLAG_SIGNALFD = 0x00200000U, /* attempt to use signalfd */ 516 EVFLAG_SIGNALFD = 0x00200000U, /* attempt to use signalfd */
517 EVFLAG_NOSIGMASK = 0x00400000U /* avoid modifying the signal mask */ 517 EVFLAG_NOSIGMASK = 0x00400000U, /* avoid modifying the signal mask */
518 EVFLAG_NOTIMERFD = 0x00800000U /* avoid creating a timerfd */
518}; 519};
519 520
520/* method bits to be ored together */ 521/* method bits to be ored together */
521enum { 522enum {
522 EVBACKEND_SELECT = 0x00000001U, /* available just about anywhere */ 523 EVBACKEND_SELECT = 0x00000001U, /* available just about anywhere */
523 EVBACKEND_POLL = 0x00000002U, /* !win, !aix, broken on osx */ 524 EVBACKEND_POLL = 0x00000002U, /* !win, !aix, broken on osx */
524 EVBACKEND_EPOLL = 0x00000004U, /* linux */ 525 EVBACKEND_EPOLL = 0x00000004U, /* linux */
525 EVBACKEND_KQUEUE = 0x00000008U, /* bsd, broken on osx */ 526 EVBACKEND_KQUEUE = 0x00000008U, /* bsd, broken on osx */
526 EVBACKEND_DEVPOLL = 0x00000010U, /* solaris 8 */ /* NYI */ 527 EVBACKEND_DEVPOLL = 0x00000010U, /* solaris 8 */ /* NYI */
527 EVBACKEND_PORT = 0x00000020U, /* solaris 10 */ 528 EVBACKEND_PORT = 0x00000020U, /* solaris 10 */
528 EVBACKEND_LINUXAIO = 0x00000040U, /* linuix AIO, 4.19+ */ 529 EVBACKEND_LINUXAIO = 0x00000040U, /* linux AIO, 4.19+ */
529 EVBACKEND_IOURING = 0x00000080U, /* linux io_uring, 5.1+ */ 530 EVBACKEND_IOURING = 0x00000080U, /* linux io_uring, 5.1+ */
530 EVBACKEND_ALL = 0x000000FFU, /* all known backends */ 531 EVBACKEND_ALL = 0x000000FFU, /* all known backends */
531 EVBACKEND_MASK = 0x0000FFFFU /* all future backends */ 532 EVBACKEND_MASK = 0x0000FFFFU /* all future backends */
532}; 533};
533 534

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines