Skip to content

Commit

Permalink
unix: Add lchown
Browse files Browse the repository at this point in the history
  • Loading branch information
Knight authored and Knight committed Jun 22, 2016
1 parent 1e2d77a commit e383ee7
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 e383ee7

Please sign in to comment.