summary refs log tree commit diff
path: root/socket/sys
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
commit0a921c52b3b9b7006b597d227265a47c5e5c78f4 (patch)
treec1f27b15f65a5e7f791bcd65ae453fe20f49b383 /socket/sys
parent8b2c706a9d0365793c88b044c69b78724b3078af (diff)
downloadglibc-0a921c52b3b9b7006b597d227265a47c5e5c78f4.tar.gz
glibc-0a921c52b3b9b7006b597d227265a47c5e5c78f4.tar.xz
glibc-0a921c52b3b9b7006b597d227265a47c5e5c78f4.zip
socket: Add time64 alias for recvmsg
Reviewed-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'socket/sys')
-rw-r--r--socket/sys/socket.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/socket/sys/socket.h b/socket/sys/socket.h
index d02d976bb5..b70ba58ba6 100644
--- a/socket/sys/socket.h
+++ b/socket/sys/socket.h
@@ -200,7 +200,18 @@ extern int __sendmmsg64 (int __fd, struct mmsghdr *__vmessages,
 
    This function is a cancellation point and therefore not marked with
    __THROW.  */
+#ifndef __USE_TIME_BITS64
 extern ssize_t recvmsg (int __fd, struct msghdr *__message, int __flags);
+#else
+# ifdef __REDIRECT
+extern ssize_t __REDIRECT (recvmsg,
+			   (int __fd, struct msghdr *__message, int __flags),
+			   __recvmsg64);
+# else
+extern ssize_t __recvmsg64 (int __fd, struct msghdr *__message, int __flags);
+#  define recvmsg __recvmsg64
+# endif
+#endif
 
 #ifdef __USE_GNU
 /* Receive up to VLEN messages as described by VMESSAGES from socket FD.