From owner-freebsd-hackers Sat Aug 7 12: 5:57 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from janus.syracuse.net (janus.syracuse.net [205.232.47.15]) by hub.freebsd.org (Postfix) with ESMTP id CBE1814C33 for ; Sat, 7 Aug 1999 12:05:55 -0700 (PDT) (envelope-from green@FreeBSD.org) Received: from localhost (green@localhost) by janus.syracuse.net (8.9.3/8.8.7) with ESMTP id PAA23683; Sat, 7 Aug 1999 15:04:53 -0400 (EDT) X-Authentication-Warning: janus.syracuse.net: green owned process doing -bs Date: Sat, 7 Aug 1999 15:04:53 -0400 (EDT) From: "Brian F. Feldman" X-Sender: green@janus.syracuse.net To: Warner Losh Cc: Don Lewis , Sheldon Hearn , freebsd-hackers@FreeBSD.org Subject: Re: quad_t and portability In-Reply-To: <199908070652.AAA08080@harmony.village.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 7 Aug 1999, Warner Losh wrote: > In message "Brian F. Feldman" writes: > : Sorry, kinda used to quad rather than long long. I'm pretty sure ll > : isn't yet supported by the kernel printf functions... > > You may be right about that. The simple solution to this, which I'd like to see, is: --- subr_prf.c.orig Sat Aug 7 14:52:55 1999 +++ subr_prf.c Sat Aug 7 15:03:19 1999 @@ -599,7 +599,11 @@ base = 10; goto number; case 'l': - lflag = 1; + if (lflag) { + lflag = 0; + qflag = 1; + } else + lflag = 1; goto reswitch; case 'o': if (qflag) And yes, a quadword is defined by us as being 64 bits, as a long long is defined in C9X. So I don't see any kind of problem doing this as a solution, period. > > Warner > 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