[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] ARM: Mes C Library: Add compile stub for time.
From: |
Danny Milosavljevic |
Subject: |
Re: [PATCH] ARM: Mes C Library: Add compile stub for time. |
Date: |
Wed, 3 Jun 2020 00:39:04 +0200 |
Aha, Linux has:
#ifdef __ARCH_WANT_SYS_TIME
/*
* sys_time() can be implemented in user-level using
* sys_gettimeofday(). Is this for backwards compatibility? If so,
* why not move it into the appropriate arch directory (for those
* architectures that need it).
*/
SYSCALL_DEFINE1(time, time_t __user *, tloc)
{
time_t i = get_seconds();
if (tloc) {
if (put_user(i,tloc))
return -EFAULT;
}
force_successful_syscall_return();
return i;
}
...
#endif
So seems to be fine to pass NULL. Some weird interface IMO :)
pgp6DapgEMvRd.pgp
Description: OpenPGP digital signature