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.
This commit is contained in:
Rich Felker
2014-06-19 23:01:15 -04:00
parent 39201d07e4
commit acb7e049b8
3 changed files with 55 additions and 0 deletions

View File

@ -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 *);
#endif
struct linger