unix: Add lchown
This commit is contained in:
parent
1e2d77ae08
commit
e383ee7530
@ -335,6 +335,10 @@ extern {
|
|||||||
pub fn chdir(dir: *const c_char) -> ::c_int;
|
pub fn chdir(dir: *const c_char) -> ::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"),
|
||||||
|
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"),
|
#[cfg_attr(all(target_os = "macos", target_arch = "x86"),
|
||||||
link_name = "close$UNIX2003")]
|
link_name = "close$UNIX2003")]
|
||||||
pub fn close(fd: ::c_int) -> ::c_int;
|
pub fn close(fd: ::c_int) -> ::c_int;
|
||||||
|
Loading…
Reference in New Issue
Block a user