Skip to content

Commit a569520

Browse files
committed
Merge branch 'futimens' of https://github.com/pitdicker/libc into merge
2 parents c173d9c + 9853b46 commit a569520

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

src/unix/bsd/openbsdlike/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,7 @@ extern {
387387
pub fn memrchr(cx: *const ::c_void, c: ::c_int, n: ::size_t) -> *mut ::c_void;
388388
pub fn mkostemp(template: *mut ::c_char, flags: ::c_int) -> ::c_int;
389389
pub fn mkostemps(template: *mut ::c_char, suffixlen: ::c_int, flags: ::c_int) -> ::c_int;
390+
pub fn futimens(fd: ::c_int, times: *const ::timespec) -> ::c_int;
390391
}
391392

392393
cfg_if! {

src/unix/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,7 @@ extern {
523523
#[cfg_attr(target_os = "netbsd", link_name = "__utimes50")]
524524
pub fn utimes(filename: *const ::c_char,
525525
times: *const ::timeval) -> ::c_int;
526+
pub fn futimes(fd: ::c_int, times: *const ::timeval) -> ::c_int;
526527
pub fn dlopen(filename: *const ::c_char,
527528
flag: ::c_int) -> *mut ::c_void;
528529
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)