Lines Matching refs:uid
17 * These routines handle uid to username mapping.
42 int uid;
68 char *username(uid)
70 register int uid;
75 hashindex = hashit(uid);
76 if (is_empty_hash(hashindex) || (hash_table[hashindex].uid != uid))
79 hashindex = get_user(uid);
107 int enter_user(uid, name, wecare)
109 register int uid;
117 fprintf(stderr, "enter_hash(%d, %s, %d)\n", uid, name, wecare);
120 hashindex = hashit(uid);
126 if (hash_table[hashindex].uid == uid)
131 hash_table[hashindex].uid = uid;
139 * just handle this uid. Otherwise we scan the passwd file
143 int get_user(uid)
145 register int uid;
152 if ((pwd = getpwuid(uid)) != NULL)
177 if (pwd->pw_uid == uid)
187 /* if we can't find the name at all, then use the uid as the name */
188 return(enter_user(uid, itoa7(uid), 1));