mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 14:00:30 +00:00
Sync recvmmsg prototype with kernel usage.
This commit is contained in:
parent
d3c827e7c8
commit
20e5a5f773
@ -1,3 +1,9 @@
|
||||
2014-09-20 Ondřej Bílka <neleai@seznam.cz>
|
||||
|
||||
* socket/recvmmsg.c (recvmmsg): Drop const argument.
|
||||
* socket/sys/socket.h: Likewise
|
||||
* sysdeps/unix/sysv/linux/recvmmsg.c: Likewise.
|
||||
|
||||
2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
|
||||
|
||||
* stdlib/longlong.h: Add __udiv_w_sdiv prototype.
|
||||
|
@ -23,7 +23,7 @@
|
||||
Returns the number of bytes read or -1 for errors. */
|
||||
int
|
||||
recvmmsg (int fd, struct mmsghdr *vmessages, unsigned int vlen, int flags,
|
||||
const struct timespec *tmo)
|
||||
struct timespec *tmo)
|
||||
{
|
||||
__set_errno (ENOSYS);
|
||||
return -1;
|
||||
|
@ -209,7 +209,7 @@ extern ssize_t recvmsg (int __fd, struct msghdr *__message, int __flags);
|
||||
__THROW. */
|
||||
extern int recvmmsg (int __fd, struct mmsghdr *__vmessages,
|
||||
unsigned int __vlen, int __flags,
|
||||
const struct timespec *__tmo);
|
||||
struct timespec *__tmo);
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -35,7 +35,7 @@
|
||||
#ifdef __NR_recvmmsg
|
||||
int
|
||||
recvmmsg (int fd, struct mmsghdr *vmessages, unsigned int vlen, int flags,
|
||||
const struct timespec *tmo)
|
||||
struct timespec *tmo)
|
||||
{
|
||||
if (SINGLE_THREAD_P)
|
||||
return INLINE_SYSCALL (recvmmsg, 5, fd, vmessages, vlen, flags, tmo);
|
||||
@ -52,14 +52,14 @@ recvmmsg (int fd, struct mmsghdr *vmessages, unsigned int vlen, int flags,
|
||||
# ifndef __ASSUME_RECVMMSG_SOCKETCALL
|
||||
extern int __internal_recvmmsg (int fd, struct mmsghdr *vmessages,
|
||||
unsigned int vlen, int flags,
|
||||
const struct timespec *tmo)
|
||||
struct timespec *tmo)
|
||||
attribute_hidden;
|
||||
|
||||
static int have_recvmmsg;
|
||||
|
||||
int
|
||||
recvmmsg (int fd, struct mmsghdr *vmessages, unsigned int vlen, int flags,
|
||||
const struct timespec *tmo)
|
||||
struct timespec *tmo)
|
||||
{
|
||||
if (__glibc_likely (have_recvmmsg >= 0))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user