Re: Maximum uid and how to indicate "any user"
Re: Maximum uid and how to indicate "any user"
- Subject: Re: Maximum uid and how to indicate "any user"
- From: Mike Smith <email@hidden>
- Date: Mon, 11 Jul 2005 21:08:25 -0700
On Jul 11, 2005, at 12:06 PM, email@hidden wrote:
A quick question and a request for a word of advice... Can someone
direct me to a header where I can find the maximum possible uid under
Darwin? The only reference I can find on the net is this old one:
http://sourceforge.net/mailarchive/message.php?msg_id=1673516
Which in turn makes reference to an Apple document which now 404s...
http://www.apple.com/macosx/server/pdf/UnderstandingUsingNetInfo.pdf
That document apparently says that the maximum uid is 2,147,483,647.
The reason I ask is that I am writing some methods which take a uid_t
argument and I want to come up with a safe value that can be passed
to indicate "any user".
Is there any reason that you can't simply pass another argument?
"Magic" values are inherently unsafe (bad) for all sorts of reasons.
The use of a 64-bit argument is just "hiding" the extra argument in the
high bits of another, but without a prototype to save you from messing
it up. Better to be explicit about it up front.
= Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden