Skip to content

Commit c6a68f1

Browse files
committed
Auto merge of rust-lang#560 - Mic92:fchown, r=alexcrichton
Add fchown
2 parents 603e5a7 + e6864db commit c6a68f1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/unix/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,9 @@ extern {
369369
mode: ::c_int, flags: ::c_int) -> ::c_int;
370370
pub fn fchmodat(dirfd: ::c_int, pathname: *const ::c_char,
371371
mode: ::mode_t, flags: ::c_int) -> ::c_int;
372+
pub fn fchown(fd: ::c_int,
373+
owner: ::uid_t,
374+
group: ::gid_t) -> ::c_int;
372375
pub fn fchownat(dirfd: ::c_int, pathname: *const ::c_char,
373376
owner: ::uid_t, group: ::gid_t,
374377
flags: ::c_int) -> ::c_int;

0 commit comments

Comments
 (0)