comparison third_party/libuv/src/unix/darwin-syscalls.h @ 160:948de3f54cea

[ThirdParty] Added libuv
author June Park <parkjune1995@gmail.com>
date Wed, 14 Jan 2026 19:39:52 -0800
parents
children
comparison
equal deleted inserted replaced
159:05cf9467a1c3 160:948de3f54cea
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_ */