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

System Functions (s and S) spt_setOSSFileIOHandler(2)
NAME
spt_setOSSFileIOHandler
- Sets interest in le 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 ledes,
const int read,
const int write,
const int error);
PARAMETERS
filedes Species the OSS le descriptor for the le 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 le descriptor.
RETURN VALUES
SPT_SUCCESS
This value is returned for any of the following conditions:
The ledes interest was successfully set
The ledes was not registered prior to this call
The specied ledes is invalid
The specied ledes is not supported
SPT_ERROR The specied ledes was less than 0 (zero).
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.
527186-003 Hewlett-Packard Company 7141