From owner-freebsd-arch Mon Jun 4 8:47:22 2001 Delivered-To: freebsd-arch@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id B064237B403; Mon, 4 Jun 2001 08:47:19 -0700 (PDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.9.3/8.9.3) id LAA76688; Mon, 4 Jun 2001 11:47:18 -0400 (EDT) (envelope-from wollman) Date: Mon, 4 Jun 2001 11:47:18 -0400 (EDT) From: Garrett Wollman Message-Id: <200106041547.LAA76688@khavrinen.lcs.mit.edu> To: obrien@FreeBSD.org Cc: arch@FreeBSD.org, freebsd-standards@bostonradio.org Subject: Re: time_t definition is wrong In-Reply-To: <20010602142011.N31257@dragon.nuxi.com> References: <200106012318.f51NI8w38590@bunrab.catwhisker.org> <200106020823.f528N5O98998@earth.backplane.com> <20010602085237.A73968@dragon.nuxi.com> <200106021739.f52Hd9V03943@earth.backplane.com> <20010602124907.G31257@dragon.nuxi.com> <200106022005.f52K5FR04823@earth.backplane.com> <20010602131404.M31257@dragon.nuxi.com> <200106022040.f52KeSJ05088@earth.backplane.com> <20010602142011.N31257@dragon.nuxi.com> 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 < said: > time_t needs to be consistent across all FreeBSD platforms. No, it doesn't. > Otherwise we get in consistent behavior across our platforms. Which will always be the case given that some platforms are ILP32 and some are LP64. s/time_t/size_t/g and see where that argument gets you. > This includes both the size of it, and the spelling of the printf() > format specifier. Nonsense. Any program which attempts to print a time_t without casting appropriately is simply, flat-out, wrong, and has been wrong for more than ten years now. -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message