Date: Sun, 03 Jun 2001 10:32:55 +0200 From: Poul-Henning Kamp <phk@critter.freebsd.dk> To: Peter Wemm <peter@wemm.org> Cc: John Polstra <jdp@polstra.com>, arch@FreeBSD.ORG, drosih@rpi.edu Subject: Re: time_t definition is wrong Message-ID: <45913.991557175@critter> In-Reply-To: Your message of "Sun, 03 Jun 2001 01:21:53 PDT." <20010603082153.E17C3380C@overcee.netplex.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <20010603082153.E17C3380C@overcee.netplex.com.au>, Peter Wemm writes
:
>One other thing.. ufs/* should probably have int32_t in the on-disk records
>(eg: struct dquot) rather than time_t.
Somebody beat you to it, by a fair margin even:
1.5 (dyson 10-Feb-97): int32_t di_atime; /* 16: Last access time. */
1.5 (dyson 10-Feb-97): int32_t di_atimensec; /* 20: Last access time. */
1.5 (dyson 10-Feb-97): int32_t di_mtime; /* 24: Last modified time. */
1.5 (dyson 10-Feb-97): int32_t di_mtimensec; /* 28: Last modified time. */
1.5 (dyson 10-Feb-97): int32_t di_ctime; /* 32: Last inode change time. */
1.5 (dyson 10-Feb-97): int32_t di_ctimensec; /* 36: Last inode change time. */
Most of the trouble here is printf. What we need is to be able to
say something like
printf"time= %{time_t}\n", time_second);
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45913.991557175>
