Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)
System Functions (s and S) socket(2)
ERRORS
If any of these conditions occurs, the socket() function sets errno to the corresponding value:
[EACCES] The process does not have appropriate privileges to create the socket.
[EAFNOSUPPORT]
The specified address family is not supported.
[EDEFINEERR]
The Guardian DEFINE =TCPIPˆPROCESSˆNAME is invalid, and the DEFINE
was used in an attempt to set the transport-provider name.
[EMFILE] No more file descriptors are available for this process.
[ENFILE] One of these conditions exists:
• The maximum number of file descriptors of this file type (socket, pipe,
etc.) for this processor are already open.
• The limit for open file descriptors of this file type has not been exceeded,
but the maximum number of all file descriptors for this processor are
already open.
[ENOBUFS] There was not enough buffer space available to complete the call. A retry at a
later time might succeed.
[ENOENT] One of these conditions occurred:
• The transport-provider process terminated abnormally.
• The transport-provider process has not been started.
• A previous call to the socket_transport_name_set() function specified
a nonexistent transport-provider process.
• The system is running AF_UNIX Release 1 and the OSS sockets local
server process is not running.
• The system is running AF_UNIX Release 2 and processor in which the
calling process is running either:
— Does not have an OSS sockets local server 2 process that is run-
ning, or
— Does not have a transport-agent process that is running.
One of these configuration errors might have occurred:
— A requested transport provider process is not available.
— An initialization error occurred because of a QIO address
conflict.
— An initialization error occurred because of a parallel TCP/IP
address conflict.
The name of an unavailable transport-provider process can be obtained
by a call to the socket_transport_name_get() function. You can set the
transport-provider name using either the socket_transport_name_set()
function or the Guardian DEFINE =_AFUNIX_PROCESS_NAME. This
Guardian define must be a MAP DEFINE with a FILE attribute string of
527186-023 Hewlett-Packard Company 7−117