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:
parent
39201d07e4
commit
acb7e049b8
3 changed files with 55 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue