Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)
System Functions (s and S) sendmsg64_(2)
ERRORS
If any of these conditions occurs, the sendmsg64_( ) function sets errno to the corresponding
value:
[EACCES] The socket is in the AF_UNIX domain and either search permission is denied for
a component of the pathname in the msghdr64 structure or write access to the
specified socket is denied.
[EAFNOSUPPORT]
Addresses in the specified address family cannot be used with this socket.
[EBADF] One of these conditions exists:
• The socket parameter is not a valid file descriptor.
• The socket is in the AF_UNIX domain, and one or more of the file
descriptors being passed is invalid.
[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.
[EDESTADDRREQ]
The socket is not connection-oriented, no peer address is set, and no destination
address is specified.
[EFAULT] A user-supplied memory buffer cannot be accessed.
[EINTR] A signal interrupted the function before any data was transmitted.
[EINVAL] One of these conditions occurred:
• The socket is in the AF_UNIX domain, and the msg_control member
contains either more than 16 file descriptors or fewer than 1 file descrip-
tor.
• The socket is in the AF_UNIX domain, and an attempt was made to
send more than one cmsghdr structure.
• The socket is in the AF_UNIX domain, and the value of the cmsg_len
member is not equal to the value of the msg_controllen member.
• The socket is in the AF_UNIX domain, and the cmsg_type member is
not equal to SCM_RIGHTS.
• The sum of the values specified for the msg_iovlen member of the
msghdr64 structure is too large for a long long data item.
527186-023 Hewlett-Packard Company 7−41