Guardian Native C Library Calls Reference Manual (G06.28+, H06.05+)

fprintf(3) Guardian Native C Library Calls Reference Manual
ERRORS
The fprintf( ) function fails if stream is unbuffered, or if streams buffer needed to be ushed and
the function call caused an underlying write() or lseek() function to be invoked. In addition, if
the fprintf( ) function fails, errno is set to one of the following values:
[EAGAIN] The O_NONBLOCK ag is set for the le descriptor underlying stream and the
process would be delayed in the write operation.
[EBADF] The le descriptor underlying stream is not a valid le descriptor open for writ-
ing.
[EFBIG] An attempt was made to write at or beyond the le offset maximum. |
[EILSEQ] An invalid wide character was detected.
[EINTR] The operation was interrupted by a signal that was caught, and no data was
transferred.
[EINVAL] There are insufcient arguments.
[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 might also be returned under
implementation-dened conditions.
[ENOMEM] Insufcient storage space was available.
[ENOSPC] There was no free space 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: fp_class(3), isnan(3), toascii(3), printf(3), putc(3), scanf(3), sprintf(3).
STANDARDS CONFORMANCE
The POSIX standards leave some features to the implementing vendor to dene. The following
features are affected in the HP implementation:
The output of %p conversion in the fprintf() function is a pointer to a pointer to void.
The following are HP extensions to the XPG4 Version 2 specication:
The conversion specier L followed by a d, i, n, o,orx indicates that the argument will
be treated as a long long, which is a 64-bit integer data type.
The conversion specier ll followed by a d, i, n, o,orx indicates that the argument will
be treated as an unsigned long long, which is a 64-bit integer data type.
260 Hewlett-Packard Company 527192-007