Skip to content

Commit 05abe1b

Browse files
committed
Add getloadavg for android (since api v29)
1 parent b6313ff commit 05abe1b

File tree

1 file changed

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

1 file changed

+1
-0
lines changed

src/unix/linux_like/android/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2457,6 +2457,7 @@ extern "C" {
24572457
sevlen: ::size_t,
24582458
flags: ::c_int,
24592459
) -> ::c_int;
2460+
pub fn getloadavg(loadavg: *mut ::c_double, nelem: ::c_int) -> ::c_int;
24602461
pub fn preadv(fd: ::c_int, iov: *const ::iovec, count: ::c_int, offset: ::off_t) -> ::ssize_t;
24612462
pub fn pwritev(fd: ::c_int, iov: *const ::iovec, count: ::c_int, offset: ::off_t) -> ::ssize_t;
24622463
pub fn process_vm_readv(

0 commit comments

Comments
 (0)