Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)
sendmsg(2) OSS System Calls Reference Manual
• The msghdr structure specifies an empty string as a pathname.
[ENOMEM] There was insufficient memory available to complete the operation.
[ENOPROTOOPT]
The socket is in the AF_UNIX domain, and the cmsg_level member is not equal
to SOL_SOCKET.
[ENOTCONN] The socket is connection-oriented but is not connected.
[ENOTDIR] The socket is in the AF_UNIX domain, and the pathname specified by the
msghdr structure contains a component that is not a directory.
[ENOTSOCK] The socket parameter does not refer to a socket.
[EOPNOTSUPP]
The specified value for the flags parameter is not supported for this socket type
or protocol.
[EPERM] The address included in the message parameter is bound to a socket whose mode
is different than the mode of the socket specified by the socket parameter.
[EPIPE] One of these conditions occurred:
• An attempt was made to send a message on a socket that is shut down
for writing.
• An attempt was made to send a message on a connection-oriented
socket, and the peer socket is closed or shut down for reading. The SIG-
PIPE signal is also sent to the calling process.
[EWOULDBLOCK]
The socket file descriptor is marked nonblocking (O_NONBLOCK is set), and
the operation would block.
RELATED INFORMATION
Functions: fcntl(2), getsockopt(2), recv(2), recvfrom(2), recvmsg(2), select(2), send(2),
sendto(2), setsockopt(2), shutdown(2), sockatmark(2), socket(2), socketpair(2),
spt_sendmsgx(2).
STANDARDS CONFORMANCE
The HP implementation does not return the errno value [ENOSR].
HP extensions to the XPG4 specification are:
• The errno value [ECONNRESET] can be returned when the transport-provider process
is not available.
• The errno value [ENOPROTOOPT] can be returned.
The use of this function with the POSIX User Thread Model library conforms to the following
industry standards:
• IEEE Std 1003.1-2004, POSIX System Application Program Interface
7−38 Hewlett-Packard Company 527186-023