Open System Services System Calls Reference Manual (G06.25+, H06.03+)

sendmsg(2) OSS System Calls Reference Manual
[ENOMEM] Required memory resources were not available. A retry at a later time might
succeed.
[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 specied by the
msghdr structure contains a component that is not a directory.
[ENOTSOCK] The socket parameter does not refer to a socket.
[EOPNOTSUPP]
The specied value for the ags parameter is not supported for this socket type
or protocol.
[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 le descriptor is marked nonblocking (O_NONBLOCK is set), and
the operation would block.
RELATED INFORMATION
Functions: getsockopt(2), recv(2), recvfrom(2), recvmsg(2), select(2), send(2), sendto(2), set-
sockopt(2), shutdown(2), socket(2), socketpair(2).
STANDARDS CONFORMANCE
The HP implementation does not return the errno value [ENOSR].
HP extensions to the XPG4 specication are:
The errno value [ECONNRESET] can be returned when the transport-provider process
is not available.
The errno value [ENOPROTOOPT] can be returned.
728 Hewlett-Packard Company 527186-003