diff options
author | Kamal Marhubi <kamal@marhubi.com> | 2016-04-30 10:23:43 -0400 |
---|---|---|
committer | Kamal Marhubi <kamal@marhubi.com> | 2016-04-30 10:43:10 -0400 |
commit | 6b980b1074cfed8c45c8a7f82516b33c0e795f28 (patch) | |
tree | 5b8a63779860b08f63ce846df7ff952cdf7d5aca | |
parent | 6ad1be729a42795e6c11dcc739e55db0cd660954 (diff) | |
download | rust-libc-6b980b1074cfed8c45c8a7f82516b33c0e795f28.tar.gz |
apple: Add RLIMIT_RSS as alias of RLIMIT_AS
This is defined in <sys/resource.h> as
#define RLIMIT_RSS RLIMIT_AS /* source compatibility alias */
See http://opensource.apple.com//source/xnu/xnu-1456.1.26/bsd/sys/resource.h
-rw-r--r-- | src/unix/bsd/apple/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs index e9ce2d63a7..baa2223b09 100644 --- a/src/unix/bsd/apple/mod.rs +++ b/src/unix/bsd/apple/mod.rs @@ -726,6 +726,7 @@ pub const RLIMIT_DATA: ::c_int = 2; pub const RLIMIT_STACK: ::c_int = 3; pub const RLIMIT_CORE: ::c_int = 4; pub const RLIMIT_AS: ::c_int = 5; +pub const RLIMIT_RSS: ::c_int = RLIMIT_AS; pub const RLIMIT_MEMLOCK: ::c_int = 6; pub const RLIMIT_NPROC: ::c_int = 7; pub const RLIMIT_NOFILE: ::c_int = 8; |