USING: kernel alien.c-types alien.data alien.strings sequences
math alien.syntax unix namespaces continuations threads assocs
-io.backend.unix io.encodings.utf8 unix.types unix.utilities fry ;
+io.backend.unix io.encodings.utf8 unix.types unix.utilities fry
+unix.ffi ;
IN: unix.process
! Low-level Unix process launching utilities. These are used
: with-fork ( child parent -- )
[ fork-process ] 2dip if-zero ; inline
-CONSTANT: SIGKILL 9
-CONSTANT: SIGTERM 15
-
FUNCTION: int kill ( pid_t pid, int sig ) ;
CONSTANT: PRIO_PROCESS 0
! See http://factorcode.org/license.txt for BSD license.
USING: accessors classes.struct combinators io.backend.unix
io.ports io.serial io.streams.duplex kernel literals math
-system unix unix.ffi ;
+system unix unix.ffi io.serial.linux.ffi ;
IN: io.serial.linux
: fd>duplex-stream ( fd -- duplex-stream )