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

spt_regOSSFileIOHandler(2) OSS System Calls Reference Manual
NAME
spt_regOSSFileIOHandler
- Registers the le descriptor to manage through a callback function
LIBRARY
G-series native OSS processes: /G/system/sysnn/zsptsrl
H-series OSS processes: /G/system/zdllnnn/zsptdll
SYNOPSIS
#include <spthread.h>
spt_error_t spt_regOSSFileIOHandler(
const int ledes,
const spt_OSSFileIOHandler_p
functionPtr);
PARAMETERS
filedes Species the OSS le descriptor being registered
functionPtr Species the user-supplied callback function; this function must not
block
DESCRIPTION
This function registers the le descriptor as one that the user will manage through a user-supplied
callback.
RETURN VALUES
SPT_SUCCESS
Value for le descriptor was registered.
SPT_ERROR The specied ledes was less than 0 (zero).
SPT_ERROR ledes was already registered prior to this call.
SPT_ERROR functionPtr is NULL.
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.
7284 Hewlett-Packard Company 527186-007