Home
last modified time | relevance | path

Searched refs:namelen (Results 1 – 5 of 5) sorted by relevance

/nss/
A Dtest-netdb.c141 size_t namelen = 0; in test_hosts() local
178 while (gethostname (name, namelen) < 0 && errno == ENAMETOOLONG) in test_hosts()
180 namelen += 2; /* tiny increments to test a lot */ in test_hosts()
181 name = xrealloc (name, namelen); in test_hosts()
183 if (gethostname (name, namelen) == 0) in test_hosts()
/nss/nss_compat/
A Dcompat-initgroups.c522 int namelen = strlen (name); in blacklist_store_name() local
528 ent->blacklist.size = MAX (BLACKLIST_INITIAL_SIZE, 2 * namelen); in blacklist_store_name()
538 if (in_blacklist (name, namelen, ent)) in blacklist_store_name()
541 if (ent->blacklist.current + namelen + 1 >= ent->blacklist.size) in blacklist_store_name()
543 ent->blacklist.size += MAX (BLACKLIST_INCREMENT, 2 * namelen); in blacklist_store_name()
558 ent->blacklist.current += namelen + 1; in blacklist_store_name()
565 in_blacklist (const char *name, int namelen, ent_t *ent) in in_blacklist() argument
567 char buf[namelen + 3]; in in_blacklist()
A Dcompat-grp.c634 int namelen = strlen (name); in blacklist_store_name() local
640 ent->blacklist.size = MAX (BLACKLIST_INITIAL_SIZE, 2 * namelen); in blacklist_store_name()
650 if (in_blacklist (name, namelen, ent)) in blacklist_store_name()
653 if (ent->blacklist.current + namelen + 1 >= ent->blacklist.size) in blacklist_store_name()
655 ent->blacklist.size += MAX (BLACKLIST_INCREMENT, 2 * namelen); in blacklist_store_name()
670 ent->blacklist.current += namelen + 1; in blacklist_store_name()
677 in_blacklist (const char *name, int namelen, ent_t *ent) in in_blacklist() argument
679 char buf[namelen + 3]; in in_blacklist()
A Dcompat-spwd.c806 int namelen = strlen (name); in blacklist_store_name() local
812 ent->blacklist.size = MAX (BLACKLIST_INITIAL_SIZE, 2 * namelen); in blacklist_store_name()
822 if (in_blacklist (name, namelen, ent)) in blacklist_store_name()
825 if (ent->blacklist.current + namelen + 1 >= ent->blacklist.size) in blacklist_store_name()
827 ent->blacklist.size += MAX (BLACKLIST_INCREMENT, 2 * namelen); in blacklist_store_name()
842 ent->blacklist.current += namelen + 1; in blacklist_store_name()
850 in_blacklist (const char *name, int namelen, ent_t *ent) in in_blacklist() argument
852 char buf[namelen + 3]; in in_blacklist()
A Dcompat-pwd.c1083 int namelen = strlen (name); in blacklist_store_name() local
1089 ent->blacklist.size = MAX (BLACKLIST_INITIAL_SIZE, 2 * namelen); in blacklist_store_name()
1099 if (in_blacklist (name, namelen, ent)) in blacklist_store_name()
1102 if (ent->blacklist.current + namelen + 1 >= ent->blacklist.size) in blacklist_store_name()
1104 ent->blacklist.size += MAX (BLACKLIST_INCREMENT, 2 * namelen); in blacklist_store_name()
1119 ent->blacklist.current += namelen + 1; in blacklist_store_name()
1126 in_blacklist (const char *name, int namelen, ent_t *ent) in in_blacklist() argument
1128 char buf[namelen + 3]; in in_blacklist()

Completed in 15 milliseconds