Open System Services System Calls Reference Manual (G06.25+, H06.03+)
System Functions (s and S) spt_regTimerHandler(2)
NAME
spt_regTimerHandler - Registers a user-supplied timer 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_regTimerHandler(
const spt_TimerHandler_p functionPtr);
PARAMETERS
functionPtr Specifies the user-supplied callback function; this function must
not block I/O
DESCRIPTION
This function registers a user-supplied timer callback function.
RETURN VALUES
SPT_SUCCESS
The callback function was successfully registered.
SPT_ERROR functionPtr is NULL.
SPT_ERROR The specified callback function is already registered.
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−135