This is the mail archive of the
mailing list for the glibc project.
Re: PATCH: Add x32 time
On Thu, May 17, 2012 at 3:06 PM, Roland McGrath <firstname.lastname@example.org> wrote:
> OK, this clinches it for me that we really should be doing this and
> gettimeofday with syscalls.list enhancements instead.
Those are in C. If you compare gettimeofday.c and time.c, excluding
copyright, there are more codes which are different than common. We
can define libc_ifunc_vdso in include/libc-symbols.h to cover
# include <dl-vdso.h>
void *time_ifunc (void) __asm__ ("__GI_time");
PREPARE_VERSION (linux26, "LINUX_2.6", 61765110);
return _dl_vdso_vsym ("__vdso_time", &linux26);
__asm (".type __GI_time, %gnu_indirect_function");
It should cover most if not all common code.