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

System Functions (s and S) spt_select_single_np(2)
NAME
spt_select_single_np - Initiates thread-aware select( ) function for a single 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_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 le
descriptor. To improve application performance, use the spt_select_single_np() function instead
of the spt_select() function. For multiple le desciptors, use the spt_select() function.
In spthread.h, a mapping of select() to spt_select_single_np() has been dened:
#dene 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 dened before including spthread.h as follows:
#dene SPT_THREAD_AWARE
#dene 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 dened before including spthread.h as follows:
#dene SPT_THREAD_AWARE_NONBLOCK
#dene 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 dened before including spthread.h as follows:
#dene SPT_THREAD_AWARE_PRAGMA
#dene 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 dened before including spthread.h as follows:
#dene SPT_THREAD_AWARE_PRAGMA_NONBLOCK
#dene SPT_SELECT_SINGLE
#include <spthread.h>
527186-005 Hewlett-Packard Company 7287