From owner-freebsd-current Mon Mar 13 21: 3:11 2000 Delivered-To: freebsd-current@freebsd.org Received: from alcanet.com.au (mail.alcanet.com.au [203.62.196.10]) by hub.freebsd.org (Postfix) with ESMTP id 7686537B6EA for ; Mon, 13 Mar 2000 21:03:03 -0800 (PST) (envelope-from jeremyp@gsmx07.alcatel.com.au) Received: by border.alcanet.com.au id <115202>; Tue, 14 Mar 2000 16:03:14 +1100 Content-return: prohibited From: Peter Jeremy Subject: Re: MAX_UID ? In-reply-to: ; from bde@zeta.org.au on Tue, Mar 14, 2000 at 03:42:52PM +1100 To: Bruce Evans Cc: current@FreeBSD.ORG Message-Id: <00Mar14.160314est.115202@border.alcanet.com.au> MIME-version: 1.0 X-Mailer: Mutt 1.0i Content-type: text/plain; charset=us-ascii References: <20000314035420.B17084@hades.hell.gr> Date: Tue, 14 Mar 2000 16:03:13 +1100 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 2000-Mar-14 15:42:52 +1100, Bruce Evans wrote: >On Tue, 14 Mar 2000, Giorgos Keramidas wrote: > >> On Mon, Mar 13, 2000 at 05:28:47PM +1100, Bruce Evans wrote: >> ... >> > #define isschar(type) (!isfloat(type) && issigned(type) && sizeof(type) == 1) > >> This is marvellous in it's simplicity of interface. >> >> Yet, using sizeof(char) and assuming that it's going to be 1, strikes me >> like a dangerous thing to do. I have never heard of machines where this > >It is sure to be 1 (the C standard requires this). The problem is >going in the opposite direction -- sizeof(long) may also be 1. If this was comp.std.c, then I'd agree that such constructs may fail in some environments. It's not so clear that we need to worry about this here (this being FreeBSD). I believe that most or all such machines belong to Seymour Cray's legacy (CDC6600, Cray etc), and aren't likely to be running FreeBSD (or any other free Unix). I don't see any real impediment to such constructs being used within FreeBSD. A comment could be added warning of the problems if the code is used on `unusual' architectures. Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message