Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)
spt_close(2) OSS System Calls Reference Manual
NAME
spt_close - Initiates thread-aware close( ) function
LIBRARY
G-series native OSS processes: /G/system/sysnn/zsptsrl
H-series OSS processes: /G/system/zdllnnn/zsptdll
SYNOPSIS
#include <spthread.h>
int spt_close(
int filedes);
PARAMETERS
See the close(2) reference page.
DESCRIPTION
This is a thread-aware version of the close() function. Use spt_close() instead of close() to
ensure proper operation of the various thread-aware IO functions.
For C applications, a macro to map close() to spt_close() is available when you use the #define
SPT_THREAD_AWARE preprocessor directive before including spthread.h or when you use
an equivalent compiler command option to compile the application.
For C++ applications, an alias to map close() to spt_close() is available when you use the
#define SPT_THREAD_AWARE_PRAGMA preprocessor directive before including
spthread.h or when you use an equivalent compiler command option to compile the application.
RETURN VALUES
See the close(2) reference page.
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.
7−140 Hewlett-Packard Company 527186-023