Skip to content

Commit 363baf2

Browse files
committed
Auto merge of #2146 - coolreader18:android-nlimits, r=JohnTitor
Add RLIM_NLIMITS + getloadavg on android
2 parents 2c40088 + 05abe1b commit 363baf2

File tree

1 file changed

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

1 file changed

+2
-0
lines changed

src/unix/linux_like/android/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1267,6 +1267,7 @@ pub const RLIMIT_MSGQUEUE: ::c_int = 12;
12671267
pub const RLIMIT_NICE: ::c_int = 13;
12681268
pub const RLIMIT_RTPRIO: ::c_int = 14;
12691269

1270+
pub const RLIM_NLIMITS: ::c_int = 16;
12701271
pub const RLIM_INFINITY: ::rlim_t = !0;
12711272

12721273
pub const TCGETS: ::c_int = 0x5401;
@@ -2456,6 +2457,7 @@ extern "C" {
24562457
sevlen: ::size_t,
24572458
flags: ::c_int,
24582459
) -> ::c_int;
2460+
pub fn getloadavg(loadavg: *mut ::c_double, nelem: ::c_int) -> ::c_int;
24592461
pub fn preadv(fd: ::c_int, iov: *const ::iovec, count: ::c_int, offset: ::off_t) -> ::ssize_t;
24602462
pub fn pwritev(fd: ::c_int, iov: *const ::iovec, count: ::c_int, offset: ::off_t) -> ::ssize_t;
24612463
pub fn process_vm_readv(

0 commit comments

Comments
 (0)