1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
pub const NR_OPEN: i32 = 1024;

/// supplemental group IDs are available
pub const NGROUPS_MAX: i32 = 65536;
/// # bytes of args + environ for exec()
pub const ARG_MAX: i32 = 131072;
/// # links a file may have
pub const LINK_MAX: i32 = 127;
/// size of the canonical input queue
pub const MAX_CANON: i32 = 255;
/// size of the type-ahead buffer
pub const MAX_INPUT: i32 = 255;
/// # chars in a file name
pub const NAME_MAX: i32 = 255;
/// # chars in a path name including nul
pub const PATH_MAX: i32 = 4096;
/// # bytes in atomic write to a pipe
pub const PIPE_BUF: i32 = 4096;
/// # chars in an extended attribute name
pub const XATTR_NAME_MAX: i32 = 255;
/// size of an extended attribute value (64k)
pub const XATTR_SIZE_MAX: i32 = 65536;
/// size of extended attribute namelist (64k)
pub const XATTR_LIST_MAX: i32 = 65536;

pub const RTSIG_MAX: i32 = 32;