diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2017-03-25 14:15:57 +0100 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2017-03-25 16:03:30 +0100 |
commit | 677b08e2ce4d5d2916c1ce3fc181fa34b3a7fc2e (patch) | |
tree | c0dfca2e6a1a6a86ea24176843785495739d9f30 | |
parent | 4b6ffe3e30cfb7c47b3d50a1ce10f29a89b6bcc1 (diff) | |
download | rust-libc-677b08e2ce4d5d2916c1ce3fc181fa34b3a7fc2e.tar.gz |
add openat64 on linux
-rw-r--r-- | src/unix/notbsd/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/unix/notbsd/mod.rs b/src/unix/notbsd/mod.rs index 789d404d5b..b49454fd3c 100644 --- a/src/unix/notbsd/mod.rs +++ b/src/unix/notbsd/mod.rs @@ -917,6 +917,9 @@ extern { offset: off64_t) -> *mut ::c_void; pub fn open64(path: *const c_char, oflag: ::c_int, ...) -> ::c_int; + pub fn openat64(fd: ::c_int, + path: *const c_char, + oflag: ::c_int, ...) -> ::c_int; pub fn pread64(fd: ::c_int, buf: *mut ::c_void, count: ::size_t, offset: off64_t) -> ::ssize_t; pub fn pwrite64(fd: ::c_int, buf: *const ::c_void, count: ::size_t, |