summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjhwgh1968 <jhwgh1968@users.noreply.github.com>2018-09-08 16:23:28 -0500
committerjhwgh1968 <jhwgh1968@users.noreply.github.com>2018-09-08 16:23:28 -0500
commit361e4549faae7179e33161bb5d02941456a39060 (patch)
tree6a8e05f8976a65115d7d8dbe02616ffc8c7429a0
parent19914fe76bde0720c79698aca2f77921dc9145ca (diff)
downloadrust-libc-361e4549faae7179e33161bb5d02941456a39060.tar.gz
uClibc: add missing fd exports
-rw-r--r--src/unix/uclibc/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/unix/uclibc/mod.rs b/src/unix/uclibc/mod.rs
index e3606c2266..5a947fddd6 100644
--- a/src/unix/uclibc/mod.rs
+++ b/src/unix/uclibc/mod.rs
@@ -1634,6 +1634,8 @@ extern {
pub fn uselocale(loc: ::locale_t) -> ::locale_t;
pub fn creat64(path: *const c_char, mode: mode_t) -> ::c_int;
pub fn fstat64(fildes: ::c_int, buf: *mut stat64) -> ::c_int;
+ pub fn fstatat64(fildes: ::c_int, path: *const ::c_char,
+ buf: *mut stat64, flag: ::c_int) -> ::c_int;
pub fn ftruncate64(fd: ::c_int, length: off64_t) -> ::c_int;
pub fn getrlimit64(resource: ::c_int, rlim: *mut rlimit64) -> ::c_int;
pub fn lseek64(fd: ::c_int, offset: off64_t, whence: ::c_int) -> off64_t;
@@ -1853,6 +1855,8 @@ extern {
pub fn seekdir(dirp: *mut ::DIR, loc: ::c_long);
+ pub fn dirfd(dirp: *mut ::DIR) -> ::c_int;
+
pub fn telldir(dirp: *mut ::DIR) -> ::c_long;
pub fn madvise(addr: *mut ::c_void, len: ::size_t, advice: ::c_int)
-> ::c_int;