[][src]Function linux::syscall::ftruncate

pub fn ftruncate(fd: c_int, offset: loff_t) -> c_int

Truncates a file descriptor to a certain length.

[argument, fd] The file descriptor to truncate.

[argument, offset] The new length.

[return_value] Returns success or an error value.

= See also

  • link:man:ftruncate(2)