about 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
commit77ede5f010f1b144e067ec035e422a13bb57c55d (patch)
treed973962b74e7392c6978457239c83c2465ae9b2b /socket/sys
parent0a921c52b3b9b7006b597d227265a47c5e5c78f4 (diff)
downloadglibc-77ede5f010f1b144e067ec035e422a13bb57c55d.tar.gz
glibc-77ede5f010f1b144e067ec035e422a13bb57c55d.tar.xz
glibc-77ede5f010f1b144e067ec035e422a13bb57c55d.zip
socket: Add time64 alias for sendmsg
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.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/socket/sys/socket.h b/socket/sys/socket.h
index b70ba58ba6..e779dc837f 100644
--- a/socket/sys/socket.h
+++ b/socket/sys/socket.h
@@ -170,8 +170,20 @@ extern ssize_t recvfrom (int __fd, void *__restrict __buf, size_t __n,
 
    This function is a cancellation point and therefore not marked with
    __THROW.  */
+#ifndef __USE_TIME_BITS64
 extern ssize_t sendmsg (int __fd, const struct msghdr *__message,
 			int __flags);
+#else
+# ifdef __REDIRECT
+extern ssize_t __REDIRECT (sendmsg, (int __fd, const struct msghdr *__message,
+				     int __flags),
+			   __sendmsg64);
+# else
+extern ssize_t __sendmsg64 (int __fd, const struct msghdr *__message,
+			    int __flags);
+#  defien sendmsg __sendmsg64
+# endif
+#endif
 
 #ifdef __USE_GNU
 /* Send a VLEN messages as described by VMESSAGES to socket FD.