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

14 lines
490 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
unix io.backend io.backend.unix io.backend.unix.multiplexers
io.backend.unix.multiplexers.kqueue io.files.unix ;
IN: io.backend.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> ;