Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)

System Functions (f - i) ftruncate64(2)
[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), spt_ftruncate64z(2).
STANDARDS CONFORMANCE
This function is an HP extension to the XPG4 Version 2 specification.
The use of this function with the POSIX User Thread Model library conforms to the following
industry standards:
IEEE Std 1003.1-2004, POSIX System Application Program Interface
This function cannot be used as a cancellation point when the function is used with the POSIX
User Thread Model library.
527186-023 Hewlett-Packard Company 369