Skip to content

Commit

Permalink
Auto merge of #1085 - jmmv:freebsd-utimensat, r=alexcrichton
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bors committed Sep 26, 2018
2 parents 9f78ad1 + 622cc28 commit e81df8d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/unix/bsd/freebsdlike/mod.rs
Expand Up @@ -1136,6 +1136,9 @@ extern {
timeout: *const ::timespec) -> ::c_int;
pub fn sigwaitinfo(set: *const sigset_t,
info: *mut siginfo_t) -> ::c_int;
pub fn futimens(fd: ::c_int, times: *const ::timespec) -> ::c_int;
pub fn utimensat(dirfd: ::c_int, path: *const ::c_char,
times: *const ::timespec, flag: ::c_int) -> ::c_int;
pub fn openpty(amaster: *mut ::c_int,
aslave: *mut ::c_int,
name: *mut ::c_char,
Expand Down

0 comments on commit e81df8d

Please sign in to comment.