Skip to content

Commit 786d505

Browse files
committed
Merge branch 'master' into sysctl
2 parents a6d4805 + 81e3af2 commit 786d505

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

src/unix/bsd/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,6 @@ f! {
339339
pub fn WCOREDUMP(status: ::c_int) -> bool {
340340
(status & 0o200) != 0
341341
}
342-
343342
}
344343

345344
extern {
@@ -357,6 +356,7 @@ extern {
357356
result: *mut *mut passwd) -> ::c_int;
358357
pub fn getprogname() -> *const ::c_char;
359358
pub fn setprogname(name: *const ::c_char);
359+
pub fn getloadavg(loadavg: *mut ::c_double, nelem: ::c_int) -> ::c_int;
360360
}
361361

362362
cfg_if! {

src/unix/notbsd/linux/mod.rs

+13
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,19 @@ extern {
612612
resource: ::c_int,
613613
new_limit: *const ::rlimit64,
614614
old_limit: *mut ::rlimit64) -> ::c_int;
615+
pub fn getloadavg(loadavg: *mut ::c_double, nelem: ::c_int) -> ::c_int;
616+
pub fn process_vm_readv(pid: ::pid_t,
617+
local_iov: *const ::iovec,
618+
liovcnt: ::c_ulong,
619+
remote_iov: *const ::iovec,
620+
riovcnt: ::c_ulong,
621+
flags: ::c_ulong) -> isize;
622+
pub fn process_vm_writev(pid: ::pid_t,
623+
local_iov: *const ::iovec,
624+
liovcnt: ::c_ulong,
625+
remote_iov: *const ::iovec,
626+
riovcnt: ::c_ulong,
627+
flags: ::c_ulong) -> isize;
615628
}
616629

617630
cfg_if! {

src/unix/solaris/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -903,5 +903,6 @@ extern {
903903
pub fn uselocale(loc: ::locale_t) -> ::locale_t;
904904
pub fn getprogname() -> *const ::c_char;
905905
pub fn setprogname(name: *const ::c_char);
906+
pub fn getloadavg(loadavg: *mut ::c_double, nelem: ::c_int) -> ::c_int;
906907
}
907908

0 commit comments

Comments
 (0)