Home
last modified time | relevance | path

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

/freebsd-10-stable/contrib/libc-pwcache/
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-10-stable/bin/pax/
Dsel_subs.c62 static USRT **usrtb = NULL; /* user selection table */ variable
79 if (((usrtb != NULL) && usr_match(arcn)) || in sel_chk()
114 if ((usrtb == NULL) && in usr_add()
115 ((usrtb = (USRT **)calloc(USR_TB_SZ, sizeof(USRT *))) == NULL)) { in usr_add()
146 if ((pt = usrtb[indx]) != NULL) { in usr_add()
159 pt->fow = usrtb[indx]; in usr_add()
160 usrtb[indx] = pt; in usr_add()
182 pt = usrtb[((unsigned)arcn->sb.st_uid) % USR_TB_SZ]; in usr_match()
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()
324 if ((usrtb == NULL) && (usrtb_start() < 0)) in uid_name()
331 ptr = usrtb[st_hash(name, namelen, UNM_SZ)]; in uid_name()
345 ptr = usrtb[st_hash(name, namelen, UNM_SZ)] = in uid_name()