diff options
author | bors <bors@rust-lang.org> | 2018-06-28 00:14:38 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2018-06-28 00:14:38 +0000 |
commit | 93bc59e63757de77ab2266c567f400b2eddd5b6b (patch) | |
tree | fe1e6023cab6b469af1f967dea6a149c4c8111ed /src/unix/haiku/mod.rs | |
parent | 23578141f29c8488ab5092b50d4c264e3debdb4c (diff) | |
parent | 322ba046d8375d3c607860b5aff2b45f4cdd5c37 (diff) | |
download | rust-libc-93bc59e63757de77ab2266c567f400b2eddd5b6b.tar.gz |
Auto merge of #1018 - scottlamb:pr-fdopendir, r=alexcrichton
add fdopendir on macOS
Fixes #1017
I moved it up to src/unix/mod.rs, as it's specified in POSIX.1-2008 and
appears to be implemented on every Unix-like system.
The symbol names on macOS appear similar to those for opendir; I found
them via the commands below. I tested the x86_64 version;
fdopendir$INODE64 worked as expected.
$ nm -arch x86_64 /usr/lib/system/libsystem_c.dylib | grep fdopendir
000000000007ea6d T _fdopendir
000000000002ba97 T _fdopendir$INODE64
$ nm -arch i386 /usr/lib/system/libsystem_c.dylib | grep fdopendir
00082d1e T _fdopendir
0002b528 T _fdopendir$INODE64$UNIX2003
00082d1e T _fdopendir$UNIX2003
Diffstat (limited to 'src/unix/haiku/mod.rs')
-rw-r--r-- | src/unix/haiku/mod.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/unix/haiku/mod.rs b/src/unix/haiku/mod.rs index 8e312856ed..dd3dc7b163 100644 --- a/src/unix/haiku/mod.rs +++ b/src/unix/haiku/mod.rs @@ -1097,7 +1097,6 @@ extern { pub fn waitid(idtype: idtype_t, id: id_t, infop: *mut ::siginfo_t, options: ::c_int) -> ::c_int; - pub fn fdopendir(fd: ::c_int) -> *mut ::DIR; pub fn glob(pattern: *const ::c_char, flags: ::c_int, errfunc: Option<extern fn(epath: *const ::c_char, |