1 #ifndef UV_DARWIN_SYSCALLS_H_ 2 #define UV_DARWIN_SYSCALLS_H_ 3 4 #include <sys/types.h> 5 #include <sys/socket.h> 6 7 /* https://github.com/apple/darwin-xnu/blob/master/bsd/sys/socket.h */ 8 9 struct mmsghdr { 10 struct msghdr msg_hdr; 11 size_t msg_len; 12 }; 13 14 ssize_t recvmsg_x(int s, const struct mmsghdr* msgp, u_int cnt, int flags); 15 ssize_t sendmsg_x(int s, const struct mmsghdr* msgp, u_int cnt, int flags); 16 17 #endif /* UV_DARWIN_SYSCALLS_H_ */ 18