Skip to content

Commit 192a036

Browse files
committed
add fdopendir
1 parent 863fb88 commit 192a036

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,6 +1010,7 @@ extern {
10101010
pub fn fchownat(dirfd: ::c_int, pathname: *const ::c_char,
10111011
owner: ::uid_t, group: ::gid_t,
10121012
flags: ::c_int) -> ::c_int;
1013+
pub fn fdopendir(fd: ::c_int) -> *mut ::DIR;
10131014
pub fn fstatat(dirfd: ::c_int, pathname: *const ::c_char,
10141015
buf: *mut stat, flags: ::c_int) -> ::c_int;
10151016
pub fn linkat(olddirfd: ::c_int, oldpath: *const ::c_char,

src/unix/bsd/netbsdlike/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,7 @@ extern {
606606
pub fn fchownat(dirfd: ::c_int, pathname: *const ::c_char,
607607
owner: ::uid_t, group: ::gid_t,
608608
flags: ::c_int) -> ::c_int;
609+
pub fn fdopendir(fd: ::c_int) -> *mut ::DIR;
609610
pub fn fstatat(dirfd: ::c_int, pathname: *const ::c_char,
610611
buf: *mut stat, flags: ::c_int) -> ::c_int;
611612
pub fn linkat(olddirfd: ::c_int, oldpath: *const ::c_char,

src/unix/haiku/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,7 @@ extern {
761761
pub fn waitid(idtype: idtype_t, id: id_t, infop: *mut ::siginfo_t,
762762
options: ::c_int) -> ::c_int;
763763

764+
pub fn fdopendir(fd: ::c_int) -> *mut ::DIR;
764765
pub fn glob(pattern: *const ::c_char,
765766
flags: ::c_int,
766767
errfunc: Option<extern fn(epath: *const ::c_char,

src/unix/notbsd/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -937,6 +937,7 @@ extern {
937937
pub fn fchownat(dirfd: ::c_int, pathname: *const ::c_char,
938938
owner: ::uid_t, group: ::gid_t,
939939
flags: ::c_int) -> ::c_int;
940+
pub fn fdopendir(fd: ::c_int) -> *mut ::DIR;
940941
pub fn fstatat(dirfd: ::c_int, pathname: *const ::c_char,
941942
buf: *mut stat, flags: ::c_int) -> ::c_int;
942943
pub fn linkat(olddirfd: ::c_int, oldpath: *const ::c_char,

src/unix/solaris/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,6 +1061,7 @@ extern {
10611061
pub fn fchownat(dirfd: ::c_int, pathname: *const ::c_char,
10621062
owner: ::uid_t, group: ::gid_t,
10631063
flags: ::c_int) -> ::c_int;
1064+
pub fn fdopendir(fd: ::c_int) -> *mut ::DIR;
10641065
pub fn fstatat(dirfd: ::c_int, pathname: *const ::c_char,
10651066
buf: *mut stat, flags: ::c_int) -> ::c_int;
10661067
pub fn linkat(olddirfd: ::c_int, oldpath: *const ::c_char,

0 commit comments

Comments
 (0)