Skip to content

Commit 622cc28

Browse files
committed
Expose futimens and utimensat on FreeBSD and DragonFly
1 parent 9f78ad1 commit 622cc28

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

Lines changed: 3 additions & 0 deletions
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)