diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-07-22 19:12:13 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-07-22 19:16:26 +0200 |
commit | f032ac3b838387c00210e6d8aefcb070360252ef (patch) | |
tree | 5f85c9e9f58459ff08bd98a0c18c6e90b92e099a /socket | |
parent | 02c17c8c1456e4c07f11ba7d080e1dd292bed162 (diff) | |
download | glibc-f032ac3b838387c00210e6d8aefcb070360252ef.zip glibc-f032ac3b838387c00210e6d8aefcb070360252ef.tar.gz glibc-f032ac3b838387c00210e6d8aefcb070360252ef.tar.bz2 |
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.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/socket/sys/socket.h b/socket/sys/socket.h index b37c87e..bd14e7e 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. |