path: root/include
diff options
authorRich Felker <>2014-06-19 23:01:15 -0400
committerRich Felker <>2014-06-19 23:01:15 -0400
commitacb7e049b8c70b9e6ad57e8601373f9c991a0da4 (patch)
treeecba8b37b99eafecade1f60b5b8e14e4e6d4be73 /include
parent39201d07e41ca4cf5f8c35d4663767aa3f75208f (diff)
implement sendmmsg and recvmmsg
these are not pure syscall wrappers because they have to work around kernel API bugs on 64-bit archs. the workarounds could probably be made somewhat more efficient, but at the cost of more complexity. this may be revisited later.
Diffstat (limited to 'include')
1 files changed, 11 insertions, 0 deletions
diff --git a/include/sys/socket.h b/include/sys/socket.h
index d7527911..b911d6ee 100644
--- a/include/sys/socket.h
+++ b/include/sys/socket.h
@@ -26,6 +26,17 @@ struct ucred
uid_t uid;
gid_t gid;
+struct mmsghdr
+ struct msghdr msg_hdr;
+ unsigned int msg_len;
+struct timespec;
+int sendmmsg (int, struct mmsghdr *, unsigned int, unsigned int);
+int recvmmsg (int, struct mmsghdr *, unsigned int, unsigned int, struct timespec *);
struct linger