Beispiel #1
0
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);
}
Beispiel #2
0
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);
}