pub fn sys_ftruncate(&self, fd: FileDesc, len: usize) -> SysResult {
        info!("ftruncate: fd={:?}, len={}", fd, len);
        let proc = self.linux_process();
        proc.get_file(fd)?.set_len(len as u64)?;
        Ok(0)
    }
/// cause the regular file referenced by fd to be truncated to a size of precisely length bytes.
cause the regular file referenced by fd to be truncated to a size of precisely length bytes.
cause the regular file referenced by fd to be truncated to a size of precisely length bytes .
pub fn sys_ftruncate(&self, fd: FileDesc, len: usize) -> SysResult {
        info!("ftruncate: fd={:?}, len={}", fd, len);
        let proc = self.linux_process();
        proc.get_file(fd)?.set_len(len as u64)?;
        Ok(0)
    }
pub fn sys_ftruncate ( & self , fd : FileDesc , len : usize ) -> SysResult { info ! ( " " fd len ) ; let proc = self . linux_process ( ) ; proc . get_file ( fd ) ? . set_len ( len as u64 ) ? ; Ok ( 0 ) }
cause the regular file referenced by fd to be truncated to a size of precisely length bytes.
cause the regular file referenced by fd to be truncated to a size of precisely length bytes .
&self
fd
FileDesc
len
usize
&self
fd
FileDesc
len
usize