Lines Matching refs:usr

199 	struct user *usr;  in inituser()  local
207 for (usr = users, i = nusers; --i >= 0; usr++) { in inituser()
208 usr->space = usr->spc30 = usr->spc60 = usr->spc90 = 0; in inituser()
209 usr->count = 0; in inituser()
218 struct user *usr, *usrn; in usrrehash() local
225 for (usr = svusr, i = nusers >> 1; --i >= 0; usr++) { in usrrehash()
226 for (usrn = users + (usr->uid&(nusers - 1)); usrn->name; in usrrehash()
231 *usrn = *usr; in usrrehash()
238 struct user *usr; in user() local
243 for (usr = users + (uid&(nusers - 1)), i = nusers; --i >= 0; in user()
244 usr--) { in user()
245 if (!usr->name) { in user()
246 usr->uid = uid; in user()
249 if ((usr->name = (char *)malloc(7))) in user()
250 sprintf(usr->name,"#%d",uid); in user()
252 if ((usr->name = (char *) in user()
254 strcpy(usr->name,pwd->pw_name); in user()
256 if (!usr->name) in user()
259 return usr; in user()
261 } else if (usr->uid == uid) in user()
262 return usr; in user()
264 if (usr <= users) in user()
265 usr = users + nusers; in user()
288 struct user *usr; in uses() local
293 usr = user(uid); in uses()
294 usr->count++; in uses()
295 usr->space += blks; in uses()
298 usr->spc90 += blks; in uses()
300 usr->spc60 += blks; in uses()
302 usr->spc30 += blks; in uses()
406 struct user *usr, *usrs; in douser() local
427 for (usr = usrs, n = nusers; --n >= 0 && usr->count; usr++) { in douser()
428 printf("%5d",SIZE(usr->space)); in douser()
430 printf("\t%5ld",usr->count); in douser()
431 printf("\t%-8s",usr->name); in douser()
434 SIZE(usr->spc30), in douser()
435 SIZE(usr->spc60), in douser()
436 SIZE(usr->spc90)); in douser()