Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Aug 1999 16:52:02 +0200
From:      Bernd Walter <ticso@cicely.de>
To:        Peter Wemm <peter@netplex.com.au>
Cc:        "Brian F. Feldman" <green@FreeBSD.ORG>, Don Lewis <Don.Lewis@tsc.tdk.com>, Sheldon Hearn <sheldonh@uunet.co.za>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: quad_t and portability
Message-ID:  <19990807165202.A37288@cicely8.cicely.de>
In-Reply-To: <19990807093848.19DF31C1F@overcee.netplex.com.au>; from Peter Wemm on Sat, Aug 07, 1999 at 05:38:48PM %2B0800
References:  <Pine.BSF.4.10.9908070138180.9444-100000@janus.syracuse.net> <19990807093848.19DF31C1F@overcee.netplex.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990807165202.A37288>