summary refs log tree commit diff
path: root/socket
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-07-22 19:12:13 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-07-22 19:16:26 +0200
commitf032ac3b838387c00210e6d8aefcb070360252ef (patch)
tree5f85c9e9f58459ff08bd98a0c18c6e90b92e099a /socket
parent02c17c8c1456e4c07f11ba7d080e1dd292bed162 (diff)
downloadglibc-f032ac3b838387c00210e6d8aefcb070360252ef.tar.gz
glibc-f032ac3b838387c00210e6d8aefcb070360252ef.tar.xz
glibc-f032ac3b838387c00210e6d8aefcb070360252ef.zip
socket: Add time64 alias for setsockopt
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.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/socket/sys/socket.h b/socket/sys/socket.h
index b37c87e7df..bd14e7e3a5 100644
--- a/socket/sys/socket.h
+++ b/socket/sys/socket.h
@@ -273,8 +273,21 @@ extern int __getsockopt64 (int __fd, int __level, int __optname,
 /* Set socket FD's option OPTNAME at protocol level LEVEL
    to *OPTVAL (which is OPTLEN bytes long).
    Returns 0 on success, -1 for errors.  */
+#ifndef __USE_TIME_BITS64
 extern int setsockopt (int __fd, int __level, int __optname,
 		       const void *__optval, socklen_t __optlen) __THROW;
+#else
+# ifdef __REDIRECT
+extern int __REDIRECT_NTH (setsockopt,
+			   (int __fd, int __level, int __optname,
+			    const void *__optval, socklen_t __optlen),
+			   __setsockopt64);
+# else
+extern int __setsockopt64 (int __fd, int __level, int __optname,
+			   const void *__optval, socklen_t __optlen) __THROW;
+#  define setsockopt __setsockopt64
+# endif
+#endif
 
 
 /* Prepare to accept connections on socket FD.