pub fn fchmod(fd: RawFd, mode: Mode) -> Result<()> {
    let res = unsafe { libc::fchmod(fd, mode.bits() as mode_t) };

    Errno::result(res).map(|_| ())
}
/// Change the file permission bits of the file specified by a file descriptor.
///
/// # References
///
/// [fchmod(2)](http://pubs.opengroup.org/onlinepubs/9699919799/functions/fchmod.html).
Change the file permission bits of the file specified by a file descriptor.
Change the file permission bits of the file specified by a file descriptor .
pub fn fchmod(fd: RawFd, mode: Mode) -> Result<()> {
    let res = unsafe { libc::fchmod(fd, mode.bits() as mode_t) };
    Errno::result(res).map(|_| ())
}
pub fn fchmod ( fd : RawFd , mode : Mode ) -> Result < ( ) > { let res = unsafe { libc :: fchmod ( fd , mode . bits ( ) as mode_t ) } ; Errno :: result ( res ) . map ( | _ | ( ) ) }
Change the file permission bits of the file specified by a file descriptor.
Change the file permission bits of the file specified by a file descriptor .
fd
RawFd
mode
Mode
fd
RawFd
mode
Mode
references
None