Enum nix::unistd::SysconfVar
source · [−]#[repr(i32)]
#[non_exhaustive]
pub enum SysconfVar {
Show 75 variants
AIO_LISTIO_MAX,
AIO_MAX,
ARG_MAX,
ATEXIT_MAX,
BC_BASE_MAX,
BC_DIM_MAX,
BC_SCALE_MAX,
BC_STRING_MAX,
CHILD_MAX,
CLK_TCK,
COLL_WEIGHTS_MAX,
DELAYTIMER_MAX,
EXPR_NEST_MAX,
HOST_NAME_MAX,
IOV_MAX,
LINE_MAX,
LOGIN_NAME_MAX,
NGROUPS_MAX,
GETGR_R_SIZE_MAX,
GETPW_R_SIZE_MAX,
MQ_OPEN_MAX,
MQ_PRIO_MAX,
OPEN_MAX,
_POSIX_BARRIERS,
_POSIX_ASYNCHRONOUS_IO,
_POSIX_CLOCK_SELECTION,
_POSIX_CPUTIME,
_POSIX_FSYNC,
_POSIX_IPV6,
_POSIX_JOB_CONTROL,
_POSIX_MAPPED_FILES,
_POSIX_MEMLOCK,
_POSIX_MEMLOCK_RANGE,
_POSIX_MEMORY_PROTECTION,
_POSIX_MESSAGE_PASSING,
_POSIX_MONOTONIC_CLOCK,
_POSIX_PRIORITIZED_IO,
_POSIX_PRIORITY_SCHEDULING,
_POSIX_RAW_SOCKETS,
_POSIX_READER_WRITER_LOCKS,
_POSIX_REGEXP,
_POSIX_SAVED_IDS,
_POSIX_SEMAPHORES,
_POSIX_SHARED_MEMORY_OBJECTS,
_POSIX_SYNCHRONIZED_IO,
_POSIX_THREAD_ATTR_STACKADDR,
_POSIX_THREAD_ATTR_STACKSIZE,
_POSIX_THREAD_PRIO_INHERIT,
_POSIX_THREAD_PRIO_PROTECT,
_POSIX_THREAD_PRIORITY_SCHEDULING,
_POSIX_THREAD_SAFE_FUNCTIONS,
_POSIX_THREADS,
_POSIX_TIMERS,
_POSIX_VERSION,
_POSIX2_C_BIND,
_POSIX2_C_DEV,
_POSIX2_CHAR_TERM,
_POSIX2_FORT_DEV,
_POSIX2_FORT_RUN,
_POSIX2_LOCALEDEF,
_POSIX2_SW_DEV,
_POSIX2_UPE,
_POSIX2_VERSION,
PAGE_SIZE,
PTHREAD_DESTRUCTOR_ITERATIONS,
PTHREAD_KEYS_MAX,
PTHREAD_STACK_MIN,
PTHREAD_THREADS_MAX,
RE_DUP_MAX,
SEM_NSEMS_MAX,
STREAM_MAX,
TIMER_MAX,
TTY_NAME_MAX,
TZNAME_MAX,
_XOPEN_SHM,
}
feature
only.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 (Non-exhaustive)
This enum is marked as non-exhaustive
AIO_LISTIO_MAX
Maximum number of I/O operations in a single list I/O call supported by the implementation.
AIO_MAX
Maximum number of outstanding asynchronous I/O operations supported by the implementation.
ARG_MAX
Maximum length of argument to the exec functions including environment data.
ATEXIT_MAX
Maximum number of functions that may be registered with atexit
.
BC_BASE_MAX
Maximum obase values allowed by the bc utility.
BC_DIM_MAX
Maximum number of elements permitted in an array by the bc utility.
BC_SCALE_MAX
Maximum scale value allowed by the bc utility.
BC_STRING_MAX
Maximum length of a string constant accepted by the bc utility.
CHILD_MAX
Maximum number of simultaneous processes per real user ID.
CLK_TCK
COLL_WEIGHTS_MAX
Maximum number of weights that can be assigned to an entry of the LC_COLLATE order keyword in the locale definition file
DELAYTIMER_MAX
Maximum number of timer expiration overruns.
EXPR_NEST_MAX
Maximum number of expressions that can be nested within parentheses by the expr utility.
HOST_NAME_MAX
Maximum length of a host name (not including the terminating null) as
returned from the gethostname
function
IOV_MAX
Maximum number of iovec structures that one process has available for
use with readv
or writev
.
LINE_MAX
Unless otherwise noted, the maximum length, in bytes, of a utility’s
input line (either standard input or another file), when the utility is
described as processing text files. The length includes room for the
trailing
LOGIN_NAME_MAX
Maximum length of a login name.
NGROUPS_MAX
Maximum number of simultaneous supplementary group IDs per process.
GETGR_R_SIZE_MAX
Initial size of getgrgid_r
and getgrnam_r
data buffers
GETPW_R_SIZE_MAX
Initial size of getpwuid_r
and getpwnam_r
data buffers
MQ_OPEN_MAX
The maximum number of open message queue descriptors a process may hold.
MQ_PRIO_MAX
The maximum number of message priorities supported by the implementation.
OPEN_MAX
A value one greater than the maximum value that the system may assign to a newly-created file descriptor.
_POSIX_BARRIERS
The implementation supports barriers.
_POSIX_ASYNCHRONOUS_IO
The implementation supports asynchronous input and output.
_POSIX_CLOCK_SELECTION
The implementation supports clock selection.
_POSIX_CPUTIME
The implementation supports the Process CPU-Time Clocks option.
_POSIX_FSYNC
The implementation supports the File Synchronization option.
_POSIX_IPV6
The implementation supports the IPv6 option.
_POSIX_JOB_CONTROL
The implementation supports job control.
_POSIX_MAPPED_FILES
The implementation supports memory mapped Files.
_POSIX_MEMLOCK
The implementation supports the Process Memory Locking option.
_POSIX_MEMLOCK_RANGE
The implementation supports the Range Memory Locking option.
_POSIX_MEMORY_PROTECTION
The implementation supports memory protection.
_POSIX_MESSAGE_PASSING
The implementation supports the Message Passing option.
_POSIX_MONOTONIC_CLOCK
The implementation supports the Monotonic Clock option.
_POSIX_PRIORITIZED_IO
The implementation supports the Prioritized Input and Output option.
_POSIX_PRIORITY_SCHEDULING
The implementation supports the Process Scheduling option.
_POSIX_RAW_SOCKETS
The implementation supports the Raw Sockets option.
_POSIX_READER_WRITER_LOCKS
The implementation supports read-write locks.
_POSIX_REGEXP
The implementation supports the Regular Expression Handling option.
_POSIX_SAVED_IDS
Each process has a saved set-user-ID and a saved set-group-ID.
_POSIX_SEMAPHORES
The implementation supports semaphores.
_POSIX_SHARED_MEMORY_OBJECTS
The implementation supports the Shared Memory Objects option.
_POSIX_SYNCHRONIZED_IO
The implementation supports the Synchronized Input and Output option.
_POSIX_THREAD_ATTR_STACKADDR
The implementation supports the Thread Stack Address Attribute option.
_POSIX_THREAD_ATTR_STACKSIZE
The implementation supports the Thread Stack Size Attribute option.
_POSIX_THREAD_PRIO_INHERIT
The implementation supports the Non-Robust Mutex Priority Inheritance option.
_POSIX_THREAD_PRIO_PROTECT
The implementation supports the Non-Robust Mutex Priority Protection option.
_POSIX_THREAD_PRIORITY_SCHEDULING
The implementation supports the Thread Execution Scheduling option.
_POSIX_THREAD_SAFE_FUNCTIONS
The implementation supports thread-safe functions.
_POSIX_THREADS
The implementation supports threads.
_POSIX_TIMERS
The implementation supports timers.
_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.
_POSIX2_C_BIND
The implementation supports the C-Language Binding option.
_POSIX2_C_DEV
The implementation supports the C-Language Development Utilities option.
_POSIX2_CHAR_TERM
The implementation supports the Terminal Characteristics option.
_POSIX2_FORT_DEV
The implementation supports the FORTRAN Development Utilities option.
_POSIX2_FORT_RUN
The implementation supports the FORTRAN Runtime Utilities option.
_POSIX2_LOCALEDEF
The implementation supports the creation of locales by the localedef utility.
_POSIX2_SW_DEV
The implementation supports the Software Development Utilities option.
_POSIX2_UPE
The implementation supports the User Portability Utilities option.
_POSIX2_VERSION
Integer value indicating version of the Shell and Utilities volume of POSIX.1 to which the implementation conforms.
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
.
PTHREAD_DESTRUCTOR_ITERATIONS
PTHREAD_KEYS_MAX
PTHREAD_STACK_MIN
PTHREAD_THREADS_MAX
RE_DUP_MAX
SEM_NSEMS_MAX
STREAM_MAX
TIMER_MAX
TTY_NAME_MAX
TZNAME_MAX
_XOPEN_SHM
The implementation supports the Issue 4, Version 2 Shared Memory Option Group.
Trait Implementations
sourceimpl Clone for SysconfVar
impl Clone for SysconfVar
sourcefn clone(&self) -> SysconfVar
fn clone(&self) -> SysconfVar
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SysconfVar
impl Debug for SysconfVar
sourceimpl Hash for SysconfVar
impl Hash for SysconfVar
sourceimpl PartialEq<SysconfVar> for SysconfVar
impl PartialEq<SysconfVar> for SysconfVar
impl Copy for SysconfVar
impl Eq for SysconfVar
impl StructuralEq for SysconfVar
impl StructuralPartialEq for SysconfVar
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more