HomeFreeBSD

clock_gettime(2),gettimeofday(2): Remove [EFAULT] error.

Description

clock_gettime(2),gettimeofday(2): Remove [EFAULT] error.

Depending on system configuration and parameters, clock_gettime() and
gettimeofday() may not be system calls. If so, passing an invalid pointer
will cause a signal and not an [EFAULT] error.

From a standards perspective, this is OK since passing an invalid pointer is
undefined behaviour.

MFC after: 1 week

Details

Provenance
jillesAuthored on
Parents
rS292512: Restore a day of the week in date(1) output for Japanese locales.
Branches
Unknown
Tags
Unknown