Lines Matching full:uid
14 * These routines handle uid to username mapping.
42 int uid; member
57 username(int uid) in username() argument
61 hashindex = hashit(uid); in username()
62 if (is_empty_hash(hashindex) || (hash_table[hashindex].uid != uid)) in username()
65 hashindex = get_user(uid); in username()
93 enter_user(int uid, char name[], bool wecare) in enter_user() argument
98 fprintf(stderr, "enter_hash(%d, %s, %d)\n", uid, name, wecare); in enter_user()
101 hashindex = hashit(uid); in enter_user()
107 if (hash_table[hashindex].uid == uid) in enter_user()
112 hash_table[hashindex].uid = uid; in enter_user()
122 get_user(int uid) in get_user() argument
127 if ((pwd = getpwuid(uid)) != NULL) in get_user()
132 /* if we can't find the name at all, then use the uid as the name */ in get_user()
133 return(enter_user(uid, itoa7(uid), 1)); in get_user()