Skip to content

Commit 361e454

Browse files
committed
uClibc: add missing fd exports
1 parent 19914fe commit 361e454

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/unix/uclibc/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1634,6 +1634,8 @@ extern {
16341634
pub fn uselocale(loc: ::locale_t) -> ::locale_t;
16351635
pub fn creat64(path: *const c_char, mode: mode_t) -> ::c_int;
16361636
pub fn fstat64(fildes: ::c_int, buf: *mut stat64) -> ::c_int;
1637+
pub fn fstatat64(fildes: ::c_int, path: *const ::c_char,
1638+
buf: *mut stat64, flag: ::c_int) -> ::c_int;
16371639
pub fn ftruncate64(fd: ::c_int, length: off64_t) -> ::c_int;
16381640
pub fn getrlimit64(resource: ::c_int, rlim: *mut rlimit64) -> ::c_int;
16391641
pub fn lseek64(fd: ::c_int, offset: off64_t, whence: ::c_int) -> off64_t;
@@ -1853,6 +1855,8 @@ extern {
18531855

18541856
pub fn seekdir(dirp: *mut ::DIR, loc: ::c_long);
18551857

1858+
pub fn dirfd(dirp: *mut ::DIR) -> ::c_int;
1859+
18561860
pub fn telldir(dirp: *mut ::DIR) -> ::c_long;
18571861
pub fn madvise(addr: *mut ::c_void, len: ::size_t, advice: ::c_int)
18581862
-> ::c_int;

0 commit comments

Comments
 (0)