Skip to content

Commit

Permalink
add fdopendir
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Mar 13, 2017
1 parent 863fb88 commit dac2d83
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/unix/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,10 @@ extern {
#[cfg_attr(all(target_os = "macos", target_arch = "x86"),
link_name = "fdopen$UNIX2003")]
pub fn fdopen(fd: ::c_int, mode: *const c_char) -> *mut ::FILE;

#[cfg(not(any(target_os = "macos", target_os = "ios")))]
pub fn fdopendir(fd: ::c_int, mode: *const c_char) -> *mut ::DIR;

pub fn fileno(stream: *mut ::FILE) -> ::c_int;

#[cfg_attr(all(target_os = "macos", target_arch = "x86"),
Expand Down

0 comments on commit dac2d83

Please sign in to comment.