Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)
spt_select_single_np(2) OSS System Calls Reference Manual
NAME
spt_select_single_np - Initiates thread-aware select( ) function for a single file descriptor
LIBRARY
G-series native OSS processes: /G/system/sysnn/zsptsrl
H-series and J series OSS processes: /G/system/zdllnnn/zsptdll
SYNOPSIS
#include <spthread.h>
int spt_select_single_np(
int nfds,
fd_set *readfds,
fd_set *writefds,
fd_set *errorfds,
struct timeval *timeout);
PARAMETERS
See the select(2) reference page.
DESCRIPTION
This is a thread-aware version of the select() function used to check the status of a single file
descriptor. To improve application performance, use the spt_select_single_np() function instead
of the spt_select() function. For multiple file desciptors, use the spt_select() function.
In spthread.h, a mapping of select() to spt_select_single_np() has been defined:
#define select(nfds, readfds, writefds, errorfds, timeout)\
spt_select_single_np(nfds, readfds, writefds, errorfds, timeout)
For C applications that do not use the nonblocking feature, this mapping is available only when
the correct two preprocessors have been defined before including spthread.h, as follows:
#define SPT_THREAD_AWARE
#define SPT_SELECT_SINGLE
#include <spthread.h>
For C applications that use the nonblocking feature, this mapping is available only when the
correct two preprocessors have been defined before including spthread.h, as follows:
#define SPT_THREAD_AWARE_NONBLOCK
#define SPT_SELECT_SINGLE
#include <spthread.h>
For C++ applications that do not use the nonblocking feature, this mapping is available only
when the correct two preprocessors have been defined before including spthread.h, as follows:
#define SPT_THREAD_AWARE_PRAGMA
#define SPT_SELECT_SINGLE
#include <spthread.h>
For C++ applications that use the nonblocking feature, this mapping is available only when the
correct two preprocessors have been defined before including spthread.h, as follows:
#define SPT_THREAD_AWARE_PRAGMA_NONBLOCK
#define SPT_SELECT_SINGLE
#include <spthread.h>
7−392 Hewlett-Packard Company 527186-023