Skip to content

Commit c01ec7e

Browse files
committed
Merge branch 'master' of https://github.com/fpgaminer/libc into merge
2 parents ba516ff + f5885ee commit c01ec7e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/unix/notbsd/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,9 @@ pub const POSIX_FADV_WILLNEED: ::c_int = 3;
548548
pub const POSIX_FADV_DONTNEED: ::c_int = 4;
549549
pub const POSIX_FADV_NOREUSE: ::c_int = 5;
550550

551+
pub const AT_FDCWD: ::c_int = -100;
552+
pub const AT_SYMLINK_NOFOLLOW: ::c_int = 0x100;
553+
551554
f! {
552555
pub fn FD_CLR(fd: ::c_int, set: *mut fd_set) -> () {
553556
let fd = fd as usize;
@@ -664,6 +667,8 @@ extern {
664667
pub fn posix_fadvise(fd: ::c_int, offset: ::off_t, len: ::off_t,
665668
advise: ::c_int) -> ::c_int;
666669
pub fn futimens(fd: ::c_int, times: *const ::timespec) -> ::c_int;
670+
pub fn utimensat(dirfd: ::c_int, path: *const ::c_char,
671+
times: *const ::timespec, flag: ::c_int) -> ::c_int;
667672
}
668673

669674
cfg_if! {

0 commit comments

Comments
 (0)