Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)
System Functions (r) recvmsg(2)
ERRORS
If any of these conditions occurs, the recvmsg() function sets errno to the corresponding value:
[EBADF] The socket parameter is not a valid file descriptor.
This error is also returned if the recvmsg() function is thread-aware and the
socket becomes invalid (is closed by another thread).
[ECONNRESET]
One of these 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] A signal interrupted the function before any data was available.
This error is also returned if the recvmsg() function is thread-aware and a signal
received from the pthread_kill() function is not blocked, ignored, or handled.
[EINVAL] One of these conditions occurred:
• The MSG_OOB value is specified in the flags parameter, and no out-of-
band data is available.
• The sum of the values specified for the msg_iovlen field of the msghdr
structure is too large for a data item of type ssize_t.
• The socket belongs to the AF_INET or AF_INET6 domain, and the
function call requested msg_control data.
• The socket belongs to the AF_UNIX domain, and the size of
msg_controllen is less than the size of the cmsghdr structure plus one
file descriptor.
[EIO] An input or output error occurred.
[EMFILE] The socket is in the AF_UNIX domain, and processing the cmsghdr structure
would cause the receiving process to exceed OPEN_MAX.
[ENOBUFS] Not enough buffer space was available to complete the call. A retry at a later
time might succeed.
[ENOMEM] There was insufficient memory available to complete the operation.
[ENOTCONN] A receive operation was attempted on a connection-oriented socket that is not
connected.
[ENOTSOCK] The socket parameter does not refer to a socket.
[EOPNOTSUPP]
A specified value for the flags parameter is not supported for this socket type.
527186-023 Hewlett-Packard Company 6−37