diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-07-22 19:12:12 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-07-22 19:16:25 +0200 |
commit | 02c17c8c1456e4c07f11ba7d080e1dd292bed162 (patch) | |
tree | 7d9ebb96e0630bd725fa2e81ed4586c4e0923bbd /socket/sys/socket.h | |
parent | 6856975ed4ce79355752d08938f066f2ed9fcfb5 (diff) | |
download | glibc-02c17c8c1456e4c07f11ba7d080e1dd292bed162.tar.gz glibc-02c17c8c1456e4c07f11ba7d080e1dd292bed162.tar.xz glibc-02c17c8c1456e4c07f11ba7d080e1dd292bed162.zip |
socket: Add time64 alias for getsockopt
Reviewed-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'socket/sys/socket.h')
-rw-r--r-- | socket/sys/socket.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/socket/sys/socket.h b/socket/sys/socket.h index e779dc837f..b37c87e7df 100644 --- a/socket/sys/socket.h +++ b/socket/sys/socket.h @@ -251,9 +251,24 @@ extern int __REDIRECT (recvmmsg, (int __fd, struct mmsghdr *__vmessages, /* Put the current value for socket FD's option OPTNAME at protocol level LEVEL into OPTVAL (which is *OPTLEN bytes long), and set *OPTLEN to the value's actual length. Returns 0 on success, -1 for errors. */ +#ifndef __USE_TIME_BITS64 extern int getsockopt (int __fd, int __level, int __optname, void *__restrict __optval, socklen_t *__restrict __optlen) __THROW; +#else +# ifdef __REDIRECT +extern int __REDIRECT_NTH (getsockopt, + (int __fd, int __level, int __optname, + void *__restrict __optval, + socklen_t *__restrict __optlen), + __getsockopt64); +# else +extern int __getsockopt64 (int __fd, int __level, int __optname, + void *__restrict __optval, + socklen_t *__restrict __optlen) __THROW; +# define getsockopt __getsockopt64 +# endif +#endif /* Set socket FD's option OPTNAME at protocol level LEVEL to *OPTVAL (which is OPTLEN bytes long). |