[PATCH v2 04/10] Use clock_settime to implement settimeofday.
Zack Weinberg
zackw@panix.com
Tue Sep 3 14:45:00 GMT 2019
On Mon, Sep 2, 2019 at 9:22 AM Adhemerval Zanella
<adhemerval.zanella@linaro.org> wrote:
> > The vestigial "set time zone" feature of settimeofday complicates the
> > generic settimeofday implementation a little. The only remaining uses
> > of this feature that aren't just bugs, are using it to inform the
> > Linux kernel of the offset between the hardware clock and UTC, on
> > systems where the hardware clock doesn't run in UTC (usually because
> > of dual-booting with Windows). There currently isn't any other way to
> > do this. However, the callers that do this call settimeofday with
> > _only_ the timezone argument non-NULL. Therefore, glibc's new
> > behavior is: callers of settimeofday must supply one and only one of
> > the two arguments. If both arguments are non-NULL, or both arguments
> > are NULL, the call fails and sets errno to EINVAL.
>
> We definitely need a NEWS entry for this change.
NEWS entries for the complete patchset are in the final patch of the
series (with the manual changes).
zw
More information about the Libc-alpha
mailing list