include sig ... endval t_of_sexp : Sexplib.Sexp.t ‑> tval sexp_of_t : t ‑> Sexplib.Sexp.tval bin_t : t Bin_prot.Type_class.tval bin_read_t : t Bin_prot.Read.readerval __bin_read_t__ : (int ‑> t) Bin_prot.Read.readerval bin_reader_t : t Bin_prot.Type_class.readerval bin_size_t : t Bin_prot.Size.sizerval bin_write_t : t Bin_prot.Write.writerval bin_writer_t : t Bin_prot.Type_class.writerval bin_shape_t : Bin_prot.Shape.tinclude Core__.Import.Comparable.S with type t := tinclude Core_kernel__.Comparable_intf.S_commoninclude Base.Comparable_intf.Sinclude Base.Comparable_intf.Polymorphic_compareascending is identical to compare. descending x y = ascending y x. These are
intended to be mnemonic when used like List.sort ~cmp:ascending and List.sort
~cmp:descending, since they cause the list to be sorted in ascending or descending
order, respectively.
clamp_exn t ~min ~max returns t', the closest value to t such that
between t' ~low:min ~high:max is true.
Raises if not (min <= max).
val clamp : t ‑> min:t ‑> max:t ‑> t Base.Or_error.tinclude Base.Comparator.S with type t := tval comparator : (t, comparator_witness) Base.Comparator.comparatorinclude Base.Comparable_intf.Validate with type t := tval validate_lbound : min:t Base.Maybe_bound.t ‑> t Base.Validate.checkval validate_ubound : max:t Base.Maybe_bound.t ‑> t Base.Validate.checkval validate_bound : min:t Base.Maybe_bound.t ‑> max:t Base.Maybe_bound.t ‑> t Base.Validate.checkmodule Replace_polymorphic_compare : Core_kernel__.Comparable_intf.Polymorphic_compare with type t := tmodule Map : Core_kernel__.Core_map.S with type Key.t = t with type Key.comparator_witness = comparator_witnessmodule Set : Core_kernel__.Core_set.S with type Elt.t = t with type Elt.comparator_witness = comparator_witnessinclude Core__.Import.Hashable.S with type t := tinclude Core__.Import.Hashable.Commonval hash : t ‑> Core_kernel__.Import.intval compare : t ‑> t ‑> Core_kernel__.Import.intval hashable : t Core__.Import.Hashable.Hashtbl.Hashable.tmodule Table : Core__.Import.Hashable.Hashtbl.S with type key = tmodule Hash_set : Core_kernel.Hash_set.S with type elt = tmodule Hash_queue : Core_kernel.Hash_queue.S with type Key.t = tinclude Core__.Import.Stringable.S with type t := tval of_string : string ‑> tval to_string : t ‑> stringval of_system_int : int ‑> tof_system_int and to_system_int return and take respectively a signal number
corresponding to those in the system's /usr/include/bits/signum.h (or equivalent). It
is not guaranteed that these numbers are portable across any given pair of systems --
although some are defined as standard by POSIX.
val to_system_int : t ‑> intval of_caml_int : int ‑> tof_caml_int constructs a Signal.t given an O'Caml internal signal number. This is
only for the use of the Core_unix module.
val to_caml_int : t ‑> intThe default behaviour of the system if these signals trickle to the top level of a program. See include/linux/kernel.h in the Linux kernel source tree (not the file /usr/include/linux/kernel.h).
include sig ... endval sys_behavior_of_sexp : Sexplib.Sexp.t ‑> sys_behaviorval __sys_behavior_of_sexp__ : Sexplib.Sexp.t ‑> sys_behaviorval sexp_of_sys_behavior : sys_behavior ‑> Sexplib.Sexp.tval default_sys_behavior : t ‑> sys_behaviordefault_sys_behavior t
Query the default system behavior for a signal.
include sig ... endval sexp_of_pid_spec : pid_spec ‑> Sexplib.Sexp.tsend signal pid_spec sends signal to the processes specified by pid_spec.
send_i is like send, except that it silently returns if the specified processes
don't exist.
send_exn is like send, except that it raises if the specified processes
don't exist.
All of send, send_i, and send_exn raise if you don't have permission to send the
signal to the specified processes or if signal is unknown.
val can_send_to : Core__.Import.Pid.t ‑> boolcan_send_to pid returns true if pid is running and the current process has
permission to send it signals.
val sigprocmask : sigprocmask_command ‑> t list ‑> t listsigprocmask cmd sigs changes the set of blocked signals.
* If cmd is `Set, blocked signals are set to those in the list sigs.
* If cmd is `Block, the signals in sigs are added to the set of blocked
* signals.
* If cmd is `Unblock, the signals in sigs are removed from the set of
* blocked signals.
* sigprocmask returns the set of previously blocked signals.
val sigpending : unit ‑> t listsigpending () returns the set of blocked signals that are currently
* pending.
val sigsuspend : t list ‑> unitsigsuspend sigs atomically sets the blocked signals to sigs and waits for
* a non-ignored, non-blocked signal to be delivered. On return, the blocked
* signals are reset to their initial value.
Specific signals, along with their default behavior and meaning.
val zero : tIgnore No-op; can be used to test whether the target
process exists and the current process has
permission to signal it
module Expert : sig ... endThe Expert module contains functions that novice users should avoid, due to their
complexity.