Enum nix::unistd::SysconfVar
source · [−]#[repr(i32)]
pub enum SysconfVar {
ARG_MAX,
CHILD_MAX,
CLK_TCK,
LOGIN_NAME_MAX,
NGROUPS_MAX,
OPEN_MAX,
_POSIX_VERSION,
PAGE_SIZE,
RE_DUP_MAX,
STREAM_MAX,
TTY_NAME_MAX,
TZNAME_MAX,
}
Expand description
Variable names for sysconf
Nix uses the same naming convention for these variables as the
getconf(1) utility.
That is, SysconfVar
variables have the same name as the abstract variables
shown in the sysconf(3)
man page. Usually, it’s the same as the C
variable name without the leading _SC_
.
All of these symbols are standardized by POSIX 1003.1-2008, but haven’t been implemented by all platforms.
References
Variants
ARG_MAX
Maximum length of argument to the exec functions including environment data.
CHILD_MAX
Maximum number of simultaneous processes per real user ID.
CLK_TCK
LOGIN_NAME_MAX
Maximum length of a login name.
NGROUPS_MAX
Maximum number of simultaneous supplementary group IDs per process.
OPEN_MAX
A value one greater than the maximum value that the system may assign to a newly-created file descriptor.
_POSIX_VERSION
Integer value indicating version of this standard (C-language binding) to which the implementation conforms. For implementations conforming to POSIX.1-2008, the value shall be 200809L.
PAGE_SIZE
The size of a system page in bytes.
POSIX also defines an alias named PAGESIZE
, but Rust does not allow two
enum constants to have the same value, so nix omits PAGESIZE
.
RE_DUP_MAX
STREAM_MAX
TTY_NAME_MAX
TZNAME_MAX
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SysconfVar
impl Send for SysconfVar
impl Sync for SysconfVar
impl Unpin for SysconfVar
impl UnwindSafe for SysconfVar
Blanket Implementations
Mutably borrows from an owned value. Read more