diff options
| author | Rich Felker <dalias@aerifal.cx> | 2014-06-19 23:01:15 -0400 | 
|---|---|---|
| committer | Rich Felker <dalias@aerifal.cx> | 2014-06-19 23:01:15 -0400 | 
| commit | acb7e049b8c70b9e6ad57e8601373f9c991a0da4 (patch) | |
| tree | ecba8b37b99eafecade1f60b5b8e14e4e6d4be73 /include | |
| parent | 39201d07e41ca4cf5f8c35d4663767aa3f75208f (diff) | |
| download | musl-acb7e049b8c70b9e6ad57e8601373f9c991a0da4.tar.gz | |
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')
| -rw-r--r-- | include/sys/socket.h | 11 | 
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 *);  #endif  struct linger | 
