factor/basis/io/unix/bsd/bsd.factor

13 lines
418 B
Factor
Raw Normal View History

! Copyright (C) 2008 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license.
2008-04-11 10:54:50 -04:00
USING: namespaces system kernel accessors assocs continuations
2008-12-10 21:24:22 -05:00
unix io.backend io.unix.backend io.unix.kqueue ;
IN: io.unix.bsd
2008-04-02 21:09:56 -04:00
M: bsd init-io ( -- )
2008-12-10 21:24:22 -05:00
<kqueue-mx> mx set-global ;
2008-04-11 10:54:50 -04:00
2008-05-13 19:24:46 -04:00
! M: bsd (monitor) ( path recursive? mailbox -- )
! swap [ "Recursive kqueue monitors not supported" throw ] when
! <vnode-monitor> ;