#[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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.