mirror of https://git.musl-libc.org/git/musl
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
422 B
16 lines
422 B
|
12 years ago
|
#define _GNU_SOURCE
|
||
|
|
#include <sys/socket.h>
|
||
|
|
#include <limits.h>
|
||
|
|
#include "syscall.h"
|
||
|
|
|
||
|
|
int recvmmsg(int fd, struct mmsghdr *msgvec, unsigned int vlen, unsigned int flags, struct timespec *timeout)
|
||
|
|
{
|
||
|
|
#if LONG_MAX > INT_MAX
|
||
|
|
struct mmsghdr *mh = msgvec;
|
||
|
|
unsigned int i;
|
||
|
|
for (i = vlen; i; i--, mh++)
|
||
|
|
mh->msg_hdr.__pad1 = mh->msg_hdr.__pad2 = 0;
|
||
|
|
#endif
|
||
|
|
return syscall_cp(SYS_recvmmsg, fd, msgvec, vlen, flags, timeout);
|
||
|
|
}
|