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

connect(2) OSS System Calls Reference Manual
[EFAULT] A user-supplied memory buffer cannot be
accessed.
[EHOSTUNREACH]
The destination host cannot be reached.
[EINPROGRESS]
The socket is marked nonblocking (O_NONBLOCK is set) and the requested
connection is not yet completed. The connection will be completed asynchro-
nously.
[EINTR] The attempt to connect was interrupted by delivery of a signal. The connection
will be completed asynchronously.
[EINVAL] One of the following conditions exists:
The size specied 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 le system.
[EISCONN] The specied 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] There was not enough buffer space available to complete the call. A retry at a
later time may succeed.
[ENOENT] The socket is in the AF_UNIX domain and one of the following conditions
exists:
A component of the pathname specied in the sockaddr structure does
not name an existing le.
130 Hewlett-Packard Company 527186-005