Skip to content

Commit e267377

Browse files
committed
Merge branch 'master' into sysctl
2 parents 7fb49c5 + 6598e2c commit e267377

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-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

+1
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,7 @@ 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;
615616
}
616617

617618
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)