Open System Services System Calls Reference Manual (G06.28+)

spt_closex(2) OSS System Calls Reference Manual
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_closex() function sets errno to the corresponding value:
[EBADF] The ledes parameter is not a valid open le descriptor.
[EIO] An input or output error occurred. The device that the le 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 ledes parameter is appropriate only in the Guardian
environment.
For all other error conditions, errno is set to the appropriate Guardian le-
system error number. See the Guardian Procedure Errors and Messages
Manual for more information about a specic Guardian le-system error.
RELATED INFORMATION
Functions: close(2), exec(2), fcntl(2), getsockopt(2), open(2), pipe(2), setsockopt(2), socket(2),
spt_close(2), spt_fcntlx(2), tdm_execve(2), tdm_execvep(2).
Files: signal(4).
STANDARDS CONFORMANCE
This function is an extension to the UNIX 98 specication. Interfaces documented on this refer-
ence page conform to the following industry standards:
IEEE Std 1003.1c-1995, POSIX System Application Program Interface
The use of the header le spthread.h is an HP exception to the POSIX standard.
798 Hewlett-Packard Company 527186-005