Home
last modified time | relevance | path

Searched refs:usrtb (Results 1 – 3 of 3) sorted by relevance

/freebsd-12.1/contrib/libc-pwcache/
H A Dpwcache.c139 static UIDC **usrtb; /* user name to uid cache */ variable
222 if (usrtb != NULL) in usrtb_start()
226 if ((usrtb = (UIDC **)calloc(UNM_SZ, sizeof(UIDC *))) == NULL) { in usrtb_start()
410 if ((usrtb == NULL) && (usrtb_start() < 0)) in uid_from_user()
417 pptr = usrtb + st_hash(name, namelen, UNM_SZ); in uid_from_user()
548 FLUSHTB(usrtb, UNM_SZ, usrtb_fail); in pwcache_userdb()
609 i, pwopn, usrtb_fail, usrtb); in main()
617 pwopn, usrtb_fail, usrtb); in main()
623 printf("pwopn %d usrtb_fail %d usrtb %p\n", pwopn, usrtb_fail, usrtb); in main()
627 i, pwopn, usrtb_fail, usrtb); in main()
[all …]
/freebsd-12.1/bin/pax/
H A Dsel_subs.c64 static USRT **usrtb = NULL; /* user selection table */ variable
81 if (((usrtb != NULL) && usr_match(arcn)) || in sel_chk()
116 if ((usrtb == NULL) && in usr_add()
117 ((usrtb = (USRT **)calloc(USR_TB_SZ, sizeof(USRT *))) == NULL)) { in usr_add()
148 if ((pt = usrtb[indx]) != NULL) { in usr_add()
161 pt->fow = usrtb[indx]; in usr_add()
162 usrtb[indx] = pt; in usr_add()
184 pt = usrtb[((unsigned)arcn->sb.st_uid) % USR_TB_SZ]; in usr_match()
H A Dcache.c66 static UIDC **usrtb = NULL; /* user name to uid cache */ variable
129 if (usrtb != NULL) in usrtb_start()
133 if ((usrtb = (UIDC **)calloc(UNM_SZ, sizeof(UIDC *))) == NULL) { in usrtb_start()
326 if ((usrtb == NULL) && (usrtb_start() < 0)) in uid_name()
333 ptr = usrtb[st_hash(name, namelen, UNM_SZ)]; in uid_name()
347 ptr = usrtb[st_hash(name, namelen, UNM_SZ)] = in uid_name()