From owner-freebsd-current Sat Mar 11 21:59:13 2000 Delivered-To: freebsd-current@freebsd.org Received: from mail.originative.co.uk (mailgate.originative.co.uk [194.217.50.228]) by hub.freebsd.org (Postfix) with ESMTP id ED0CC37BD3D for ; Sat, 11 Mar 2000 21:59:09 -0800 (PST) (envelope-from paul@originative.co.uk) Received: from originative.co.uk (lobster.originative.co.uk [194.217.50.241]) by mail.originative.co.uk (Postfix) with ESMTP id B8BB01D132; Sun, 12 Mar 2000 05:59:08 +0000 (GMT) Message-ID: <38CB322D.D12ED0B0@originative.co.uk> Date: Sun, 12 Mar 2000 05:59:09 +0000 From: Paul Richards Organization: Originative Solutions Ltd X-Mailer: Mozilla 4.7 [en] (X11; I; FreeBSD 4.0-CURRENT i386) X-Accept-Language: en-GB, en MIME-Version: 1.0 To: John Polstra Cc: current@freebsd.org Subject: Re: MAX_UID ? References: <38CAD957.3C839375@originative.co.uk> <200003120430.UAA49807@vashon.polstra.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG John Polstra wrote: > > In article <38CAD957.3C839375@originative.co.uk>, > Paul Richards wrote: > > > > I think we need a MAX_UID and a MAX_GID to perform checks like this. > > Anyone got any objections to adding them to /usr/include/limits.h ? > > They must not go into . That header file is defined by > the ANSI/ISO C standard. The standard doesn't permit polluting the > namespace with extra stuff. Umm, ok. I don't think our limits.h actually has anything in it that meets the ANSI/ISO standard, every line is ifdef'd :-) Where would be a better place for constants like this? Are expressions like ((uid_t)0-1) portable/safe ? Maybe that's a better way of approaching this. Paul. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message