Open System Services System Calls Reference Manual (G06.28+, H06.05+)

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 ag is set for the le descriptor underlying the stream
parameter and the process would be delayed in the write operation.
[EBADF] The le descriptor underlying the stream parameter is not valid.
[EFBIG] An attempt was made to write a le that exceeds the processs le size limit or
the maximum le 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 le.
[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), fush(3), fopen(3), setbuf(3), spt_closex(2),
spt_fclose(2), spt_fushx(2), spt_fopenx(2).
STANDARDS CONFORMANCE
This function is an extension to the UNIX 98 specication. 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 le spthread.h is an HP exception to the POSIX standard.
7114 Hewlett-Packard Company 527186-007