Lines Matching defs:uid
17 * These routines handle uid to username mapping.
46 int uid;
74 char *username(uid)
76 int uid;
81 hashindex = hashit(uid);
82 if (is_empty_hash(hashindex) || (hash_table[hashindex].uid != uid))
85 hashindex = get_user(uid);
113 int enter_user(uid, name, wecare)
115 int uid;
123 fprintf(stderr, "enter_hash(%d, %s, %d)\n", uid, name, wecare);
126 hashindex = hashit(uid);
132 if (hash_table[hashindex].uid == uid)
137 hash_table[hashindex].uid = uid;
145 * just handle this uid. Otherwise we scan the passwd file
149 int get_user(uid)
151 int uid;
158 if ((pwd = getpwuid(uid)) != NULL)
183 if (pwd->pw_uid == uid)
193 /* if we can't find the name at all, then use the uid as the name */
194 return(enter_user(uid, itoa7(uid), 1));