sendmsg \- send a message through a socket
ssize_t sendmsg(int \fIsd\fP, const struct msghdr * \fImsg\fP, int \fIflags\fP);
sendmsg() sends a message to another socket. It may be used with
connectionless and connection oriented sockets. At present, minix
doesn't support setting \fIflags\fP to any value other than 0.
On success, this function returns 0. On error, -1 is returned and
The operation is not implemented for the given socket.
The socket is not connected; there is no peer.
The address family is not supported by send().
The length of sun_path is longer than UNIX_PATH_MAX.
The socket is shutdown for writing.
This function first appeared in Minix 3.1.8.