source: azure_iot_hub/trunk/musl-1.1.18/src/network/recvmmsg.c@ 389

Last change on this file since 389 was 389, checked in by coas-nagasima, 5 years ago

ビルドが通るよう更新

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-csrc;charset=UTF-8
File size: 422 bytes
Line 
1#define _GNU_SOURCE
2#include <sys/socket.h>
3#include <limits.h>
4#include "syscall.h"
5
6int recvmmsg(int fd, struct mmsghdr *msgvec, unsigned int vlen, unsigned int flags, struct timespec *timeout)
7{
8#if LONG_MAX > INT_MAX
9 struct mmsghdr *mh = msgvec;
10 unsigned int i;
11 for (i = vlen; i; i--, mh++)
12 mh->msg_hdr.__pad1 = mh->msg_hdr.__pad2 = 0;
13#endif
14 return syscall_cp(SYS_recvmmsg, fd, msgvec, vlen, flags, timeout);
15}
Note: See TracBrowser for help on using the repository browser.