Searched refs:usrtb (Results 1 – 3 of 3) sorted by relevance
/freebsd/contrib/libc-pwcache/ |
H A D | pwcache.c | 138 static UIDC **usrtb; /* user name to uid cache */ variable 221 if (usrtb != NULL) in usrtb_start() 225 if ((usrtb = (UIDC **)calloc(UNM_SZ, sizeof(UIDC *))) == NULL) { in usrtb_start() 409 if ((usrtb == NULL) && (usrtb_start() < 0)) in uid_from_user() 416 pptr = usrtb + st_hash(name, namelen, UNM_SZ); in uid_from_user() 547 FLUSHTB(usrtb, UNM_SZ, usrtb_fail); in pwcache_userdb() 608 i, pwopn, usrtb_fail, usrtb); in main() 616 pwopn, usrtb_fail, usrtb); in main() 622 printf("pwopn %d usrtb_fail %d usrtb %p\n", pwopn, usrtb_fail, usrtb); in main() 626 i, pwopn, usrtb_fail, usrtb); in main() [all …]
|
/freebsd/bin/pax/ |
H A D | sel_subs.c | 59 static USRT **usrtb = NULL; /* user selection table */ variable 76 if (((usrtb != NULL) && usr_match(arcn)) || in sel_chk() 111 if ((usrtb == NULL) && in usr_add() 112 ((usrtb = (USRT **)calloc(USR_TB_SZ, sizeof(USRT *))) == NULL)) { in usr_add() 139 if ((pt = usrtb[indx]) != NULL) { in usr_add() 152 pt->fow = usrtb[indx]; in usr_add() 153 usrtb[indx] = pt; in usr_add() 175 pt = usrtb[((unsigned)arcn->sb.st_uid) % USR_TB_SZ]; in usr_match()
|
H A D | cache.c | 58 static UIDC **usrtb = NULL; /* user name to uid cache */ variable 121 if (usrtb != NULL) in usrtb_start() 125 if ((usrtb = (UIDC **)calloc(UNM_SZ, sizeof(UIDC *))) == NULL) { in usrtb_start() 310 if ((usrtb == NULL) && (usrtb_start() < 0)) in uid_name() 317 ptr = usrtb[st_hash(name, namelen, UNM_SZ)]; in uid_name() 331 ptr = usrtb[st_hash(name, namelen, UNM_SZ)] = in uid_name()
|