tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Support for tv_sec=-1 (one second before the epoch) timestamps?



On Thu, Dec 13, 2018 at 03:29:03AM +0000, David Holland wrote:
> On Wed, Dec 12, 2018 at 10:27:04PM +0100, Joerg Sonnenberger wrote:
>  > On Wed, Dec 12, 2018 at 08:46:33PM +0100, Micha? G?rny wrote:
>  > > While researching libc++ test failures, I've discovered that NetBSD
>  > > suffers from the same issue as FreeBSD -- that is, both the userspace
>  > > tooling and the kernel have problems with (time_t)-1 timestamp,
>  > > i.e. one second before the epoch.
>  > 
>  > I see no reason why that should be valid or more general, why any
>  > negative value of time_t is required to be valid.
> 
> Are you Dan Pop? :-)

Not sure about that, but I agree that we should not extend the range of
time_t (aka "seconds since the epoch") to negative values. It is a pandora
box, keep it closed.

Martin


Home | Main Index | Thread Index | Old Index