Skip to content

Commit 9853b46

Browse files
committed
Move futimens to the right module and add futimes
1 parent b0c679f commit 9853b46

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/unix/bsd/openbsdlike/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,7 @@ extern {
391391
pub fn memrchr(cx: *const ::c_void, c: ::c_int, n: ::size_t) -> *mut ::c_void;
392392
pub fn mkostemp(template: *mut ::c_char, flags: ::c_int) -> ::c_int;
393393
pub fn mkostemps(template: *mut ::c_char, suffixlen: ::c_int, flags: ::c_int) -> ::c_int;
394+
pub fn futimens(fd: ::c_int, times: *const ::timespec) -> ::c_int;
394395
}
395396

396397
cfg_if! {

src/unix/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ extern {
513513
#[cfg_attr(target_os = "netbsd", link_name = "__utimes50")]
514514
pub fn utimes(filename: *const ::c_char,
515515
times: *const ::timeval) -> ::c_int;
516-
pub fn futimens(fd: ::c_int, times: *const ::timespec) -> ::c_int;
516+
pub fn futimes(fd: ::c_int, times: *const ::timeval) -> ::c_int;
517517
pub fn dlopen(filename: *const ::c_char,
518518
flag: ::c_int) -> *mut ::c_void;
519519
pub fn dlerror() -> *mut ::c_char;

src/unix/notbsd/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,8 +653,9 @@ extern {
653653
nr_segs: ::size_t,
654654
flags: ::c_uint) -> ::ssize_t;
655655

656-
pub fn posix_fadvise(fd: ::c_int, offset: ::off_t, len: ::off_t,
656+
pub fn posix_fadvise(fd: ::c_int, offset: ::off_t, len: ::off_t,
657657
advise: ::c_int) -> ::c_int;
658+
pub fn futimens(fd: ::c_int, times: *const ::timespec) -> ::c_int;
658659
}
659660

660661
cfg_if! {

0 commit comments

Comments
 (0)