Date: Sat, 7 Aug 1999 14:49:52 -0400 (EDT) From: "Brian F. Feldman" <green@FreeBSD.org> To: Peter Wemm <peter@netplex.com.au> Cc: 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: <Pine.BSF.4.10.9908071449220.23407-100000@janus.syracuse.net> In-Reply-To: <19990807093848.19DF31C1F@overcee.netplex.com.au>
index | next in thread | previous in thread | raw e-mail
On Sat, 7 Aug 1999, 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.
And 'q' on the alpha is what exactly, then?
>
> Cheers,
> -Peter
>
>
Brian Fundakowski Feldman _ __ ___ ____ ___ ___ ___
green@FreeBSD.org _ __ ___ | _ ) __| \
FreeBSD: The Power to Serve! _ __ | _ \._ \ |) |
http://www.FreeBSD.org/ _ |___/___/___/
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9908071449220.23407-100000>
