Open System Services System Calls Reference Manual (G06.28+, H06.05+)
System Functions (f - i) ftruncate64(2)
ERRORS
If any of these conditions occurs, the ftruncate64() function sets errno to the corresponding
value:
[EBADF] The filedes parameter does not specify a valid file descriptor open for writing.
[EFBIG] The length parameter is greater than the minimum of 2 gigabytes minus 1 byte
and the maximum file size established during file open.
[EINTR] The function was interrupted by a signal before any data arrived.
[EINVAL] One of these conditions occurred:
• The file pointed to by the filedes parameter is not a regular file.
• The value specified for the length parameter was less than 0 (zero).
[EIO] One of these conditions occurred:
• The process is a member of a background process group attempting to
read from its controlling terminal, the process is ignoring or blocking the
SIGTTIN signal, or the process group is orphaned.
• A physical I/O error occurred. The device holding the file might be in
the down state, or both processors that provide access to the device
might have failed. Data might have been lost during a transfer.
[EISGUARDIAN]
The value used for the filedes parameter is appropriate only in the Guardian
environment.
[ENETDOWN]
The filedes parameter specifies a file on a remote HP NonStop node, but com-
munication with the remote node has been lost.
[EROFS] The file resides on a read-only fileset.
For all other error conditions, errno is set to the appropriate Guardian file-system error number.
See the Guardian Procedure Errors and Messages Manual for more information about a specific
Guardian file-system error.
RELATED INFORMATION
Functions: chmod(2), fcntl(2), open(2), open64(2).
STANDARDS CONFORMANCE
This function is an HP extension to the XPG4 Version 2 specification.
527186-007 Hewlett-Packard Company 3−61