Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Mar 2000 05:59:09 +0000
From:      Paul Richards <paul@originative.co.uk>
To:        John Polstra <jdp@polstra.com>
Cc:        current@freebsd.org
Subject:   Re: MAX_UID ?
Message-ID:  <38CB322D.D12ED0B0@originative.co.uk>
References:  <38CAD957.3C839375@originative.co.uk> <200003120430.UAA49807@vashon.polstra.com>

next in thread | previous in thread | raw e-mail | index | archive | help
John Polstra wrote:
> 
> In article <38CAD957.3C839375@originative.co.uk>,
> Paul Richards  <paul@originative.co.uk> 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 <limits.h>.  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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38CB322D.D12ED0B0>