Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)

spt_closez(2) OSS System Calls Reference Manual
following tasks:
Include the spthread.h header file in the application.
Compile the application using the _SPT_MODEL_ feature test macro or equivalent
compiler command option in addition to any other feature test macros in use.
Link the application to the zsptdll library (/G/system/zdllnnn/zsptdll).
RETURN VALUES
Upon successful completion, the value 0 (zero) is returned. Otherwise, the value -1 is returned,
and errno is set to indicate the error.
ERRORS
If any of these conditions occur, the spt_closez() function sets errno to the corresponding value:
[EBADF] The filedes parameter is not a valid open file descriptor.
[EIO] An input or output error occurred. The device that the file is stored on might be
in the down state, or both processors that provide access to the device might
have failed.
[EISGUARDIAN]
The value used for the filedes parameter is appropriate only in the Guardian
environment.
For all other error conditions, errno is set to the appropriate Guardian file-
system error number. See the Guardian Procedure Errors and Messages
Manual for more information about a specific Guardian file-system error.
RELATED INFORMATION
See the close(2) reference page.
STANDARDS CONFORMANCE
This function is an extension to the UNIX 98 specification. Interfaces documented on this refer-
ence page conform to IEEE Std 1003.1c-1995, POSIX System Application Program Interface,
with this exception:
The use of the header file spthread.h is an HP exception to the POSIX standard.
7144 Hewlett-Packard Company 527186-023