John Polstra wrote:
>
> In article <[EMAIL PROTECTED]>,
> Paul Richards <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message