Skip to content

Commit 4e31314

Browse files
committed
Auto merge of #550 - Mic92:fdopendir, r=alexcrichton
add fdopendir
2 parents e9238eb + 99a524d commit 4e31314

File tree

5 files changed

+9
-0
lines changed

5 files changed

+9
-0
lines changed

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,6 +1001,8 @@ extern {
10011001
pub fn getpriority(which: ::c_int, who: ::c_int) -> ::c_int;
10021002
pub fn setpriority(which: ::c_int, who: ::c_int, prio: ::c_int) -> ::c_int;
10031003

1004+
pub fn fdopendir(fd: ::c_int) -> *mut ::DIR;
1005+
10041006
pub fn mknodat(dirfd: ::c_int, pathname: *const ::c_char,
10051007
mode: ::mode_t, dev: dev_t) -> ::c_int;
10061008
pub fn mkfifoat(dirfd: ::c_int, pathname: *const ::c_char,

src/unix/bsd/netbsdlike/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,8 @@ extern {
597597
pub fn getpriority(which: ::c_int, who: ::id_t) -> ::c_int;
598598
pub fn setpriority(which: ::c_int, who: ::id_t, prio: ::c_int) -> ::c_int;
599599

600+
pub fn fdopendir(fd: ::c_int) -> *mut ::DIR;
601+
600602
pub fn mknodat(dirfd: ::c_int, pathname: *const ::c_char,
601603
mode: ::mode_t, dev: dev_t) -> ::c_int;
602604
pub fn mkfifoat(dirfd: ::c_int, pathname: *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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -928,6 +928,8 @@ extern {
928928
pub fn eventfd(init: ::c_uint, flags: ::c_int) -> ::c_int;
929929
pub fn sysinfo (info: *mut ::sysinfo) -> ::c_int;
930930

931+
pub fn fdopendir(fd: ::c_int) -> *mut ::DIR;
932+
931933
pub fn mknodat(dirfd: ::c_int, pathname: *const ::c_char,
932934
mode: ::mode_t, dev: dev_t) -> ::c_int;
933935
pub fn ppoll(fds: *mut ::pollfd,

src/unix/solaris/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,6 +1058,8 @@ extern {
10581058
pub fn getpriority(which: ::c_int, who: ::c_int) -> ::c_int;
10591059
pub fn setpriority(which: ::c_int, who: ::c_int, prio: ::c_int) -> ::c_int;
10601060

1061+
pub fn fdopendir(fd: ::c_int) -> *mut ::DIR;
1062+
10611063
pub fn mknodat(dirfd: ::c_int, pathname: *const ::c_char,
10621064
mode: ::mode_t, dev: dev_t) -> ::c_int;
10631065
pub fn mkfifoat(dirfd: ::c_int, pathname: *const ::c_char,

0 commit comments

Comments
 (0)