2 #include <sys/socket.h>
6 int recvmmsg(int fd, struct mmsghdr *msgvec, unsigned int vlen, unsigned int flags, struct timespec *timeout)
9 struct mmsghdr *mh = msgvec;
11 for (i = vlen; i; i--, mh++)
12 mh->msg_hdr.__pad1 = mh->msg_hdr.__pad2 = 0;
14 return syscall_cp(SYS_recvmmsg, fd, msgvec, vlen, flags, timeout);