Open System Services System Calls Reference Manual (G06.25+, H06.03+)
System Functions (s and S) spt_regOSSFileIOHandler(2)
NAME
spt_regOSSFileIOHandler
- Registers the file 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 filedes,
const spt_OSSFileIOHandler_p
functionPtr);
PARAMETERS
filedes Specifies the OSS file descriptor being registered
functionPtr Specifies the user-supplied callback function; this function must not block
DESCRIPTION
This function registers the file descriptor as one that the user will manage through a user-supplied
callback.
RETURN VALUES
SPT_SUCCESS
Value for file descriptor was registered.
SPT_ERROR The specified filedes was less than 0 (zero).
SPT_ERROR filedes was already registered prior to this call.
SPT_ERROR functionPtr is NULL.
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-003 Hewlett-Packard Company 7−131