summaryrefslogtreecommitdiff
path: root/src/unix/notbsd/linux/other/mod.rs
diff options
context:
space:
mode:
authorgnzlbg <gnzlbg@users.noreply.github.com>2019-05-31 16:43:54 +0200
committerGitHub <noreply@github.com>2019-05-31 16:43:54 +0200
commitcdc48ea36d8d2890dba38e8f779001e6855339a2 (patch)
tree7abb9dcb498adbcf7753b970cb1dbc67cb67dca9 /src/unix/notbsd/linux/other/mod.rs
parent0e39a5432f3b2d94077efe4f35da0799383c3fd3 (diff)
parente07cd949b0f5f30c009066b8c074ae32afd7feed (diff)
downloadrust-libc-0.2.57.tar.gz
Merge pull request #1382 from gnzlbg/rlimit_consts0.2.57
Fix type of RLIMIT consts on linux gnu
Diffstat (limited to 'src/unix/notbsd/linux/other/mod.rs')
-rw-r--r--src/unix/notbsd/linux/other/mod.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/unix/notbsd/linux/other/mod.rs b/src/unix/notbsd/linux/other/mod.rs
index e95e11cd3e..7ce58adb8d 100644
--- a/src/unix/notbsd/linux/other/mod.rs
+++ b/src/unix/notbsd/linux/other/mod.rs
@@ -340,6 +340,17 @@ cfg_if! {
}
}
+pub const RLIMIT_CPU: ::__rlimit_resource_t = 0;
+pub const RLIMIT_FSIZE: ::__rlimit_resource_t = 1;
+pub const RLIMIT_DATA: ::__rlimit_resource_t = 2;
+pub const RLIMIT_STACK: ::__rlimit_resource_t = 3;
+pub const RLIMIT_CORE: ::__rlimit_resource_t = 4;
+pub const RLIMIT_LOCKS: ::__rlimit_resource_t = 10;
+pub const RLIMIT_SIGPENDING: ::__rlimit_resource_t = 11;
+pub const RLIMIT_MSGQUEUE: ::__rlimit_resource_t = 12;
+pub const RLIMIT_NICE: ::__rlimit_resource_t = 13;
+pub const RLIMIT_RTPRIO: ::__rlimit_resource_t = 14;
+
pub const MADV_SOFT_OFFLINE: ::c_int = 101;
pub const MS_RMT_MASK: ::c_ulong = 0x02800051;