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

System Functions (s and S) spt_connectx(2)
[EINVAL] One of the following conditions exists:
The size specified for the address_len parameter is not valid for an
address in the address family that is used by this connection.
The sockaddr structure contains an invalid address family.
[EIO] The socket is in the AF_UNIX domain and an I/O error occurred during a read
or write to the file system.
[EISCONN] The specified socket is connection-oriented and is already connected.
[ELOOP] The socket is in the AF_UNIX domain and too many symbolic links were
encountered in translating the pathname in the sockaddr structure.
[ENAMETOOLONG]
The socket is in the AF_UNIX domain and one of the following conditions
exists:
The pathname in the sockaddr structure exceeds PATH_MAX charac-
ters.
A component of the pathname in the sockaddr structure exceeds
NAME_MAX characters.
The intermediate result of pathname resolution when a symbolic link is
part of the pathname in the sockaddr structure exceeds PATH_MAX
characters.
The pathconf( ) function can be called to obtain the applicable limits.
[ENETDOWN]
The local interface used to reach the destination is down.
[ENETUNREACH]
No route to the network or host is present.
[ENOBUFS] Not enough buffer space was available to complete the call. A retry at a later
time might succeed.
[ENOENT] The socket is in the AF_UNIX domain and one of the following conditions
exists:
A component of the pathname specified in the sockaddr structure does
not name an existing file.
The sockaddr structure specifies an empty string as a pathname.
[ENOMEM] Required memory resources were not available. A retry at a later time might
succeed.
[ENOTDIR] The socket is in the AF_UNIX domain and a component of the pathname
specified in the sockaddr structure is not a directory.
[ENOTSOCK] The socket parameter does not refer to a socket.
527186-023 Hewlett-Packard Company 7149