int __gettimeofday (struct timeval *tv, struct timezone *tz) { #ifdef SHARED /* If the vDSO is available we use it. */ if (__vdso_gettimeofday != NULL) return __vdso_gettimeofday (tv, tz); #endif return INLINE_SYSCALL (gettimeofday, 2, tv, tz); }
int __gettimeofday(struct timeval *tv, struct timezone *tz) { int error; error = __vdso_gettimeofday(tv, tz); if (error == ENOSYS) error = __sys_gettimeofday(tv, tz); return (error); }