More kqueue changes
parent
14d97f3b01
commit
e61f63b2c9
|
@ -11,3 +11,13 @@ C-STRUCT: kevent
|
|||
;
|
||||
|
||||
FUNCTION: int kevent ( int kq, kevent* changelist, int nchanges, kevent* eventlist, int nevents, timespec* timeout ) ;
|
||||
|
||||
: EVFILT_READ -1 ; inline
|
||||
: EVFILT_WRITE -2 ; inline
|
||||
: EVFILT_AIO -3 ; inline ! attached to aio requests
|
||||
: EVFILT_VNODE -4 ; inline ! attached to vnodes
|
||||
: EVFILT_PROC -5 ; inline ! attached to struct proc
|
||||
: EVFILT_SIGNAL -6 ; inline ! attached to struct proc
|
||||
: EVFILT_TIMER -7 ; inline ! timers
|
||||
: EVFILT_NETDEV -8 ; inline ! Mach ports
|
||||
: EVFILT_FS -9 ; inline ! Filesystem events
|
||||
|
|
|
@ -7,16 +7,6 @@ IN: unix.kqueue
|
|||
|
||||
FUNCTION: int kqueue ( ) ;
|
||||
|
||||
: EVFILT_READ -1 ; inline
|
||||
: EVFILT_WRITE -2 ; inline
|
||||
: EVFILT_AIO -3 ; inline ! attached to aio requests
|
||||
: EVFILT_VNODE -4 ; inline ! attached to vnodes
|
||||
: EVFILT_PROC -5 ; inline ! attached to struct proc
|
||||
: EVFILT_SIGNAL -6 ; inline ! attached to struct proc
|
||||
: EVFILT_TIMER -7 ; inline ! timers
|
||||
: EVFILT_MACHPORT -8 ; inline ! Mach ports
|
||||
: EVFILT_FS -9 ; inline ! Filesystem events
|
||||
|
||||
! actions
|
||||
: EV_ADD HEX: 1 ; inline ! add event to kq (implies enable)
|
||||
: EV_DELETE HEX: 2 ; inline ! delete event from kq
|
||||
|
|
|
@ -11,3 +11,13 @@ C-STRUCT: kevent
|
|||
;
|
||||
|
||||
FUNCTION: int kevent ( int kq, kevent* changelist, int nchanges, kevent* eventlist, int nevents, timespec* timeout ) ;
|
||||
|
||||
: EVFILT_READ -1 ; inline
|
||||
: EVFILT_WRITE -2 ; inline
|
||||
: EVFILT_AIO -3 ; inline ! attached to aio requests
|
||||
: EVFILT_VNODE -4 ; inline ! attached to vnodes
|
||||
: EVFILT_PROC -5 ; inline ! attached to struct proc
|
||||
: EVFILT_SIGNAL -6 ; inline ! attached to struct proc
|
||||
: EVFILT_TIMER -7 ; inline ! timers
|
||||
: EVFILT_MACHPORT -8 ; inline ! Mach ports
|
||||
: EVFILT_FS -9 ; inline ! Filesystem events
|
||||
|
|
|
@ -12,3 +12,11 @@ C-STRUCT: kevent
|
|||
|
||||
FUNCTION: int kevent ( int kq, kevent* changelist, size_t nchanges, kevent* eventlist, size_t nevents, timespec* timeout ) ;
|
||||
|
||||
: EVFILT_READ 0 ; inline
|
||||
: EVFILT_WRITE 1 ; inline
|
||||
: EVFILT_AIO 2 ; inline ! attached to aio requests
|
||||
: EVFILT_VNODE 3 ; inline ! attached to vnodes
|
||||
: EVFILT_PROC 4 ; inline ! attached to struct proc
|
||||
: EVFILT_SIGNAL 5 ; inline ! attached to struct proc
|
||||
: EVFILT_TIMER 6 ; inline ! timers
|
||||
: EVFILT_SYSCOUNT 7 ; inline ! Filesystem events
|
||||
|
|
|
@ -12,3 +12,10 @@ C-STRUCT: kevent
|
|||
|
||||
FUNCTION: int kevent ( int kq, kevent* changelist, size_t nchanges, kevent* eventlist, size_t nevents, timespec* timeout ) ;
|
||||
|
||||
: EVFILT_READ -1 ; inline
|
||||
: EVFILT_WRITE -2 ; inline
|
||||
: EVFILT_AIO -3 ; inline ! attached to aio requests
|
||||
: EVFILT_VNODE -4 ; inline ! attached to vnodes
|
||||
: EVFILT_PROC -5 ; inline ! attached to struct proc
|
||||
: EVFILT_SIGNAL -6 ; inline ! attached to struct proc
|
||||
: EVFILT_TIMER -7 ; inline ! timers
|
||||
|
|
Loading…
Reference in New Issue