[PATCH 3/8] i386, x86: Use libc_ifunc macro for time, gettimeofday.

Stefan Liebler stli@linux.vnet.ibm.com
Mon Aug 8 14:46:00 GMT 2016


On 08/05/2016 10:38 AM, Andreas Schwab wrote:
> 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.
>
Okay. Renamed to time_type and __gettimeofday_type.
I've posted the whole series again. See follow-up thread:

"[PATCH v2 4/9] i386, x86: Use libc_ifunc macro for time, gettimeofday."
https://www.sourceware.org/ml/libc-alpha/2016-08/msg00257.html



More information about the Libc-alpha mailing list