module Unix_exts:Some POSIX system calls missing in thesig
..end
Unix
moduleval int_of_file_descr : Unix.file_descr -> int
val file_descr_of_int : int -> Unix.file_descr
val _exit : int -> unit
exit
.val sysconf_open_max : unit -> int
fd
:
fd < sysconf_open_max()
val getpgid : int -> int
val getpgrp : unit -> int
getpgid 0
, i.e. returns the process group ID of the
current process.val setpgid : int -> int -> unit
setpgid pid pgid
: Set the process group ID of the process pid
to pgid
. If pid = 0
, the process group ID of the current process
is changed. If pgid = 0
, as process group ID the process ID of the
process referenced by pid
is used.
It is only possible for a process to join a process group if both
belong to the same session.
val setpgrp : unit -> unit
setpgid 0 0
: A new process group ID is created, and the
current process becomes its sole member.val tcgetpgrp : Unix.file_descr -> int
val tcsetpgrp : Unix.file_descr -> int -> unit
val ctermid : unit -> string
val ttyname : Unix.file_descr -> string
val getsid : int -> int
val setreuid : int -> int -> unit
val setregid : int -> int -> unit