Re: projected life of the ext2 filesystem format
Scott Ellis <email@example.com> writes:
> Well, since the time function is documented as returning -1 on errors,
> that pretty much rules out time_t being unsigned.
time() doesn't return -1 on errors, it returns (time_t)-1. Therefore
time_t can basically be any arithmetic type (which happens to be what
the ISO C standard mandates -- as a C library implementor, you could
have time_t be `double' if you were so inclined).
You could make time_t unsigned with the special exception that
(time_t)-1 (the bit pattern 0xffffffff or something like that) didn't
refer to a time. This would give you nearly double the range of a signed
time_t. You would just have to remember that there is a second missing
at the very end.
Anselm Lingnau ......................... firstname.lastname@example.org
The use of COBOL cripples the mind; its teaching should, therefore, be regarded
as a criminal offense. --- Edsger W. Dijkstra
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
Trouble? e-mail to email@example.com .