From owner-freebsd-arch Sun Jun 3 1:33:27 2001 Delivered-To: freebsd-arch@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by hub.freebsd.org (Postfix) with ESMTP id 2D24837B401 for ; Sun, 3 Jun 2001 01:33:25 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter (localhost [127.0.0.1]) by critter.freebsd.dk (8.11.3/8.11.3) with ESMTP id f538Wt145915; Sun, 3 Jun 2001 10:32:55 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Peter Wemm Cc: John Polstra , arch@FreeBSD.ORG, drosih@rpi.edu Subject: Re: time_t definition is wrong In-Reply-To: Your message of "Sun, 03 Jun 2001 01:21:53 PDT." <20010603082153.E17C3380C@overcee.netplex.com.au> Date: Sun, 03 Jun 2001 10:32:55 +0200 Message-ID: <45913.991557175@critter> From: Poul-Henning Kamp Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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