|
#define | EVFILT_READ (-1) |
|
#define | EVFILT_WRITE (-2) |
|
#define | EVFILT_AIO (-3) /* attached to aio requests */ |
|
#define | EVFILT_VNODE (-4) /* attached to vnodes */ |
|
#define | EVFILT_PROC (-5) /* attached to struct proc */ |
|
#define | EVFILT_SIGNAL (-6) /* attached to struct proc */ |
|
#define | EVFILT_TIMER (-7) /* timers */ |
|
#define | EVFILT_NETDEV (-8) /* network devices */ |
|
#define | EVFILT_SYSCOUNT 8 |
|
#define | EV_SET(kevp_, a, b, c, d, e, f) |
|
#define | EV_ADD 0x0001 /* add event to kq (implies enable) */ |
|
#define | EV_DELETE 0x0002 /* delete event from kq */ |
|
#define | EV_ENABLE 0x0004 /* enable event */ |
|
#define | EV_DISABLE 0x0008 /* disable event (not reported) */ |
|
#define | EV_ONESHOT 0x0010 /* only report one occurrence */ |
|
#define | EV_CLEAR 0x0020 /* clear event state after reporting */ |
|
#define | EV_SYSFLAGS 0xF000 /* reserved by system */ |
|
#define | EV_FLAG1 0x2000 /* filter-specific flag */ |
|
#define | EV_EOF 0x8000 /* EOF detected */ |
|
#define | EV_ERROR 0x4000 /* error, data contains errno */ |
|
#define | NOTE_LOWAT 0x0001 /* low water mark */ |
|
#define | NOTE_DELETE 0x0001 /* vnode was removed */ |
|
#define | NOTE_WRITE 0x0002 /* data contents changed */ |
|
#define | NOTE_EXTEND 0x0004 /* size increased */ |
|
#define | NOTE_ATTRIB 0x0008 /* attributes changed */ |
|
#define | NOTE_LINK 0x0010 /* link count changed */ |
|
#define | NOTE_RENAME 0x0020 /* vnode was renamed */ |
|
#define | NOTE_REVOKE 0x0040 /* vnode access was revoked */ |
|
#define | NOTE_EXIT 0x80000000 /* process exited */ |
|
#define | NOTE_FORK 0x40000000 /* process forked */ |
|
#define | NOTE_EXEC 0x20000000 /* process exec'd */ |
|
#define | NOTE_PCTRLMASK 0xf0000000 /* mask for hint bits */ |
|
#define | NOTE_PDATAMASK 0x000fffff /* mask for pid */ |
|
#define | NOTE_TRACK 0x00000001 /* follow across forks */ |
|
#define | NOTE_TRACKERR 0x00000002 /* could not track child */ |
|
#define | NOTE_CHILD 0x00000004 /* am a child process */ |
|
#define | NOTE_LINKUP 0x0001 /* link is up */ |
|
#define | NOTE_LINKDOWN 0x0002 /* link is down */ |
|
#define | NOTE_LINKINV 0x0004 /* link state is invalid */ |
|