]> gitweb.factorcode.org Git - factor.git/blob - basis/unix/kqueue/netbsd/netbsd.factor
Merge branch 'master' of git://factorcode.org/git/factor
[factor.git] / basis / unix / kqueue / netbsd / netbsd.factor
1 USING: alien.c-types alien.syntax classes.struct unix.time ;
2 IN: unix.kqueue
3
4 STRUCT: kevent
5     { ident  ulong }
6     { filter uint }
7     { flags  uint }
8     { fflags uint }
9     { data   longlong }
10     { udata  void* } ;
11
12 FUNCTION: int kevent ( int kq, kevent* changelist, size_t nchanges, kevent* eventlist, size_t nevents, timespec* timeout ) ;
13
14 CONSTANT: EVFILT_READ     0
15 CONSTANT: EVFILT_WRITE    1
16 CONSTANT: EVFILT_AIO      2 ! attached to aio requests
17 CONSTANT: EVFILT_VNODE    3 ! attached to vnodes
18 CONSTANT: EVFILT_PROC     4 ! attached to struct proc
19 CONSTANT: EVFILT_SIGNAL   5 ! attached to struct proc
20 CONSTANT: EVFILT_TIMER    6 ! timers
21 CONSTANT: EVFILT_SYSCOUNT 7 ! Filesystem events