This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 3/8] i386, x86: Use libc_ifunc macro for time, gettimeofday.
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Stefan Liebler <stli at linux dot vnet dot ibm dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Fri, 05 Aug 2016 10:38:02 +0200
- Subject: Re: [PATCH 3/8] i386, x86: Use libc_ifunc macro for time, gettimeofday.
- Authentication-results: sourceware.org; auth=none
- References: <1466682952-6301-1-git-send-email-stli@linux.vnet.ibm.com> <1466682952-6301-3-git-send-email-stli@linux.vnet.ibm.com> <fb7211b4-1481-1825-0e44-0a2fd4a9e3e6@linux.vnet.ibm.com>
On Fr, Aug 05 2016, Stefan Liebler <stli@linux.vnet.ibm.com> wrote:
> diff --git a/sysdeps/unix/sysv/linux/i386/gettimeofday.c b/sysdeps/unix/sysv/linux/i386/gettimeofday.c
> index 965bb81..cbf7833 100644
> --- a/sysdeps/unix/sysv/linux/i386/gettimeofday.c
> +++ b/sysdeps/unix/sysv/linux/i386/gettimeofday.c
> @@ -16,14 +16,20 @@
> License along with the GNU C Library; if not, see
> <http://www.gnu.org/licenses/>. */
>
> +#ifdef SHARED
> +# define __gettimeofday __redirect___gettimeofday
> +#endif
> +
> #include <sys/time.h>
>
> #ifdef SHARED
> +# undef __gettimeofday
> +# define redirection __redirect___gettimeofday
Please use a more specific name for this macro.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."