Open System Services System Calls Reference Manual (G06.25+, H06.03+)
System Functions (s and S) spt_unregFile(2)
NAME
spt_unregFile - Unregisters a Guardian file number as one that the user manages
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_unregFile(
const short filenum);
PARAMETERS
filenum Specifies the Guardian file number being unregistered
DESCRIPTION
This function unregisters a Guardian file number as one that the user manages. Any threads wait-
ing on file number I/O will awaken with SPT_ERROR and Guardian file-system error 16.
RETURN VALUES
SPT_SUCCESS
The specified filenum was successfully unregistered.
SPT_ERROR One of the following conditions exists:
The value specified for filenum s less than 0 (zero)
• The specified filenum was not registered prior to this call
• The FILE_COMPLETE_SET_ procedure removal of
filenum returned a nonzero value.
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−149