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

System Functions (s and S) sendmsg(2)
[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.
This error is also returned if the sendmsg() 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 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
msghdr structure is too large for a data item of type ssize_t.
[EIO] The socket is in the AF_UNIX domain, and the transport agent failed to inherit
the file descriptors being passed, or an input or output error occurred.
[ELOOP] The socket is in the AF_UNIX domain, and too many symbolic links were
encountered in translating the pathname specified by the msghdr structure.
[EMSGSIZE] The message is too large to be sent all at once, as required by the socket.
[ENAMETOOLONG]
The socket is in the AF_UNIX domain, and one of these conditions exists:
The pathname in the msghdr structure exceeds PATH_MAX characters.
A component of the pathname in the msghdr structure exceeds
NAME_MAX characters.
The intermediate result of pathname resolution when a symbolic link is
part of the pathname in the msghdr structure exceeds PATH_MAX
characters.
The pathconf( ) function can be called to obtain the applicable limits.
[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 these conditions occurred:
A component of the pathname in the msghdr structure does not name an
existing file.
527186-023 Hewlett-Packard Company 7
37