Up

module Extended_linux

: sig
#
type uids = {
# ruid
: int;
# euid
: int;
# suid
: int;
}
#
val setresuid : (?ruid:int -> ?euid:int -> ?suid:int -> unit -> unit) Core.Std.Or_error.t
#
val getresuid : (unit -> uids) Core.Std.Or_error.t
Splicing - zero-copies between kernel buffers
#
module Splice : sig
Splice flags
#
type flag =
# | MOVE
# | NONBLOCK
# | MORE
# | GIFT

Type of Splice event flag

#
type flags

Type of Splice event flags

#
val make_flags : flag array -> flags

make_flags ar

Returns flags constructed from the array of flags ar.
Splice functions
#
val splice : (?assume_fd_is_nonblocking:bool -> fd_in:Core.Std.Unix.File_descr.t -> ?off_in:int -> fd_out:Core.Std.Unix.File_descr.t -> ?off_out:int -> len:int -> flags -> int * int * int) Core.Std.Or_error.t

splice ?assume_fd_is_nonblocking ~fd_in ?off_in ~fd_out ?off_out ~len flags see man-page for details.

Returns the triple (ret, ret_off_in, ret_off_out), where ret corresponds to the return value of the system call, ret_off_in to the final input offset, and ret_off_out to the final output offset.
Raises Unix_error on Unix-errors.
Raises Invalid_argument if the offsets or length are invalid
assume_fd_is_nonblocking default = false
off_in default = 0
off_out default = 0
#
val tee : (?assume_fd_is_nonblocking:bool -> fd_in:Core.Std.Unix.File_descr.t -> fd_out:Core.Std.Unix.File_descr.t -> int -> flags -> int) Core.Std.Or_error.t

tee ?assume_fd_is_nonblocking ~fd_in ~fd_out len flags see man-page for details.

Raises Unix_error on Unix-errors.
Raises Invalid_argument if the length is invalid
assume_fd_is_nonblocking default = false
#
val vmsplice : (?assume_fd_is_nonblocking:bool -> Core.Std.Unix.File_descr.t -> Core.Std.Bigstring.t Core.Std.Unix.IOVec.t array -> ?count:int -> flags -> int) Core.Std.Or_error.t

vmsplice ?assume_fd_is_nonblocking fd iovecs ?count flags see man-page for details.

Raises Unix_error on Unix-errors.
Raises Invalid_argument if the count is invalid
assume_fd_is_nonblocking default = false
count default = Array.length iovecs
#
val bin_flag : flag Core.Std.Bin_prot.Type_class.t
#
val bin_read_flag : flag Core.Std.Bin_prot.Read.reader
#
val __bin_read_flag__ : (int -> flag) Core.Std.Bin_prot.Read.reader
#
val bin_reader_flag : flag Core.Std.Bin_prot.Type_class.reader
#
val bin_size_flag : flag Core.Std.Bin_prot.Size.sizer
#
val bin_write_flag : flag Core.Std.Bin_prot.Write.writer
#
val bin_writer_flag : flag Core.Std.Bin_prot.Type_class.writer
#
val flag_of_sexp : Sexplib.Sexp.t -> flag
#
val sexp_of_flag : flag -> Sexplib.Sexp.t
end
#
module Statfs : sig
#
type f_type =
# | ADFS_SUPER_MAGIC
# | AFFS_SUPER_MAGIC
# | BEFS_SUPER_MAGIC
# | BFS_MAGIC
# | CIFS_MAGIC_NUMBER
# | CODA_SUPER_MAGIC
# | COH_SUPER_MAGIC
# | CRAMFS_MAGIC
# | DEVFS_SUPER_MAGIC
# | EFS_SUPER_MAGIC
# | EXT_SUPER_MAGIC
# | EXT2_OLD_SUPER_MAGIC
# | EXT2_SUPER_MAGIC
# | EXT3_SUPER_MAGIC
# | HFS_SUPER_MAGIC
# | HPFS_SUPER_MAGIC
# | HUGETLBFS_MAGIC
# | ISOFS_SUPER_MAGIC
# | JFFS2_SUPER_MAGIC
# | JFS_SUPER_MAGIC
# | MINIX_SUPER_MAGIC
# | MINIX_SUPER_MAGIC2
# | MINIX2_SUPER_MAGIC
# | MINIX2_SUPER_MAGIC2
# | MSDOS_SUPER_MAGIC
# | NCP_SUPER_MAGIC
# | NFS_SUPER_MAGIC
# | NTFS_SB_MAGIC
# | UNKNOWN_SUPER_MAGIC of Core.Std.Int32.t
#
type t = {
# f_type
: f_type;
# f_bsize
: int;
# f_blocks
: int;
# f_bfree
: int;
# f_bavail
: int;
# f_files
: int;
# f_ffree
: int;
# f_namelen
: int;
}
end
#
val statfs : (string -> Statfs.t) Core.Std.Or_error.t
#
val bin_uids : uids Core.Std.Bin_prot.Type_class.t
#
val bin_read_uids : uids Core.Std.Bin_prot.Read.reader
#
val __bin_read_uids__ : (int -> uids) Core.Std.Bin_prot.Read.reader
#
val bin_reader_uids : uids Core.Std.Bin_prot.Type_class.reader
#
val bin_size_uids : uids Core.Std.Bin_prot.Size.sizer
#
val bin_write_uids : uids Core.Std.Bin_prot.Write.writer
#
val bin_writer_uids : uids Core.Std.Bin_prot.Type_class.writer
#
val uids_of_sexp : Sexplib.Sexp.t -> uids
#
val sexp_of_uids : uids -> Sexplib.Sexp.t
end