module UnixExtras: sig end
val make_daemon : (unit -> unit) -> bool -> unit
let _ = UnixExtras.make_daemon server_func true
* will start a new process and run server_func
in it, while the original
* process will exit. See Stevens, Advanced Programming in the Unix Environment
* for details.val send_file : src:Unix.file_descr -> dest:Unix.file_descr -> start:int -> len:int -> int
len
bytes from the src
descr with offset start
and
copies them to the dest
descr. Currently implemented only for Linux
and FreeBSD. The FreeBSD sendfile() system call requires that dest
be
a socket.Unix_error
on failure.
Sevent functions
|
val getservent : unit -> Unix.service_entry
val setservent : bool -> unit
val endservent : unit -> unit