- fd
- Documentation for this section has not yet been entered.
- length
- Documentation for this section has not yet been entered.
On success, zero is returned. On error, -1 is returned and Stdlib.GetLastError returns the translated error.
Usage
The ftruncate() system call succeeds unless:
Error Details Errno.EBADF The fd argument is not a valid descriptor.
Errno.EINVAL The fd argument references a socket, not a file.
Errno.EINVAL The fd descriptor is not open for writing.