Skip to content

Commit 496f138

Browse files
committed
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
1 parent 9569599 commit 496f138

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/unix/bsd/apple/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -726,6 +726,7 @@ pub const RLIMIT_DATA: ::c_int = 2;
726726
pub const RLIMIT_STACK: ::c_int = 3;
727727
pub const RLIMIT_CORE: ::c_int = 4;
728728
pub const RLIMIT_AS: ::c_int = 5;
729+
pub const RLIMIT_RSS: ::c_int = RLIMIT_AS;
729730
pub const RLIMIT_MEMLOCK: ::c_int = 6;
730731
pub const RLIMIT_NPROC: ::c_int = 7;
731732
pub const RLIMIT_NOFILE: ::c_int = 8;

0 commit comments

Comments
 (0)