You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// This is the maximum size of the process's virtual memory (address space). The limit is specified in bytes, and is rounded down to the system page size.
20
+
/// This is the maximum size of the process's virtual memory (address space). The limit is
21
+
/// specified in bytes, and is rounded down to the system page size.
22
+
RLIMIT_AS,
23
+
/// This is the maximum size of a core file (see core(5)) in bytes that the process may
24
+
/// dump.
25
+
RLIMIT_CORE,
26
+
/// This is a limit, in seconds, on the amount of CPU time that the process can consume.
27
+
RLIMIT_CPU,
28
+
/// This is the maximum size of the process's data segment (initialized data, uninitialized
29
+
/// data, and heap). The limit is specified in bytes, and is rounded down to the system
30
+
/// page size.
31
+
RLIMIT_DATA,
32
+
/// This is the maximum size in bytes of files that the process may create. Attempts to
33
+
/// extend a file beyond this limit result in delivery of a SIGXFSZ signal.
34
+
RLIMIT_FSIZE,
35
+
/// This specifies a value one greater than the maximum file descriptor number that can be
36
+
/// opened by this process.
37
+
RLIMIT_NOFILE,
38
+
/// This is the maximum size of the process stack, in bytes. Upon reaching this limit, a
39
+
/// SIGSEGV signal is generated.
40
+
RLIMIT_STACK,
41
+
42
+
// BSDs and Linux
43
+
/// This is the maximum number of bytes of memory that may be locked into RAM. This limit
44
+
/// is in effect rounded down to the nearest multiple of the system page size.
/// The maximum size (in bytes) of the swap space that may be reserved or used by all of this user id's processes.
93
+
#[cfg(target_os = "freebsd")]
94
+
RLIMIT_SWAP,
95
+
}
96
+
}
97
+
98
+
#[cfg(not(target_os = "linux"))]
99
+
libc_enum!{
100
+
/// A resource that limits apply to
101
+
#[repr(i32)]
102
+
pubenumResource{
103
+
// POSIX
104
+
/// This is the maximum size of the process's virtual memory (address space). The limit is
105
+
/// specified in bytes, and is rounded down to the system page size.
15
106
RLIMIT_AS,
16
-
/// This is the maximum size of a core file (see core(5)) in bytes that the process may dump.
107
+
/// This is the maximum size of a core file (see core(5)) in bytes that the process may
108
+
/// dump.
17
109
RLIMIT_CORE,
18
110
/// This is a limit, in seconds, on the amount of CPU time that the process can consume.
19
111
RLIMIT_CPU,
20
-
/// This is the maximum size of the process's data segment (initialized data, uninitialized data, and heap). The limit is specified in bytes, and is rounded down to the system page size.
112
+
/// This is the maximum size of the process's data segment (initialized data, uninitialized
113
+
/// data, and heap). The limit is specified in bytes, and is rounded down to the system
114
+
/// page size.
21
115
RLIMIT_DATA,
22
-
/// This is the maximum size in bytes of files that the process may create. Attempts to extend a file beyond this limit result in delivery of a SIGXFSZ signal.
116
+
/// This is the maximum size in bytes of files that the process may create. Attempts to
117
+
/// extend a file beyond this limit result in delivery of a SIGXFSZ signal.
23
118
RLIMIT_FSIZE,
24
-
/// This specifies a value one greater than the maximum file descriptor number that can be opened by this process.
119
+
/// This specifies a value one greater than the maximum file descriptor number that can be
120
+
/// opened by this process.
25
121
RLIMIT_NOFILE,
26
-
/// This is the maximum size of the process stack, in bytes. Upon reaching this limit, a SIGSEGV signal is generated.
122
+
/// This is the maximum size of the process stack, in bytes. Upon reaching this limit, a
123
+
/// SIGSEGV signal is generated.
27
124
RLIMIT_STACK,
28
125
29
126
// BSDs and Linux
30
-
/// This is the maximum number of bytes of memory that may be locked into RAM. This limit is in effect rounded down to the nearest multiple of the system page size.
127
+
/// This is the maximum number of bytes of memory that may be locked into RAM. This limit
128
+
/// is in effect rounded down to the nearest multiple of the system page size.
/// This specifies a ceiling to which the process's nice value can be raised using setpriority(2) or nice(2). The actual ceiling for the nice value is calculated as 20 - rlim_cur.
147
+
/// This specifies a ceiling to which the process's nice value can be raised using
148
+
/// setpriority(2) or nice(2). The actual ceiling for the nice value is calculated as 20 -
/// This is a limit (in microseconds) on the amount of CPU time that a process scheduled under a real-time scheduling policy may consume without making a blocking system call.
156
+
/// This is a limit (in microseconds) on the amount of CPU time that a process scheduled
157
+
/// under a real-time scheduling policy may consume without making a blocking system call.
/// This is a limit on the number of signals that may be queued for the real user ID of the calling process. Both standard and real-time signals are counted for the purpose of checking this limit.
160
+
/// This is a limit on the number of signals that may be queued for the real user ID of the
161
+
/// calling process. Both standard and real-time signals are counted for the purpose of
0 commit comments