Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)
accept(2) OSS System Calls Reference Manual
[EADDRINUSE]
The address is already in use. This error is returned in the OSS environment
only.
[EBADF] The socket parameter is not a valid file descriptor.
This error is also returned if the accept() function is thread-aware and the socket
becomes invalid (is closed by another thread).
[ECONNABORTED]
The connection was aborted.
[ECONNRESET]
One of the following conditions occurred:
• The transport-provider process for this socket is no longer available.
• The TCP/IP subsystem for this socket is no longer available.
• The connection was forcibly closed by the peer socket.
The socket can only be closed.
[EFAULT] A user-supplied memory buffer cannot be accessed or written.
[EINTR] The function call was interrupted by a signal that was caught before a valid con-
nection arrived.
This error is also returned if the accept() function is thread-aware and a signal
received from the pthread_kill() function is not blocked, ignored, or handled.
[EINVAL] The socket is not accepting connections.
[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.
[ENOMEM] There was insufficient memory available to complete the operation.
[ENOTSOCK] The socket parameter does not specify a socket.
[EOPNOTSUPP]
The socket type of the specified socket does not support accepting connections.
[EWOULDBLOCK]
The socket’s file descriptor is marked nonblocking (O_NONBLOCK is set) and
no connections are present to be accepted.
1−4 Hewlett-Packard Company 527186-023