Skip to content

Commit 2575fe9

Browse files
committed
Auto merge of #1085 - jmmv:freebsd-utimensat, r=alexcrichton
Expose futimens and utimensat on FreeBSD and DragonFly Should have sent this out with #1084 but I didn't notice then that these were missing (see nix-rust/nix#944). Haven't been able to test these locally as I do not have access to these platforms. Will rely on CI to verify these for me.
2 parents 9f78ad1 + 622cc28 commit 2575fe9

File tree

1 file changed

+3
-0
lines changed
  • src/unix/bsd/freebsdlike

1 file changed

+3
-0
lines changed

src/unix/bsd/freebsdlike/mod.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1136,6 +1136,9 @@ extern {
11361136
timeout: *const ::timespec) -> ::c_int;
11371137
pub fn sigwaitinfo(set: *const sigset_t,
11381138
info: *mut siginfo_t) -> ::c_int;
1139+
pub fn futimens(fd: ::c_int, times: *const ::timespec) -> ::c_int;
1140+
pub fn utimensat(dirfd: ::c_int, path: *const ::c_char,
1141+
times: *const ::timespec, flag: ::c_int) -> ::c_int;
11391142
pub fn openpty(amaster: *mut ::c_int,
11401143
aslave: *mut ::c_int,
11411144
name: *mut ::c_char,

0 commit comments

Comments
 (0)