Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)

System Functions (s and S) spt_fd_write_ready(2)
NAME
spt_fd_write_ready - Waits on write-ready file descriptor
LIBRARY
G-series native OSS processes: /G/system/sysnn/zsptsrl
H-series OSS processes: /G/system/zdllnnn/zsptdll
SYNOPSIS
#include <spthread.h>
int spt_fd_write_ready(
const int fd,
struct timeval *timeout);
PARAMETERS
fd Specifies an OSS file descriptor.
timeout On input, specifies the maximum interval to wait for fd ready.
If NULL, specifies that no timeout will occur.
On output, specifies the interval remaining.
DESCRIPTION
Wait on a file descriptor to be write-ready or have an exception pending.
RETURN VALUES
0 (zero) No error.
[EINTR] A signal was received via pthread_kill() and is not blocked, ignored, or han-
dled.
[EINVAL] Invalid function argument.
[EBADF] File descriptor was not open for writing or was closed while being waited on.
[ENOTSUP] Operation was not supported on file descriptor.
[ETIMEDOUT]
timeout has occurred.
STANDARDS CONFORMANCE
This function is an extension to the XPG4 Version 2 specification. Interfaces documented on this
reference 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.
527186-023 Hewlett-Packard Company 7175