Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)
System Functions (s and S) spt_setOSSFileIOHandler(2)
NAME
spt_setOSSFileIOHandler - Sets interest in file descriptor
LIBRARY
G-series native OSS processes: /G/system/sysnn/zsptsrl
H-series OSS processes: /G/system/zdllnnn/zsptdll
SYNOPSIS
#include <spthread.h>
extern spt_error_t spt_setOSSFileIOHandler(
const int filedes,
const int read,
const int write,
const int error);
PARAMETERS
filedes Specifies the OSS file descriptor for the file of interest
read Nonzero indicates interest in read ready
write Nonzero indicates interest in write ready
error Nonzero indicates interest in exception pending
DESCRIPTION
This function sets interest in an OSS file descriptor.
RETURN VALUES
SPT_SUCCESS
This value is returned for any of the following conditions:
• The filedes interest was successfully set
• The filedes was not registered prior to this call
• The specified filedes is invalid
• The specified filedes is not supported
SPT_ERROR The specified filedes was less than 0 (zero).
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 7−413