Types
KEvent {.importc: "struct kevent", header: """#include <sys/types.h> #include <sys/event.h> #include <sys/time.h>""", pure, final.} = object ident*: uint ## identifier for this event (uintptr_t) filter*: cshort ## filter for event flags*: cushort ## general flags fflags*: cuint ## filter-specific flags data*: int ## filter-specific data (intptr_t) udata*: pointer ## opaque user data identifier
- Source Edit
Consts
EV_ADD = 0x00000001
- Add event to queue (implies enable). Re-adding an existing element modifies it. Source Edit
EV_DISABLE = 0x00000008
- Disable event (not reported). Source Edit
EV_DISPATCH = 0x00000080
- Disable event after reporting. Source Edit
EV_ONESHOT = 0x00000010
- Only report one occurrence. Source Edit
EV_RECEIPT = 0x00000040
- Force EV_ERROR on success, data == 0 Source Edit
EV_SYSFLAGS = 0x0000F000
- Reserved by system Source Edit
EVFILT_AIO = -3
- attached to aio requests Source Edit
EVFILT_LIO = -10
- attached to lio requests Source Edit
EVFILT_PROC = -5
- attached to struct proc Source Edit
EVFILT_READ = -1
- Source Edit
EVFILT_SIGNAL = -6
- attached to struct proc Source Edit
EVFILT_TIMER = -7
- timers Source Edit
EVFILT_USER = -11
- user events Source Edit
EVFILT_VNODE = -4
- attached to vnodes Source Edit
EVFILT_WRITE = -2
- Source Edit
NOTE_ATTRIB = 0x00000008
- attributes changed Source Edit
NOTE_CHILD = 0x00000004'u32
- am a child process Source Edit
NOTE_DELETE = 0x00000001
- vnode was removed Source Edit
NOTE_EXTEND = 0x00000004
- size increased Source Edit
NOTE_FFAND = 0x40000000'u32
- AND fflags Source Edit
NOTE_FFCOPY = 0xC0000000'u32
- copy fflags Source Edit
NOTE_FFCTRLMASK = 0xC0000000'u32
- masks for operations Source Edit
NOTE_FFLAGSMASK = 0x00FFFFFF'u32
- Source Edit
NOTE_FFNOP = 0x00000000'u32
- ignore input fflags Source Edit
NOTE_LOWAT = 0x00000001
- low water mark Source Edit
NOTE_MSECONDS = 0x00000002'u32
- data is milliseconds Source Edit
NOTE_NSECONDS = 0x00000008'u32
- data is nanoseconds Source Edit
NOTE_PCTRLMASK = 0xF0000000'u32
- mask for hint bits Source Edit
NOTE_PDATAMASK = 0x000FFFFF'u32
- mask for pid Source Edit
NOTE_RENAME = 0x00000020
- vnode was renamed Source Edit
NOTE_REVOKE = 0x00000040
- vnode access was revoked Source Edit
NOTE_SECONDS = 0x00000001'u32
- data is seconds Source Edit
NOTE_TRACK = 0x00000001'u32
- follow across forks Source Edit
NOTE_TRACKERR = 0x00000002'u32
- could not track child Source Edit
NOTE_TRIGGER = 0x01000000'u32
- Cause the event to be triggered for output. Source Edit
NOTE_USECONDS = 0x00000004'u32
- data is microseconds Source Edit
NOTE_WRITE = 0x00000002
- data contents changed Source Edit