add ::timeval to settimeofday
This commit is contained in:
parent
83ba532c10
commit
68eebe3471
|
@ -1701,7 +1701,7 @@ extern {
|
|||
options: ::c_int) -> ::c_int;
|
||||
pub fn brk(addr: *const ::c_void) -> *mut ::c_void;
|
||||
pub fn sbrk(increment: ::c_int) -> *mut ::c_void;
|
||||
pub fn settimeofday(tv: *const timeval, tz: *const ::timezone) -> ::c_int;
|
||||
pub fn settimeofday(tv: *const ::timeval, tz: *const ::timezone) -> ::c_int;
|
||||
}
|
||||
|
||||
cfg_if! {
|
||||
|
|
|
@ -1028,7 +1028,7 @@ extern {
|
|||
nfds: ::nfds_t,
|
||||
timeout: *const ::timespec,
|
||||
sigmask: *const sigset_t) -> ::c_int;
|
||||
pub fn settimeofday(tv: *const timeval, tz: *const ::timezone) -> ::c_int;
|
||||
pub fn settimeofday(tv: *const ::timeval, tz: *const ::timezone) -> ::c_int;
|
||||
}
|
||||
|
||||
cfg_if! {
|
||||
|
|
|
@ -720,7 +720,7 @@ extern {
|
|||
locale: *const ::c_char,
|
||||
base: ::locale_t) -> ::locale_t;
|
||||
#[link_name = "__settimeofday50"]
|
||||
pub fn settimeofday(tv: *const timeval, tz: *const ::c_void) -> ::c_int;
|
||||
pub fn settimeofday(tv: *const ::timeval, tz: *const ::c_void) -> ::c_int;
|
||||
}
|
||||
|
||||
mod other;
|
||||
|
|
|
@ -835,7 +835,7 @@ extern {
|
|||
rqtp: *const ::timespec,
|
||||
rmtp: *mut ::timespec) -> ::c_int;
|
||||
pub fn clock_settime(clk_id: clockid_t, tp: *const ::timespec) -> ::c_int;
|
||||
pub fn settimeofday(tv: *const timeval, tz: *const ::timezone) -> ::c_int;
|
||||
pub fn settimeofday(tv: *const ::timeval, tz: *const ::timezone) -> ::c_int;
|
||||
|
||||
pub fn prctl(option: ::c_int, ...) -> ::c_int;
|
||||
pub fn pthread_getattr_np(native: ::pthread_t,
|
||||
|
|
Loading…
Reference in a new issue