xref: /minix3/minix/man/man2/recvmsg.2 (revision 433d6423c39e34ec4b79c950597bb2d236f886be)
RECVMSG 2
NAME
recvmsg - receive a message through a socket
SYNOPSIS
#include <sys/socket.h> ssize_t recvmsg(int sd, struct msghdr * msg, int flags);

DESCRIPTION
recvfrom() receives a message from another socket. It may be used with connectionless and connection oriented sockets. At present, minix doesn't support setting flags to any value other than 0.
RETURN VALUES
On success, this function returns 0. On error, -1 is returned and errno is set.
ERRORS

15 [ENOSYS] The operation is not implemented for the given socket.

15 [EPIPE] The socket is shutdown for reading.

15 [EFAULT] msg is NULL.

SEE ALSO
socket(2), recvfrom(2), readv(2), sendmsg(2)
HISTORY
This function first appeared in Minix 3.1.8.