Skip to content
Snippets Groups Projects
Commit d1a75912 authored by bors's avatar bors
Browse files

Auto merge of #496 - lucab:to-upstream/fchdir, r=alexcrichton

unix: add fchdir(2)

Add missing [fchdir(2)](http://pubs.opengroup.org/onlinepubs/9699919799/functions/fchdir.html) function - chdir to an open file descriptor.

Fixes https://github.com/rust-lang/libc/issues/495
parents 18a1de5a 7a260795
No related branches found
No related tags found
No related merge requests found
...@@ -366,6 +366,7 @@ extern { ...@@ -366,6 +366,7 @@ extern {
pub fn access(path: *const c_char, amode: ::c_int) -> ::c_int; pub fn access(path: *const c_char, amode: ::c_int) -> ::c_int;
pub fn alarm(seconds: ::c_uint) -> ::c_uint; pub fn alarm(seconds: ::c_uint) -> ::c_uint;
pub fn chdir(dir: *const c_char) -> ::c_int; pub fn chdir(dir: *const c_char) -> ::c_int;
pub fn fchdir(dirfd: ::c_int) -> ::c_int;
pub fn chown(path: *const c_char, uid: uid_t, pub fn chown(path: *const c_char, uid: uid_t,
gid: gid_t) -> ::c_int; gid: gid_t) -> ::c_int;
#[cfg_attr(all(target_os = "macos", target_arch = "x86"), #[cfg_attr(all(target_os = "macos", target_arch = "x86"),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment