This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v2 04/10] Use clock_settime to implement settimeofday.

On Mon, Sep 2, 2019 at 9:22 AM Adhemerval Zanella
<> 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).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]