Open System Services System Calls Reference Manual (G06.25+, H06.03+)

spt_fd_write_ready(2) OSS System Calls Reference Manual
NAME
spt_fd_write_ready - Waits on write-ready le 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 Species an OSS le descriptor.
timeout On input, species the maximum interval to wait for fd ready.
If NULL, species that no timeout will occur.
On output, species the interval remaining.
DESCRIPTION
Wait on a le 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 le descriptor.
[ETIMEDOUT]
timeout has occurred.
STANDARDS CONFORMANCE
This function is an extension to the XPG4 Version 2 specication. 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 le spthread.h is an HP exception to the POSIX standard.
790 Hewlett-Packard Company 527186-003