Function otter_api_tests::unistd::fchown [−]
pub fn fchown(
fd: i32,
owner: Option<Uid>,
group: Option<Gid>
) -> Result<(), Error>
Expand description
Change the ownership of the file referred to by the open file descriptor fd
to be owned by
the specified owner
(user) and group
(see
fchown(2)).
The owner/group for the provided file will not be modified if None
is
provided for that argument. Ownership change will be attempted for the path
only if Some
owner/group is provided.