Skip to content

Commit 68eebe3

Browse files
author
Andrew Salmon
committed
add ::timeval to settimeofday
1 parent 83ba532 commit 68eebe3

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/unix/bsd/apple/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1701,7 +1701,7 @@ extern {
17011701
options: ::c_int) -> ::c_int;
17021702
pub fn brk(addr: *const ::c_void) -> *mut ::c_void;
17031703
pub fn sbrk(increment: ::c_int) -> *mut ::c_void;
1704-
pub fn settimeofday(tv: *const timeval, tz: *const ::timezone) -> ::c_int;
1704+
pub fn settimeofday(tv: *const ::timeval, tz: *const ::timezone) -> ::c_int;
17051705
}
17061706

17071707
cfg_if! {

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,7 @@ extern {
10281028
nfds: ::nfds_t,
10291029
timeout: *const ::timespec,
10301030
sigmask: *const sigset_t) -> ::c_int;
1031-
pub fn settimeofday(tv: *const timeval, tz: *const ::timezone) -> ::c_int;
1031+
pub fn settimeofday(tv: *const ::timeval, tz: *const ::timezone) -> ::c_int;
10321032
}
10331033

10341034
cfg_if! {

src/unix/bsd/netbsdlike/netbsd/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ extern {
720720
locale: *const ::c_char,
721721
base: ::locale_t) -> ::locale_t;
722722
#[link_name = "__settimeofday50"]
723-
pub fn settimeofday(tv: *const timeval, tz: *const ::c_void) -> ::c_int;
723+
pub fn settimeofday(tv: *const ::timeval, tz: *const ::c_void) -> ::c_int;
724724
}
725725

726726
mod other;

src/unix/notbsd/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ extern {
835835
rqtp: *const ::timespec,
836836
rmtp: *mut ::timespec) -> ::c_int;
837837
pub fn clock_settime(clk_id: clockid_t, tp: *const ::timespec) -> ::c_int;
838-
pub fn settimeofday(tv: *const timeval, tz: *const ::timezone) -> ::c_int;
838+
pub fn settimeofday(tv: *const ::timeval, tz: *const ::timezone) -> ::c_int;
839839

840840
pub fn prctl(option: ::c_int, ...) -> ::c_int;
841841
pub fn pthread_getattr_np(native: ::pthread_t,

0 commit comments

Comments
 (0)