From owner-freebsd-hackers Wed Feb 25 15:34:27 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA26508 for freebsd-hackers-outgoing; Wed, 25 Feb 1998 15:34:27 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from techunix.technion.ac.il (root@techunix.technion.ac.il [132.68.1.28]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA26418 for ; Wed, 25 Feb 1998 15:34:16 -0800 (PST) (envelope-from mellon@techunix.technion.ac.il) Received: (from mellon@localhost) by techunix.technion.ac.il (8.8.7/8.8.5) id BAA25713; Thu, 26 Feb 1998 01:08:12 +0200 (IST) Message-ID: <19980226010811.44978@techunix.technion.ac.il> Date: Thu, 26 Feb 1998 01:08:11 +0200 From: Anatoly Vorobey To: John Birrell Cc: hackers@FreeBSD.ORG Subject: Re: RE: New utilities: factor(1) and wid(1)? References: <19980226002846.05689@techunix.technion.ac.il> <199802252248.JAA00900@cimlogic.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.88 In-Reply-To: <199802252248.JAA00900@cimlogic.com.au>; from John Birrell on Thu, Feb 26, 1998 at 09:48:34AM +1100 X-Disclaimer: I was young, I needed the money! Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG You, John Birrell, were spotted writing this on Thu, Feb 26, 1998 at 09:48:34AM +1100: > Anatoly Vorobey wrote: > > P.S. What's the "politically correct" way to specify a long long > > in FreeBSD: 'long long'? 'int64_t'? 'quad_t'? > > long long, IMO. There is nothing to say how many bytes in a 'long long'. I understand that historically, it was a hack to avoid sizeof(long)==8 which would break too many existing sloppy sources? > I'd be included to stay away from quad_t. For instance, printf formats > that use %q need a long long, not a quad_t. However, that's not what man 3 printf says: o The optional character q, specifying that a following d, i, o, u, x, or X conversion corresponds to a quad int or unsigned quad int argu- ment, or that a following n conversion corresponds to a pointer to a quad int argument. Maybe it should get fixed then? > I'm having to fix things like > this to get the FreeBSD source to work on alpha. FWIW, gcc 2.7.2.2 on alpha > has sizeof(long) = sizeof(long long) = 8. That's probably the Right Thing to do. Or maybe even better would be to sizeof(long)==8, sizeof(long long)==16? I'd expect it to break an awful lot of things anyhow. -- Anatoly Vorobey, mellon@pobox.com http://pobox.com/~mellon/ "Angels can fly because they take themselves lightly" - G.K.Chesterton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message