From owner-freebsd-hackers Sat Aug 7 2:41:17 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from overcee.netplex.com.au (overcee.netplex.com.au [202.12.86.7]) by hub.freebsd.org (Postfix) with ESMTP id B01D1155DA; Sat, 7 Aug 1999 02:41:00 -0700 (PDT) (envelope-from peter@netplex.com.au) Received: from netplex.com.au (localhost [127.0.0.1]) by overcee.netplex.com.au (Postfix) with ESMTP id 19DF31C1F; Sat, 7 Aug 1999 17:38:48 +0800 (WST) (envelope-from peter@netplex.com.au) X-Mailer: exmh version 2.0.2 2/24/98 To: "Brian F. Feldman" Cc: Don Lewis , Sheldon Hearn , freebsd-hackers@FreeBSD.org Subject: Re: quad_t and portability In-reply-to: Your message of "Sat, 07 Aug 1999 01:39:18 -0400." Date: Sat, 07 Aug 1999 17:38:48 +0800 From: Peter Wemm Message-Id: <19990807093848.19DF31C1F@overcee.netplex.com.au> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "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. Cheers, -Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message