aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2012-03-04 12:02:55 -0800
committerRichard Henderson <rth@twiddle.net>2012-03-04 12:02:55 -0800
commitdff6d471565929a22addcc0342901954069df3a7 (patch)
tree53ee593d924481af7b2583ddb3772ea3e8ee84d5
parent541427964427b96ad8433a23e171dd23d4b93451 (diff)
downloadglibc-dff6d471565929a22addcc0342901954069df3a7.tar.xz
glibc-dff6d471565929a22addcc0342901954069df3a7.zip
alpha: Update recvmmsg and sendmmsg declarations.
-rw-r--r--ChangeLog.alpha6
-rw-r--r--sysdeps/unix/sysv/linux/alpha/bits/socket.h17
2 files changed, 18 insertions, 5 deletions
diff --git a/ChangeLog.alpha b/ChangeLog.alpha
index 0b731b7e99..cc1b18e895 100644
--- a/ChangeLog.alpha
+++ b/ChangeLog.alpha
@@ -1,5 +1,11 @@
2012-03-04 Richard Henderson <rth@twiddle.net>
+ * sysdeps/unix/sysv/linux/alpha/bits/socket.h (recvmmsg): Only
+ declare if __USE_GNU.
+ (sendmmsg): Add declaration.
+
+2012-03-04 Richard Henderson <rth@twiddle.net>
+
* sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Don't name the
siginfo_t struct. Add forward declaration of pthread_attr_t;
use it in sigevent.
diff --git a/sysdeps/unix/sysv/linux/alpha/bits/socket.h b/sysdeps/unix/sysv/linux/alpha/bits/socket.h
index a39629cc53..238538e3c4 100644
--- a/sysdeps/unix/sysv/linux/alpha/bits/socket.h
+++ b/sysdeps/unix/sysv/linux/alpha/bits/socket.h
@@ -1,6 +1,5 @@
/* System-specific socket constants and types. Linux version.
- Copyright (C) 1991, 1992, 1994-2001, 2004, 2006, 2007, 2008, 2009, 2010
- Free Software Foundation, Inc.
+ Copyright (C) 1991-2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -417,14 +416,22 @@ struct linger
__BEGIN_DECLS
-/* Receive a message as described by MESSAGE from socket FD.
+#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);
+ 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