Skip to content

Commit 9742273

Browse files
committed
Auto merge of rust-lang#790 - semarie:bsd-utimens, r=alexcrichton
add utimensat to NetBSD and OpenBSD
2 parents c959b16 + e26a5d5 commit 9742273

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/unix/bsd/netbsdlike/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,8 @@ extern {
589589
iovcnt: ::c_int,
590590
offset: ::off_t) -> ::ssize_t;
591591
pub fn futimens(fd: ::c_int, times: *const ::timespec) -> ::c_int;
592+
pub fn utimensat(dirfd: ::c_int, path: *const ::c_char,
593+
times: *const ::timespec, flag: ::c_int) -> ::c_int;
592594
pub fn fdatasync(fd: ::c_int) -> ::c_int;
593595
pub fn openpty(amaster: *mut ::c_int,
594596
aslave: *mut ::c_int,

0 commit comments

Comments
 (0)