From owner-freebsd-hackers Sat Aug 7 7:53:19 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.du.gtn.com (mail.du.gtn.com [194.77.9.57]) by hub.freebsd.org (Postfix) with ESMTP id 71BCB14FA3; Sat, 7 Aug 1999 07:53:14 -0700 (PDT) (envelope-from ticso@cicely8.cicely.de) Received: from cicely7.cicely.de (cicely.de [194.231.9.142]) by mail.du.gtn.com (8.8.6/8.8.6) with ESMTP id QAA05647; Sat, 7 Aug 1999 16:51:43 +0200 (MET DST) Received: from cicely8.cicely.de (cicely8.cicely.de [10.1.2.10]) by cicely7.cicely.de (8.9.0/8.9.0) with ESMTP id QAA70307; Sat, 7 Aug 1999 16:51:21 +0200 (CEST) Received: (from ticso@localhost) by cicely8.cicely.de (8.9.3/8.9.2) id QAA37332; Sat, 7 Aug 1999 16:52:03 +0200 (CEST) (envelope-from ticso) Date: Sat, 7 Aug 1999 16:52:02 +0200 From: Bernd Walter To: Peter Wemm Cc: "Brian F. Feldman" , Don Lewis , Sheldon Hearn , freebsd-hackers@FreeBSD.ORG Subject: Re: quad_t and portability Message-ID: <19990807165202.A37288@cicely8.cicely.de> References: <19990807093848.19DF31C1F@overcee.netplex.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <19990807093848.19DF31C1F@overcee.netplex.com.au>; from Peter Wemm on Sat, Aug 07, 1999 at 05:38:48PM +0800 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, Aug 07, 1999 at 05:38:48PM +0800, Peter Wemm wrote: > "Brian F. Feldman" wrote: > > On Fri, 6 Aug 1999, Don Lewis wrote: > > > > > On Aug 6, 3:29pm, Sheldon Hearn wrote: > > > } Subject: quad_t and portability > > > } > > > } Hi folks, > > > } > > > } I want to patch wc(1) so that it uses quad_t instead of u_long. This is > > > } necessary if wc(1) is to produce sensible results for files containing > > > } more than 4GB of data. > > > > > > Why not off_t, which should be portable and scale properly with the > > > maximum system file size. Then the only problem is figuring a portable > > > means of printing the result ... > > > > > > > You can always use off_t with "%qd", (int64_t)foo. > > But not on the Alpha... int64_t is a long there, and gcc complains unless > you use %ld. Mmm and long is 32Bit it seems. At least that would explain some of the warnings I got when setting MAXDSIZ to 128G on alpha. -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message