Messages in this thread | | | Date | Thu, 6 Jan 2000 08:10:19 +0100 | From | Dominik Kubla <> | Subject | Re: time_t size: The year 2038 bug? |
| |
On Thu, Jan 06, 2000 at 05:17:55PM +1030, Glen Turner wrote: > > > > ANSI/ISO C defines time_t as a signed arithmetic type, so > > > such a change would break correct code. > > > > Are you positive? > > I checked and you are right. ANSI C just requires that it > be an arithmetic type [7.12.1] (and by other rules in the > document, a *standard* arithmetic type). >
Quoting POSIX Programmers Guide, 1st Ed., page 133:
The type time_t is defined in <time.h>. While it is typically an unsigned long, it can be a double or long double.
Looks as if POSIX and ANSI are (again) at odds...
Yours, Dominik Kubla
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |