module Unix:sig..end
Core.Unix.Core.Unix.val fork_exec : ?stdin:Core.Unix.File_descr.t ->
?stdout:Core.Unix.File_descr.t ->
?stderr:Core.Unix.File_descr.t ->
?path_lookup:bool ->
?env:[ `Extend of (string * string) list | `Replace of (string * string) list ] ->
?working_dir:string ->
?setuid:int -> ?setgid:int -> string -> string list -> Core.Std.Pid.tfork_exec prog args ~stdin ~stdout ~stderr ~setuid ~setgid
forks a new process that executes the program
in file prog, with arguments args. The pid of the new
process is returned immediately; the new process executes
concurrently with the current process.
The function raises EPERM if when using set{gid,uid} and the user id is
not 0.
The standard input and outputs of the new process are connected
to the descriptors stdin, stdout and stderr.
The close_on_exec flag is cleared from stderr stdout and stdin so it's
safe to pass in fds with close_on_exec set.
path_lookup : if true than we use PATH to find the process to exec.val seteuid : int -> unitval setreuid : uid:int -> euid:int -> unitval gettid : unit -> intval ntohl : Core.Int32.t -> Core.Int32.tval htonl : Core.Int32.t -> Core.Int32.ttype statvfs = {
|
bsize : |
(* | file system block size | *) |
|
frsize : |
(* | fragment size | *) |
|
blocks : |
(* | size of fs in frsize units | *) |
|
bfree : |
(* | # free blocks | *) |
|
bavail : |
(* | # free blocks for non-root | *) |
|
files : |
(* | # inodes | *) |
|
ffree : |
(* | # free inodes | *) |
|
favail : |
(* | # free inodes for non-root | *) |
|
fsid : |
(* | file system ID | *) |
|
flag : |
(* | mount flags | *) |
|
namemax : |
(* | maximum filename length | *) |
val statvfs : string -> statvfsval getloadavg : unit -> float * float * floatmodule Extended_passwd:sig..end
val strptime : fmt:string -> string -> Core.Unix.tmmodule Inet_port:sig..end
module Mac_address:sig..end
module Quota:sig..end
module Mount_entry:sig..end
val bin_statvfs : statvfs Bin_prot.Type_class.tval bin_read_statvfs : statvfs Bin_prot.Read.readerval __bin_read_statvfs__ : (int -> statvfs) Bin_prot.Read.readerval bin_reader_statvfs : statvfs Bin_prot.Type_class.readerval bin_size_statvfs : statvfs Bin_prot.Size.sizerval bin_write_statvfs : statvfs Bin_prot.Write.writerval bin_writer_statvfs : statvfs Bin_prot.Type_class.writerval statvfs_of_sexp : Sexplib.Sexp.t -> statvfsval sexp_of_statvfs : statvfs -> Sexplib.Sexp.tof_passwd_line parse a passwd-like lineof_passwd_line_exn parse a passwd-like lineof_passwd_file parse a passwd-like fileof_passwd_file_exn parse a passwd-like file