/nss/ |
A D | tst-nss-test1.c | 82 char buf[30]; in do_test() local 83 snprintf (buf, sizeof (buf), "name%u", pwdids[i]); in do_test() 85 struct passwd *p = getpwnam (buf); in do_test() 86 if (p == NULL || p->pw_uid != pwdids[i] || strcmp (buf, p->pw_name) != 0) in do_test() 88 printf ("FAIL: passwd entry \"%s\" wrong\n", buf); in do_test() 93 if (p == NULL || p->pw_uid != pwdids[i] || strcmp (buf, p->pw_name) != 0) in do_test() 99 snprintf (buf, sizeof (buf), "name%u", pwdids[i] + 1); in do_test() 101 p = getpwnam (buf); in do_test() 104 printf ("FAIL: passwd entry \"%s\" wrong\n", buf); in do_test()
|
A D | nss_readline.c | 26 __nss_readline (FILE *fp, char *buf, size_t len, off64_t *poffset) in __nss_readline() argument 42 buf[len - 1] = '\xff'; /* Marker to recognize truncation. */ in __nss_readline() 43 if (__fgets_unlocked (buf, len, fp) == NULL) in __nss_readline() 59 else if (buf[len - 1] != '\xff') in __nss_readline() 67 char *p = buf; in __nss_readline() 73 if (p != buf) in __nss_readline() 74 memmove (buf, p, strlen (p)); in __nss_readline()
|
A D | test-digits-dots.c | 29 char buf[32]; in do_test() local 35 err = gethostbyname_r ("1.2.3.4", &ret, buf, sizeof (buf), &result, &h_err); in do_test()
|
A D | tst-cancel-getpwuid_r.c | 106 char *buf; in do_test() local 122 buf = xmalloc (bufsz); in do_test() 161 ret = getpwuid_r (geteuid (), &pwbuf, buf, bufsz, &pw); in do_test() 165 free (buf); in do_test() 167 buf = xmalloc (bufsz); in do_test() 172 free (buf); in do_test()
|
A D | nss_test1.c | 154 struct alloc_buffer buf = alloc_buffer_create (buffer, buflen); in copy_passwd() local 161 result->pw_dir = alloc_buffer_maybe_copy_string (&buf, local->pw_dir); in copy_passwd() 164 if (alloc_buffer_has_failed (&buf)) in copy_passwd() 249 struct alloc_buffer buf = alloc_buffer_create (buffer, buflen); in copy_group() local 259 memlist = alloc_buffer_alloc_array (&buf, char *, i + 1); in copy_group() 276 if (alloc_buffer_has_failed (&buf)) in copy_group() 364 struct alloc_buffer buf = alloc_buffer_create (buffer, buflen); in copy_shadow() local 376 if (alloc_buffer_has_failed (&buf)) in copy_shadow() 447 struct alloc_buffer buf = alloc_buffer_create (buffer, buflen); in copy_host() local 457 memlist = alloc_buffer_alloc_array (&buf, char *, i + 1); in copy_host() [all …]
|
A D | test-netdb.c | 118 char buf[INET6_ADDRSTRLEN]; in output_hostent() local 132 inet_ntop (hptr->h_addrtype, *pptr, buf, sizeof (buf))); in output_hostent()
|
A D | getent.c | 277 char buf[INET6_ADDRSTRLEN]; in print_hosts() local 279 buf, sizeof (buf)); in print_hosts() 407 char buf[INET6_ADDRSTRLEN]; in ahosts_keys_int() local 412 buf, sizeof (buf)) == NULL) in ahosts_keys_int() 414 strcpy (buf, "<invalid>"); in ahosts_keys_int() 418 int pad = 15 - strlen (buf) - strlen (scope); in ahosts_keys_int() 423 buf, pad, scope, sockstr, runp->ai_canonname ?: ""); in ahosts_keys_int()
|
A D | tst-reload1.c | 157 char buf[TESTBUFLEN]; in must_be_tests() local 161 &r, buf, TESTBUFLEN, &rp, &herrno); in must_be_tests()
|
/nss/nss_compat/ |
A D | compat-pwd.c | 584 char buf[len]; in getpwent_next_file() local 589 memcpy (buf, &result->pw_name[1], len); in getpwent_next_file() 592 blacklist_store_name (buf, ent); in getpwent_next_file() 948 char buf[len]; in internal_getpwuid_r() local 951 memcpy (buf, &result->pw_name[2], len); in internal_getpwuid_r() 967 char buf[len]; in internal_getpwuid_r() local 995 char buf[len]; in internal_getpwuid_r() local 1012 char buf[len]; in internal_getpwuid_r() local 1128 char buf[namelen + 3]; in in_blacklist() local 1134 buf[0] = '|'; in in_blacklist() [all …]
|
A D | compat-grp.c | 304 char buf[len]; in getgrent_next_file() local 309 memcpy (buf, &result->gr_name[1], len); in getgrent_next_file() 312 blacklist_store_name (buf, ent); in getgrent_next_file() 572 char buf[len]; in internal_getgrgid_r() local 577 memcpy (buf, &result->gr_name[1], len); in internal_getgrgid_r() 580 blacklist_store_name (buf, ent); in internal_getgrgid_r() 679 char buf[namelen + 3]; in in_blacklist() local 685 buf[0] = '|'; in in_blacklist() 686 cp = stpcpy (&buf[1], name); in in_blacklist() 689 return strstr (ent->blacklist.data, buf) != NULL; in in_blacklist()
|
A D | compat-spwd.c | 537 char buf[len]; in getspent_next_file() local 542 memcpy (buf, &result->sp_namp[1], len); in getspent_next_file() 545 blacklist_store_name (buf, ent); in getspent_next_file() 852 char buf[namelen + 3]; in in_blacklist() local 858 buf[0] = '|'; in in_blacklist() 859 cp = stpcpy (&buf[1], name); in in_blacklist() 862 return strstr (ent->blacklist.data, buf) != NULL; in in_blacklist()
|
A D | compat-initgroups.c | 567 char buf[namelen + 3]; in in_blacklist() local 573 buf[0] = '|'; in in_blacklist() 574 cp = stpcpy (&buf[1], name); in in_blacklist() 577 return strstr (ent->blacklist.data, buf) != NULL; in in_blacklist()
|