Truncates a file to the specified length. This is a LFS version of sys_ftruncate.
Arguments
eax |
194 |
ebx |
File descriptor. The file must be open for writing. |
ecx |
The low order 32-bits of a signed value that specifies the number of bytes to truncate. |
edx |
The high order 32-bits of a signed value that specifies the number of bytes to truncate. |
Return values
If the system call succeeds the return value is 0.
If the system call fails the return value is one of the following errno values:
-EBADF |
The ebx is not a valid descriptor |
-EBADF, -EINVAL |
The file is not open for writing. |
-EINVAL |
The file descriptor does not reference a regular file. |
|
Remarks
The file offset is not changed.
Compatibility
n/a |