aboutsummaryrefslogtreecommitdiff
path: root/socket
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-07-21 11:42:31 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-07-21 11:58:16 +0200
commit8b2c706a9d0365793c88b044c69b78724b3078af (patch)
tree619ad3c12003afb223738e9334d9749d3b46aa95 /socket
parentb39ffab860cd743a82c91946619f1b8158b0b65e (diff)
downloadglibc-8b2c706a9d0365793c88b044c69b78724b3078af.zip
glibc-8b2c706a9d0365793c88b044c69b78724b3078af.tar.gz
glibc-8b2c706a9d0365793c88b044c69b78724b3078af.tar.bz2
socket: Add time64 alias for sendmmsg
Reviewed-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'socket')
-rw-r--r--socket/sys/socket.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/socket/sys/socket.h b/socket/sys/socket.h
index 5577e75..d02d976 100644
--- a/socket/sys/socket.h
+++ b/socket/sys/socket.h
@@ -179,9 +179,21 @@ extern ssize_t sendmsg (int __fd, const struct msghdr *__message,
This function is a cancellation point and therefore not marked with
__THROW. */
+# ifndef __USE_TIME_BITS64
extern int sendmmsg (int __fd, struct mmsghdr *__vmessages,
unsigned int __vlen, int __flags);
-#endif
+# else
+# ifdef __REDIRECT
+extern int __REDIRECT (sendmmsg, (int __fd, struct mmsghdr *__vmessages,
+ unsigned int __vlen, int __flags),
+ __sendmmsg64);
+# else
+extern int __sendmmsg64 (int __fd, struct mmsghdr *__vmessages,
+ unsigned int __vlen, int __flags);
+# define sendmmsg __sendmmsg64
+# endif
+# endif /* __USE_TIME_BITS64 */
+#endif /* __USE_GNU */
/* Receive a message as described by MESSAGE from socket FD.
Returns the number of bytes read or -1 for errors.