Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)
spt_fd_read_ready(2) OSS System Calls Reference Manual
NAME
spt_fd_read_ready - Waits on read-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_read_ready(
const int fd,
struct timeval *timeout);
PARAMETERS
fd Specifies an OSS file descriptor.
timeout On input, the maximum interval to wait for fd ready; if NULL, then no timeout
will occur. On output, the interval remaining.
DESCRIPTION
Waits on a file descriptor to be read-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 not open for reading or closed while being waited on.
[ENOTSUP] Operation not supported on file descriptor.
[ETIMEDOUT]
The 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.
7−174 Hewlett-Packard Company 527186-023