Open System Services Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)
OSS Library Calls (e - f) fputc(3)
In addition, if any of the following conditions occur, the fputc( ) function sets errno to the
corresponding value:
[EAGAIN] The O_NONBLOCK flag is set for the file descriptor underlying the output
stream and the process would be delayed in the write operation.
[EBADF] The file descriptor underlying the output stream is not a valid file descriptor open
for writing.
[EFBIG] An attempt was made to write at or beyond the file offset maximum.
[EINTR] The write operation was interrupted by a signal that was caught, and no data was
transferred.
[EIO] The implementation supports job control; the process is a member of a back-
ground process group attempting to write to its controlling terminal; TOSTOP is
set; the process is neither ignoring nor blocking SIGTTOU; and the process
group of the process is orphaned. This error may also be returned under
implementation-defined conditions.
[ENOMEM] Insufficient memory storage space is available.
[ENOSPC] There was no free space 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.
Any error encountered during the underlying call to the write( ) function can cause this function
to return the corresponding errno value reported by the write( ) function. If your application
program encounters an errno value not listed above, refer to the write(2) reference page either
online or in the Open System Services System Calls Reference Manual for information about the
cause of that error.
RELATED INFORMATION
Functions: ferror(3), getc(3), getwc(3), printf(3), putc(3), putchar(3), puts(3), putwc(3),
write(2).
STANDARDS CONFORMANCE
The [ENOMEM] and [ENXIO] errno values are extensions to the XPG4 Version 2 specification.
527187-017 Hewlett-Packard Company 2−137