Skip to content

Commit

Permalink
Auto merge of rust-lang#320 - knight42:lchown, r=alexcrichton
Browse files Browse the repository at this point in the history
unix: Add lchown
  • Loading branch information
bors authored Jun 23, 2016
2 parents 1e2d77a + e383ee7 commit 41d135e
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 @@ -335,6 +335,10 @@ extern {
pub fn chdir(dir: *const c_char) -> ::c_int;
pub fn chown(path: *const c_char, uid: uid_t,
gid: gid_t) -> ::c_int;
#[cfg_attr(all(target_os = "macos", target_arch = "x86"),
link_name = "lchown$UNIX2003")]
pub fn lchown(path: *const c_char, uid: uid_t,
gid: gid_t) -> ::c_int;
#[cfg_attr(all(target_os = "macos", target_arch = "x86"),
link_name = "close$UNIX2003")]
pub fn close(fd: ::c_int) -> ::c_int;
Expand Down

0 comments on commit 41d135e

Please sign in to comment.