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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
/// Resource limit IDs /// /// ( Compatibility detail: there are architectures that have /// a different rlimit ID order in the 5-9 range and want /// to keep that order for binary compatibility. The reasons /// are historic and all new rlimits are identical across all /// arches. If an arch has such special order for some rlimits /// then it defines them prior including asm-generic/resource.h. ) /// CPU time in sec pub const RLIMIT_CPU: i32 = 0; /// Maximum filesize pub const RLIMIT_FSIZE: i32 = 1; /// max data size pub const RLIMIT_DATA: i32 = 2; /// max stack size pub const RLIMIT_STACK: i32 = 3; /// max core file size pub const RLIMIT_CORE: i32 = 4; /// max resident set size pub const RLIMIT_RSS: i32 = 5; /// max number of processes pub const RLIMIT_NPROC: i32 = 6; /// max number of open files pub const RLIMIT_NOFILE: i32 = 7; /// max locked-in-memory address space pub const RLIMIT_MEMLOCK: i32 = 8; /// address space limit pub const RLIMIT_AS: i32 = 9; /// maximum file locks held pub const RLIMIT_LOCKS: i32 = 10; /// max number of pending signals pub const RLIMIT_SIGPENDING: i32 = 11; /// maximum bytes in POSIX mqueues pub const RLIMIT_MSGQUEUE: i32 = 12; /// max nice prio allowed to raise to 0-39 for nice level 19 .. -20 pub const RLIMIT_NICE: i32 = 13; /// maximum realtime priority pub const RLIMIT_RTPRIO: i32 = 14; /// timeout for RT tasks in us pub const RLIMIT_RTTIME: i32 = 15; pub const RLIM_NLIMITS: i32 = 16; /// SuS says limits have to be unsigned. /// Which makes a ton more sense anyway. /// /// Some architectures override this (for compatibility reasons): pub const RLIM_INFINITY: usize = !0;