Skip to content

Commit 5f28e11

Browse files
committed
Fix #1670 missing RLIMIT_AS etc on android
Signed-off-by: Robert Collins <robertc@robertcollins.net>
1 parent 44e8b3f commit 5f28e11

File tree

1 file changed

+5
-0
lines changed
  • src/unix/linux_like/android

1 file changed

+5
-0
lines changed

src/unix/linux_like/android/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,6 +1116,11 @@ pub const RLIMIT_FSIZE: ::c_int = 1;
11161116
pub const RLIMIT_DATA: ::c_int = 2;
11171117
pub const RLIMIT_STACK: ::c_int = 3;
11181118
pub const RLIMIT_CORE: ::c_int = 4;
1119+
pub const RLIMIT_RSS: ::c_int = 5;
1120+
pub const RLIMIT_NPROC: ::c_int = 6;
1121+
pub const RLIMIT_NOFILE: ::c_int = 7;
1122+
pub const RLIMIT_MEMLOCK: ::c_int = 8;
1123+
pub const RLIMIT_AS: ::c_int = 9;
11191124
pub const RLIMIT_LOCKS: ::c_int = 10;
11201125
pub const RLIMIT_SIGPENDING: ::c_int = 11;
11211126
pub const RLIMIT_MSGQUEUE: ::c_int = 12;

0 commit comments

Comments
 (0)