Lines Matching refs:uid
16 * These routines handle uid to username mapping.
44 int uid;
59 username(int uid)
63 hashindex = hashit(uid);
64 if (is_empty_hash(hashindex) || (hash_table[hashindex].uid != uid))
67 hashindex = get_user(uid);
95 enter_user(int uid, char name[], bool wecare)
100 fprintf(stderr, "enter_hash(%d, %s, %d)\n", uid, name, wecare);
103 hashindex = hashit(uid);
109 if (hash_table[hashindex].uid == uid)
114 hash_table[hashindex].uid = uid;
124 get_user(int uid)
129 if ((pwd = getpwuid(uid)) != NULL)
134 /* if we can't find the name at all, then use the uid as the name */
135 return(enter_user(uid, itoa7(uid), 1));