Home
last modified time | relevance | path

Searched refs:p (Results 1 – 19 of 19) sorted by relevance

/nss/
A Dtst-nss-test1.c64 for (struct passwd *p = getpwent (); p != NULL; ++np, p = getpwent ()) in do_test() local
68 if (p->pw_uid != *np || strncmp (p->pw_name, "name", 4) != 0 in do_test()
69 || atol (p->pw_name + 4) != *np) in do_test()
72 np - pwdids, p->pw_name, p->pw_uid); in do_test()
86 if (p == NULL || p->pw_uid != pwdids[i] || strcmp (buf, p->pw_name) != 0) in do_test()
92 p = getpwuid (pwdids[i]); in do_test()
93 if (p == NULL || p->pw_uid != pwdids[i] || strcmp (buf, p->pw_name) != 0) in do_test()
101 p = getpwnam (buf); in do_test()
102 if (p != NULL) in do_test()
108 p = getpwuid (pwdids[i] + 1); in do_test()
[all …]
A Dtst-nss-test2.c95 for (struct passwd *p = getpwent (); p != NULL; ++i, p = getpwent ()) in do_test() local
99 if (p->pw_uid != pwd_expected[i].pw_uid || strcmp (p->pw_name, pwd_expected[i].pw_name) != 0) in do_test()
103 p->pw_uid, p->pw_name); in do_test()
113 struct passwd *p = getpwnam (tests[i].name); in do_test() local
114 if (strcmp (p->pw_name, tests[i].name) != 0 in do_test()
115 || p->pw_uid != tests[i].uid) in do_test()
119 p->pw_uid, p->pw_name); in do_test()
123 p = getpwuid (tests[i].uid); in do_test()
124 if (strcmp (p->pw_name, tests[i].name) != 0 in do_test()
125 || p->pw_uid != tests[i].uid) in do_test()
[all …]
A Dnss_readline.c67 char *p = buf; in __nss_readline() local
68 while (isspace (*p)) in __nss_readline()
69 ++p; in __nss_readline()
70 if (*p == '\0' || *p == '#') in __nss_readline()
73 if (p != buf) in __nss_readline()
74 memmove (buf, p, strlen (p)); in __nss_readline()
A Dtst-reload1.c117 struct passwd *p; in must_be_tests() local
122 if (p != NULL) in must_be_tests()
131 p = getpwent (); in must_be_tests()
133 if (p != NULL) in must_be_tests()
247 struct passwd *p; in must_be_1() local
257 struct passwd *p; in must_be_2() local
278 struct passwd *p; in test_cross_switch_consistency() local
284 p = getpwent (); in test_cross_switch_consistency()
286 if (p != NULL) in test_cross_switch_consistency()
310 p = getpwent (); in test_cross_switch_consistency()
[all …]
A Dtst-nss-test5.c68 struct passwd *p; in do_test() local
75 for (p = getpwent (); in do_test()
76 p != NULL && ! PWD_ISLAST (& exp_table[i]); in do_test()
77 ++i, p = getpwent ()) in do_test()
78 retval += compare_passwds (i, p, & exp_table[i]); in do_test()
83 if (p) in do_test()
85 printf ("FAIL: [?] passwd entry %u.%s unexpected\n", p->pw_uid, p->pw_name); in do_test()
A Dnss_test.h54 #define PWD_ISLAST(p) ((p)->pw_name == NULL && (p)->pw_uid == 0) argument
101 printf (" passwd %u.%s (%s) :", p->pw_uid, p->pw_name, p->pw_passwd); in print_passwd()
102 printf (" %u, %s, %s, %s\n", p->pw_gid, p->pw_gecos, p->pw_dir, p->pw_shell); in print_passwd()
115 p->pw_uid, p->pw_name); in compare_passwd_field()
123 p->pw_uid, got); in compare_passwd_field()
131 p->pw_uid, p->pw_name, name, in compare_passwd_field()
149 if (p->pw_uid != e->pw_uid) in compare_passwds()
153 p->pw_uid); in compare_passwds()
158 if (p->pw_gid != e->pw_gid) in compare_passwds()
162 p->pw_gid, e->pw_gid); in compare_passwds()
[all …]
A Dnss_action.c74 for (struct nss_action_list_wrapper *p = nss_actions; p != NULL; p = p->next) in find_allocated() local
75 if (p->count == count && action_lists_equal (p->actions, actions, count)) in find_allocated()
76 return p->actions; in find_allocated()
A Dtst-nss-compat1.c53 struct passwd *p = NULL; in do_test() local
58 p = getpwuid (100); in do_test()
59 if (p == NULL) in do_test()
61 else if (strcmp (p->pw_name, "name100") != 0) in do_test()
A Drewrite_field.c34 const char *p = strpbrk (value, __nss_invalid_field_characters); in __nss_rewrite_field() local
35 if (p == NULL) in __nss_rewrite_field()
42 char *bad = *to_be_freed + (p - value); in __nss_rewrite_field()
A Dnss_module.c75 for (struct nss_module *p = nss_module_list; p != NULL; p = p->next) in __nss_module_allocate() local
76 if (strncmp (p->name, name, name_length) == 0 in __nss_module_allocate()
77 && p->name[name_length] == '\0') in __nss_module_allocate()
80 result = p; in __nss_module_allocate()
414 for (struct nss_module *p = nss_module_list; p != NULL; p = p->next) in __nss_module_disable_loading() local
415 if (p->state == nss_module_uninitialized) in __nss_module_disable_loading()
416 p->state = nss_module_failed; in __nss_module_disable_loading()
A Ddigits_dots.c188 char *p = (char *) host_addr; in __nss_hostname_digits_dots_context() local
195 *p++ = 0x00; in __nss_hostname_digits_dots_context()
196 *p++ = 0xff; in __nss_hostname_digits_dots_context()
197 *p++ = 0xff; in __nss_hostname_digits_dots_context()
199 memcpy (p, tmp, INADDRSZ); in __nss_hostname_digits_dots_context()
A Dgetent.c156 char buffer [1024], *p; in ethers_keys() local
166 p = buffer; in ethers_keys()
175 p = key[i]; in ethers_keys()
178 printf ("%s %s\n", ether_ntoa (ethp), p); in ethers_keys()
481 char *p[3]; in netgroup_keys() local
485 while (getnetgrent (p, p + 1, p + 2)) in netgroup_keys()
486 printf (" (%s,%s,%s)", p[0] ?: " ", p[1] ?: "", p[2] ?: ""); in netgroup_keys()
A Dmakedb.c582 const struct valstrentry *p = *(const struct valstrentry **) nodep; in copy_valstr() local
584 strcpy (valstrtab + (p->extra_string ? valstrlen : 0) + p->idx, p->str); in copy_valstr()
/nss/nss_compat/
A Dcompat-grp.c245 char *p; in getgrent_next_file() local
274 while (isspace (*p)) in getgrent_next_file()
275 ++p; in getgrent_next_file()
277 while (*p == '\0' || *p == '#' /* Ignore empty and comment lines. */ in getgrent_next_file()
378 char *p; in internal_getgrnam_r() local
407 while (isspace (*p)) in internal_getgrnam_r()
408 ++p; in internal_getgrnam_r()
410 while (*p == '\0' || *p == '#' /* Ignore empty and comment lines. */ in internal_getgrnam_r()
509 char *p; in internal_getgrgid_r() local
539 ++p; in internal_getgrgid_r()
[all …]
A Dcompat-pwd.c484 char *p; in getpwent_next_file() local
514 while (isspace (*p)) in getpwent_next_file()
515 ++p; in getpwent_next_file()
517 while (*p == '\0' || *p == '#' /* Ignore empty and comment lines. */ in getpwent_next_file()
683 char *p; in internal_getpwnam_r() local
715 ++p; in internal_getpwnam_r()
717 while (*p == '\0' || *p == '#' /* Ignore empty and comment lines. */ in internal_getpwnam_r()
844 char *p; in getpwuid_plususer() local
890 char *p; in internal_getpwuid_r() local
921 ++p; in internal_getpwuid_r()
[all …]
A Dcompat-spwd.c413 char *p = buffer + (buflen - plen); in getspnam_plususer() local
424 copy_spwd_changes (result, &pwd, p, plen); in getspnam_plususer()
440 char *p; in getspent_next_file() local
455 if (p == NULL && feof_unlocked (ent->stream)) in getspent_next_file()
466 while (isspace (*p)) in getspent_next_file()
467 ++p; in getspent_next_file()
469 while (*p == '\0' || *p == '#' /* Ignore empty and comment lines. */ in getspent_next_file()
639 char *p; in internal_getspnam_r() local
669 while (isspace (*p)) in internal_getspnam_r()
670 ++p; in internal_getspnam_r()
[all …]
A Dcompat-initgroups.c372 char *p; in internal_getgrent_r() local
386 p = fgets_unlocked (buffer, buflen, ent->stream); in internal_getgrent_r()
387 if (p == NULL && feof_unlocked (ent->stream)) in internal_getgrent_r()
390 if (p == NULL || __builtin_expect (buffer[buflen - 1] != '\xff', 0)) in internal_getgrent_r()
401 while (isspace (*p)) in internal_getgrent_r()
402 ++p; in internal_getgrent_r()
404 while (*p == '\0' || *p == '#' /* Ignore empty and comment lines. */ in internal_getgrent_r()
407 || !(parse_res = _nss_files_parse_grent (p, &grpbuf, data, buflen, in internal_getgrent_r()
/nss/nss_files/
A Dfiles-parse.c103 char *p = strpbrk (line, EOLSET "\n"); \
104 if (p != NULL) \
105 *p = '\0'; \
238 char **list, **p; in parse_list() local
246 p = list; in parse_list()
249 if ((char *) (p + 2) > buf_end) in parse_list()
277 *p++ = elt; in parse_list()
293 *p = NULL; in parse_list()
/nss/nss_db/
A Ddb-XXX.c191 char *p = memcpy (buffer, valstr, len); \
193 int err = parse_line (p, result, data, buflen, errnop EXTRA_ARGS); \
285 char *p = memcpy (buffer, entidx, len); in CONCAT() local
287 int err = parse_line (p, result, data, buflen, errnop EXTRA_ARGS); in CONCAT()

Completed in 51 milliseconds