[Top][All Lists]
[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
- time64: 64-bit variants of gmtime, mktime, localtime etc?, Simon Josefsson, 2007/03/07
- Re: [bug-gnulib] time64: 64-bit variants of gmtime, mktime, localtime etc?, Bruno Haible, 2007/03/07
- Re: [bug-gnulib] time64: 64-bit variants of gmtime, mktime, localtime etc?, Paul Eggert, 2007/03/07
- Re: [bug-gnulib] time64: 64-bit variants of gmtime, mktime, localtime etc?, Bruno Haible, 2007/03/07
- Re: [bug-gnulib] time64: 64-bit variants of gmtime, mktime, localtime etc?, James Youngman, 2007/03/07
- Re: [bug-gnulib] time64: 64-bit variants of gmtime, mktime, localtime etc?, Paul Eggert, 2007/03/08
- Re: [bug-gnulib] time64: 64-bit variants of gmtime, mktime, localtime etc?,
Bruno Haible <=
- Re: [bug-gnulib] time64: 64-bit variants of gmtime, mktime, localtime etc?, Paul Eggert, 2007/03/13
- Re: time64: 64-bit variants of gmtime, mktime, localtime etc?, Bruno Haible, 2007/03/13
- Re: time64: 64-bit variants of gmtime, mktime, localtime etc?, Simon Josefsson, 2007/03/08
- Re: time64: 64-bit variants of gmtime, mktime, localtime etc?, Matthew Woehlke, 2007/03/08
Re: time64: 64-bit variants of gmtime, mktime, localtime etc?, Paul Eggert, 2007/03/07
Re: time64: 64-bit variants of gmtime, mktime, localtime etc?, James Youngman, 2007/03/07