![]() | Library Documentation | Structures | Signatures | Identifiers | Packages | About |
POSIX_PROCENV (basis)Operations for accessing POSIC process environments.
The structure Posix.ProcEnv specifies functions, as described in Section 4 of the POSIX standard 1003.1,1996[CITE], which provide primitive POSIX access to the process environment.signature POSIX_PROCENV =
sig
eqtype pid
eqtype uid
eqtype gid
eqtype file_desc
val uidToWord : uid -> SysWord.word
val wordToUid : SysWord.word -> uid
val gidToWord : gid -> SysWord.word
val wordToGid : SysWord.word -> gid
val getpid : unit -> pid
val getppid : unit -> pid
val getuid : unit -> uid
val geteuid : unit -> uid
val getgid : unit -> gid
val getegid : unit -> gid
val setuid : uid -> unit
val setgid : gid -> unit
val getgroups : unit -> gid list
val getlogin : unit -> string
val getpgrp : unit -> pid
val setsid : unit -> pid
val setpgid : {pid : pid option, pgid : pid option} -> unit
val uname : unit -> (string * string) list
val time : unit -> Time.time
val times : unit -> { elapsed : Time.time,
utime : Time.time,
stime : Time.time,
cutime : Time.time,
cstime : Time.time
}
val getenv : string -> string option
val environ : unit -> string list
val ctermid : unit -> string
val ttyname : file_desc -> string
val isatty : file_desc -> bool
val sysconf : string -> SysWord.word
end
"ARG_MAX" Maximum length of arguments, in bytes, for the
functions Posix.Process.exec, Posix.Process.exece,
and Posix.Process.execp. This also applies to
environment data.
"CHILD_MAX" Maximum number of concurrent processes
associated with a real user ID.
"CLK_TCK" Number of clock ticks per second.
"NGROUPS_MAX" Maximum number of supplementary group IDs
associated with a process, in addition to the
effective group ID.
"OPEN_MAX" Maximum number of files that one process can
have open concurrently.
"STREAM_MAX" Maximum number of streams that one process can
have open concurrently.
"TZNAME_MAX" Maximum number bytes allowed for a time zone
name.
"JOB_CONTROL" Non-zero if the implementation supports job
control.
"SAVED_IDS" Non-zero if each process has a saved set-user-ID
and saved set-group-ID.
"VERSION" A version number.
Consult Section 4.8 of POSIX standard 1003.1,1996 for additional
information. Note that a property in SML has the same name as the
property in C, but without the prefix "_SC_".