Lines Matching defs:uid
42 static boolean_t isreserveduid(uid_t uid);
45 * Find the highest unused uid. If the highest unused uid is "stop",
51 uid_t uid = start;
59 if (pwd->pw_uid >= uid) {
64 uid = pwd->pw_uid + 1;
74 while (isreserveduid(uid) && uid < stop) /* Skip reserved IDs */
75 uid++;
76 *ret = uid;
81 * Check to see whether the uid is a reserved uid
85 isreserveduid(uid_t uid)
87 return (uid == 60001 || uid == 60002 || uid == 65534);
97 uid_t uid;
99 for (uid = start; uid <= stop; uid++) {
100 if (isreserveduid(uid))
102 if (getpwuid(uid) == NULL) {
108 if (uid > stop)
110 *ret = uid;