File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 342
342
pub fn WCOREDUMP ( status: :: c_int) -> bool {
343
343
( status & 0o200 ) != 0
344
344
}
345
-
346
345
}
347
346
348
347
extern {
@@ -360,6 +359,7 @@ extern {
360
359
result : * mut * mut passwd ) -> :: c_int ;
361
360
pub fn getprogname ( ) -> * const :: c_char ;
362
361
pub fn setprogname ( name : * const :: c_char ) ;
362
+ pub fn getloadavg ( loadavg : * mut :: c_double , nelem : :: c_int ) -> :: c_int ;
363
363
}
364
364
365
365
cfg_if ! {
Original file line number Diff line number Diff line change @@ -612,6 +612,7 @@ extern {
612
612
resource : :: c_int ,
613
613
new_limit : * const :: rlimit64 ,
614
614
old_limit : * mut :: rlimit64 ) -> :: c_int ;
615
+ pub fn getloadavg ( loadavg : * mut :: c_double , nelem : :: c_int ) -> :: c_int ;
615
616
}
616
617
617
618
cfg_if ! {
Original file line number Diff line number Diff line change @@ -903,5 +903,6 @@ extern {
903
903
pub fn uselocale ( loc : :: locale_t ) -> :: locale_t ;
904
904
pub fn getprogname ( ) -> * const :: c_char ;
905
905
pub fn setprogname ( name : * const :: c_char ) ;
906
+ pub fn getloadavg ( loadavg : * mut :: c_double , nelem : :: c_int ) -> :: c_int ;
906
907
}
907
908
You can’t perform that action at this time.
0 commit comments