Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)
spt_fclosex(2) OSS System Calls Reference Manual
ERRORS
If any of these conditions occur, the spt_fclosex() function sets errno to the value that
corresponds to the condition:
[EAGAIN] The O_NONBLOCK flag is set for the file descriptor underlying the stream
parameter and the process would be delayed in the write operation.
[EBADF] The file descriptor underlying the stream parameter is not valid.
[EFBIG] An attempt was made to write a file that exceeds the process’s file size limit or
the maximum file size.
[EINTR] The spt_fclosex() function was interrupted by a signal that was caught.
[EIO] The TOSTOP tty local mode causes a background process to get a SIGTTOU
signal if it attempts to write to the controlling terminal. The SIGTTOU signal, if
it is not caught or ignored, will cause the process to block in a stopped state. A
process in an orphaned process group is not allowed to become stopped, because
there is no unprivileged process to unblock it. This condition only applies to
operations on stdio streams associated with ttys.
[EIO] is also associated with driver errors.
[ENOSPC] No free space was remaining on the device containing the file.
[ENXIO] A request was made of a nonexistent device, or the request was outside the capa-
bilities of the device.
[EPIPE] An attempt was made to write to a pipe or FIFO that is not open for reading by
any process. A SIGPIPE signal will also be sent to the process.
RELATED INFORMATION
Functions: close(2), exit(2), fclose(3), fflush(3), fopen(3), setbuf(3), spt_closex(2),
spt_fclose(2), spt_fflushx(2), spt_fopenx(2).
STANDARDS CONFORMANCE
This function is an extension to the UNIX 98 specification. Interfaces documented on this refer-
ence page conform to the following industry standards:
• IEEE Std 1003.1c-1995, POSIX System Application Program Interface
The use of the header file spthread.h is an HP exception to the POSIX standard.
7−158 Hewlett-Packard Company 527186-023