diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2012-11-03 18:29:46 +0100 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2012-11-20 19:26:04 +0100 |
commit | 123be9deda8eb24ef15fb889248984e6d23bb8b4 (patch) | |
tree | 8d875402831e2eb1923b9d3ef8d88bcee14ad2c6 /sysdeps/unix/sysv/linux/bits/socket.h | |
parent | cf9a5d186154b1ad4a8459fafa135dcd822e5f3b (diff) | |
download | glibc-123be9deda8eb24ef15fb889248984e6d23bb8b4.tar glibc-123be9deda8eb24ef15fb889248984e6d23bb8b4.tar.gz glibc-123be9deda8eb24ef15fb889248984e6d23bb8b4.tar.bz2 glibc-123be9deda8eb24ef15fb889248984e6d23bb8b4.zip |
Add recvmmsg and sendmmsg to the generic glibc API.
Diffstat (limited to 'sysdeps/unix/sysv/linux/bits/socket.h')
-rw-r--r-- | sysdeps/unix/sysv/linux/bits/socket.h | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/sysdeps/unix/sysv/linux/bits/socket.h b/sysdeps/unix/sysv/linux/bits/socket.h index 309cba7282..df8f1670b0 100644 --- a/sysdeps/unix/sysv/linux/bits/socket.h +++ b/sysdeps/unix/sysv/linux/bits/socket.h @@ -235,16 +235,6 @@ struct msghdr int msg_flags; /* Flags on received message. */ }; -#ifdef __USE_GNU -/* For `recvmmsg' and 'sendmmsg'. */ -struct mmsghdr - { - struct msghdr msg_hdr; /* Actual message header. */ - unsigned int msg_len; /* Number of received or sent bytes - for the entry. */ - }; -#endif - /* Structure used for storage of ancillary data object information. */ struct cmsghdr { @@ -389,27 +379,4 @@ struct linger int l_linger; /* Time to linger. */ }; - -__BEGIN_DECLS - -#ifdef __USE_GNU -/* Receive up to VLEN messages as described by VMESSAGES from socket FD. - Returns the number of bytes read or -1 for errors. - - This function is a cancellation point and therefore not marked with - __THROW. */ -extern int recvmmsg (int __fd, struct mmsghdr *__vmessages, - unsigned int __vlen, int __flags, - const struct timespec *__tmo); - -/* Send a VLEN messages as described by VMESSAGES to socket FD. - Return the number of datagrams successfully written or -1 for errors. -This function is a cancellation point and therefore not marked with - __THROW. */ -extern int sendmmsg (int __fd, struct mmsghdr *__vmessages, - unsigned int __vlen, int __flags); -#endif - -__END_DECLS - #endif /* bits/socket.h */ |