bug-gnulib
[Top][All Lists]
Advanced

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

Re: [bug-gnulib] time64: 64-bit variants of gmtime, mktime, localtime et


From: Bruno Haible
Subject: Re: [bug-gnulib] time64: 64-bit variants of gmtime, mktime, localtime etc?
Date: Fri, 9 Mar 2007 02:44:08 +0100
User-agent: KMail/1.5.4

Paul Eggert wrote:
> The main reason I want 64-bit time_t is so that my apps can stat any
> file without getting EOVERFLOW. ... on 32-bit platforms

If the time_t type is smaller than the type used for timestamps in the
particular filesystem, you can get EOVERFLOW during stat().

If, on the other hand, the time_t type is larger than the one used in the
filesystem, you can get EOVERFLOW during utime().

And you cannot set time_t to be the same size as on all filesystems, since
filesystems differ.

So, either way, you have an opportunity for EOVERFLOW. If a system makes
the opposite choice than all other systems, it creates many possible
bugs and security problems in various applications.

Bruno





reply via email to

[Prev in Thread] Current Thread [Next in Thread]