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

spt_printfx(2) OSS System Calls Reference Manual
can be either positive or negative. For a description of IEEE value classes, see the fp_class(3)
reference page.
Guardian functions are available to convert between oating-point formats. For a discussion of
oating-point conversions, see the Guardian Programmers Guide.
RETURN VALUES
Upon successful completion, this function returns the number of bytes in the output string. Oth-
erwise, a negative value is returned.
If the le descriptor underlying stream becomes invalid (is closed by another thread), -1 is
returned with an errno value of [EBADF]. If a signal is received via the pthread_kill() function
and is not blocked, ignored, or handled, -1 is returned with an errno value of [EINTR].
ERRORS
The spt_printfx( ) function fails if either:
The standard output stream is unbuffered
The buffer for the standard output stream needs to be ushed and the function call causes
an underlying spt_writex() or lseek() function to be invoked.
In addition, if the spt_printfx( ) function fails, errno is set to one of the following
values:
[EAGAIN] The O_NONBLOCK ag is set for the le descriptor underlying the
output stream and the process would be delayed in the write operation.
[EBADF] The le descriptor underlying the output stream is not a valid le
descriptor open for writing.
[EFBIG] An attempt was made to write to a le that exceeds the processs le size
limit or the maximum le size.
[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
background 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] No free space was remaining on the device containing the le.
[EBADF] A request was made of a nonexistent device, or the request was outside
the capabilities of the device.
[EPIPE] An attempt was made to write to a pipe or FIFO that is not open for read-
ing by any process. A SIGPIPE signal will also be sent to the process.
7218 Hewlett-Packard Company 527186-007