Lines Matching defs:entry
51 struct disk *next; /* next entry at same hash tbl index */
82 struct disk *entry;
105 if ((entry = hash_find(pw->pw_uid)) == NULL)
106 entry = hash_insert(pw->pw_uid);
107 validate_entry(entry, pw);
135 * create a new entry and insert.
145 "for hash table entry\n");
157 * return the disk entry for given uid. return NULL if not found.
184 struct disk *entry;
187 for (entry = usglist[index];
188 entry != NULL; entry = entry->next) {
189 if (entry->dsk_du != 0) {
191 entry->dsk_uid,
192 entry->dsk_name,
193 entry->dsk_du);
200 * Initialize the disk entry for a valid passwd entry.
203 validate_entry(struct disk *entry, struct passwd *pw)
205 (void) strlcpy(entry->dsk_name, pw->pw_name,
206 sizeof (entry->dsk_name));
207 entry->validuser = 1;
214 struct disk *entry;
246 * (without -p), we try creating new entry for the uid.
248 if ((entry = hash_find(statb.st_uid)) == NULL) {
251 entry = hash_insert(statb.st_uid);
253 validate_entry(entry, pw);
258 if (entry != NULL && entry->validuser) {
259 entry->dsk_du += statb.st_blocks;
271 struct disk *entry;
274 for (entry = usglist[index];
275 entry != NULL; entry = entry->next) {
277 entry->dsk_name,
278 entry->dsk_uid,
279 entry->dsk_du);