Maximum uid and how to indicate "any user"
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com 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. Greg _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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: 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". In "/usr/include/sys/types.h" uid_t is defined as having type u_int32_t. I notice that on my clean Tiger install user "nobody" has uid -2, but obviously "nobody" and "any user" aren't the same thing. So I am wondering if -1 would be a safe value to use to stand for "any user". This email sent to site_archiver@lists.apple.com
participants (1)
-
Greg Hurrell