Lines Matching refs:uid
37 * sorted by uid/name; it is used to make better guesses at login names
55 struct urec { /* 1 for each distinct uid/name */
56 uid_t ur_uid; /* sorted by uid/name */
158 * return ptr to name corresponding to uid
162 getname(uid_t uid, dev_t tty, time_t start)
166 if ((p = getnamc(uid, tty, start)) != NULL)
168 return (uidtonam(uid));
241 * corresponding to uid, return ptr to the name.
243 * for any urec having same uid as uid, search array of associated
246 * if none can be found within range, give it to person of same uid
250 getnamc(uid_t uid, dev_t tty, time_t start)
260 for (up = ur; up < urlast && uid >= up->ur_uid; up++)
261 if (uid == up->ur_uid) {