From owner-cvs-all Tue Nov 14 20:56:54 2000 Delivered-To: cvs-all@freebsd.org Received: from whizzo.transsys.com (whizzo.TransSys.COM [144.202.42.10]) by hub.freebsd.org (Postfix) with ESMTP id 2936337B4C5; Tue, 14 Nov 2000 20:56:49 -0800 (PST) Received: from whizzo.transsys.com (localhost.transsys.com [127.0.0.1]) by whizzo.transsys.com (8.11.0/8.11.0) with ESMTP id eAF4ucG61031; Tue, 14 Nov 2000 23:56:38 -0500 (EST) (envelope-from louie@whizzo.transsys.com) Message-Id: <200011150456.eAF4ucG61031@whizzo.transsys.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: "Daniel C. Sobral" Cc: Garance A Drosehn , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG X-Image-URL: http://www.transsys.com/louie/images/louie-mail.jpg From: "Louis A. Mamakos" Subject: Re: cvs commit: src/usr.sbin/lpr/lpd printjob.c References: <200011142132.NAA19274@freefall.freebsd.org> <3A11B20A.8AE1A5CA@newsguy.com> In-reply-to: Your message of "Wed, 15 Nov 2000 06:43:38 +0900." <3A11B20A.8AE1A5CA@newsguy.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 14 Nov 2000 23:56:38 -0500 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Garance A Drosehn wrote: > > > > gad 2000/11/14 13:32:52 PST > > > > Modified files: > > usr.sbin/lpr/lpd printjob.c > > Log: > > Get rid of 'exit(-1)' calls. Exit codes are limited to 8 bits under most > > Unixes, so -1 becomes 0xFF for 2's complement and 0xFE (?) for 1's > > complement. > > That's true, but, afaik, C standard mandates 2's complement. Also, you > forgot 0x01 for sign-bit. :-) The sign bit is still 0x80 for an 8 bit signed integer. Perhaps you're thinking about the end-around-carry? Having actually used a C compiler on a 1's complement, 36-bit word addressable CPU architecture, I don't think this is the case.. Anyway, my K&R is mostly silent on the issue of 1's complement CPU architectures, referring to the ~ operater as the 1's complement unary operator. louie To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message