Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/libc-pwcache/
H A Dpwcache.c138 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-14.2/bin/pax/
H A Dsel_subs.c65 static USRT **usrtb = NULL; /* user selection table */ variable
82 if (((usrtb != NULL) && usr_match(arcn)) || in sel_chk()
117 if ((usrtb == NULL) && in usr_add()
118 ((usrtb = (USRT **)calloc(USR_TB_SZ, sizeof(USRT *))) == NULL)) { in usr_add()
145 if ((pt = usrtb[indx]) != NULL) { in usr_add()
158 pt->fow = usrtb[indx]; in usr_add()
159 usrtb[indx] = pt; in usr_add()
181 pt = usrtb[((unsigned)arcn->sb.st_uid) % USR_TB_SZ]; in usr_match()
H A Dcache.c64 static UIDC **usrtb = NULL; /* user name to uid cache */ variable
127 if (usrtb != NULL) in usrtb_start()
131 if ((usrtb = (UIDC **)calloc(UNM_SZ, sizeof(UIDC *))) == NULL) { in usrtb_start()
316 if ((usrtb == NULL) && (usrtb_start() < 0)) in uid_name()
323 ptr = usrtb[st_hash(name, namelen, UNM_SZ)]; in uid_name()
337 ptr = usrtb[st_hash(name, namelen, UNM_SZ)] = in uid_name()