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

ftruncate(2) OSS System Calls Reference Manual
[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), ftruncate64(2), open(2), open64(2), spt_ftruncatez(2).
STANDARDS CONFORMANCE
HP extensions to the XPG4 Version 2 specification are:
The errno values [EISGUARDIAN], [ENETDOWN], and [EROFS] can be returned.
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.
366 Hewlett-Packard Company 527186-023