/glibc-2.36/nss/nss_compat/ |
D | compat-pwd.c | 106 free (pwd->pw_name); in give_pwd_free() 385 if (!in_blacklist (result->pw_name, strlen (result->pw_name), ent)) in getpwent_next_nss_netgr() 389 blacklist_store_name (result->pw_name, ent); in getpwent_next_nss_netgr() 433 while (in_blacklist (result->pw_name, strlen (result->pw_name), ent)); in getpwent_next_nss() 467 if (in_blacklist (result->pw_name, strlen (result->pw_name), ent)) in getpwnam_plususer() 527 if (result->pw_name[0] != '+' && result->pw_name[0] != '-') in getpwent_next_file() 532 if (result->pw_name[0] == '-' && result->pw_name[1] == '@' in getpwent_next_file() 533 && result->pw_name[2] != '\0') in getpwent_next_file() 541 __internal_setnetgrent (&result->pw_name[2], &netgrdata); in getpwent_next_file() 553 if (result->pw_name[0] == '+' && result->pw_name[1] == '@' in getpwent_next_file() [all …]
|
/glibc-2.36/nss/ |
D | bug17079.c | 33 return strcmp (a->pw_name, b->pw_name) == 0 in equal() 58 target->pw_name = xstrdup (pwd->pw_name); in init_test_items() 74 struct passwd *pwd1 = getpwnam (test_items[i].pw_name); in init_test_items() 80 test_items[i].pw_name, (long) test_items[i].pw_uid); in init_test_items() 81 test_items[i].pw_name = NULL; in init_test_items() 123 ret = getpwnam_r (item->pw_name, &pwd, buffer, buffer_size, &result); in test_one() 128 item->pw_name, buffer_size, padding_size, (unsigned char) pad); in test_one() 136 item->pw_name, buffer_size); in test_one() 142 item->pw_name, buffer_size); in test_one() 150 item->pw_name, ret); in test_one() [all …]
|
D | tst-nss-test2.c | 99 if (p->pw_uid != pwd_expected[i].pw_uid || strcmp (p->pw_name, pwd_expected[i].pw_name) != 0) in do_test() 102 pwd_expected[i].pw_uid, pwd_expected[i].pw_name, in do_test() 103 p->pw_uid, p->pw_name); in do_test() 114 if (strcmp (p->pw_name, tests[i].name) != 0 in do_test() 119 p->pw_uid, p->pw_name); in do_test() 124 if (strcmp (p->pw_name, tests[i].name) != 0 in do_test() 129 p->pw_uid, p->pw_name); in do_test()
|
D | nss_test.h | 49 #define PWD_LAST() { .pw_name = NULL, .pw_uid = 0 } 54 #define PWD_ISLAST(p) ((p)->pw_name == NULL && (p)->pw_uid == 0) 66 { .pw_name = (char *) "name" #u, .pw_passwd = (char *) "*", .pw_uid = u, \ 71 { .pw_name = (char *) n, .pw_passwd = (char *) "*", .pw_uid = u, \ 101 printf (" passwd %u.%s (%s) :", p->pw_uid, p->pw_name, p->pw_passwd); in print_passwd() 115 p->pw_uid, p->pw_name); in compare_passwd_field() 131 p->pw_uid, p->pw_name, name, in compare_passwd_field() 152 e->pw_uid, e->pw_name, in compare_passwds() 161 e->pw_uid, e->pw_name, in compare_passwds() 166 COMPARE_PWD_FIELD (pw_name); in compare_passwds()
|
D | tst-reload1.c | 124 TEST_VERIFY (strcmp (p->pw_name, pt[i].pw_name) == 0); in must_be_tests() 135 TEST_VERIFY (strcmp (p->pw_name, pt[i].pw_name) == 0); in must_be_tests() 288 TEST_VERIFY (strcmp (p->pw_name, pwd_table_1[i].pw_name) == 0); in test_cross_switch_consistency() 298 p = getpwnam (pwd_table_2[0].pw_name); in test_cross_switch_consistency() 314 TEST_VERIFY (strcmp (p->pw_name, pwd_table_2[i].pw_name) == 0); in test_cross_switch_consistency()
|
D | tst-nss-test1.c | 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() 93 if (p == NULL || p->pw_uid != pwdids[i] || strcmp (buf, p->pw_name) != 0) in do_test()
|
D | tst-nss-test5.c | 38 { .pw_name = (char *)"name20000", .pw_passwd = (char *) "*", .pw_uid = 20000, \ 41 { .pw_name = (char *)"name2", .pw_passwd = (char *) "x", .pw_uid = 2, \ 85 printf ("FAIL: [?] passwd entry %u.%s unexpected\n", p->pw_uid, p->pw_name); in do_test() 91 exp_table[i].pw_uid, exp_table[i].pw_name); in do_test()
|
D | tst-nss-getpwent.c | 45 first_name = xstrdup (pw->pw_name); in do_test() 50 last_name = xstrdup (pw->pw_name); in do_test()
|
D | nss_test1.c | 51 { .pw_name = (char *) "name" #u, .pw_passwd = (char *) "*", .pw_uid = u, \ 156 result->pw_name = alloc_buffer_maybe_copy_string (&buf, local->pw_name); in copy_passwd() 215 if (strcmp (pwd_data[idx].pw_name, name) == 0) in NAME() 328 if (strcmp (pwd_data[idx].pw_name, name) == 0) in NAME()
|
D | tst-nss-test_errno.c | 43 if (strcmp (e->pw_name, "root")) in do_test()
|
D | tst-nss-compat1.c | 61 else if (strcmp (p->pw_name, "name100") != 0) in do_test()
|
/glibc-2.36/pwd/ |
D | tst-putpwent.c | 56 printf ("putpwent: unexpected success (\"%s\")\n", p.pw_name); in check() 101 .pw_name = (char *) "root", in do_test() 105 .pw_name = (char *) "root", in do_test() 110 .pw_name = (char *) "root", in do_test() 120 .pw_name = (char *) "root", in do_test() 147 .pw_name = (char *) *bad, in do_test() 150 .pw_name = (char *) "root", in do_test() 154 .pw_name = (char *) "root", in do_test() 158 .pw_name = (char *) "root", in do_test()
|
D | putpwent.c | 34 || p->pw_name == NULL || !__nss_valid_field (p->pw_name) in putpwent() 50 if (p->pw_name[0] == '+' || p->pw_name[0] == '-') in putpwent() 52 p->pw_name, _S (p->pw_passwd), in putpwent() 56 p->pw_name, _S (p->pw_passwd), in putpwent()
|
D | fgetpwent_r.c | 33 STRING_FIELD (result->pw_name, ISCOLON, 0); 35 && (result->pw_name[0] == '+' || result->pw_name[0] == '-')) 50 if (result->pw_name[0] == '+' || result->pw_name[0] == '-')
|
D | getpw.c | 53 if (sprintf (buf, "%s:%s:%lu:%lu:%s:%s:%s", p->pw_name, p->pw_passwd, in __getpw()
|
D | pwd.h | 51 char *pw_name; /* Username. */ member
|
/glibc-2.36/nscd/ |
D | nscd_getpw_r.c | 95 const char *pw_name = NULL; in nscd_getpw_r() local 106 pw_name = (const char *) (&found->data[0].pwdata + 1); in nscd_getpw_r() 120 if (pw_name == NULL) in nscd_getpw_r() 149 resultbuf->pw_name = p; in nscd_getpw_r() 165 if (__glibc_unlikely (pw_name + total > recend)) in nscd_getpw_r() 175 if (pw_name == NULL) in nscd_getpw_r() 191 memcpy (resultbuf->pw_name, pw_name, total); in nscd_getpw_r() 194 if (resultbuf->pw_name[pw_resp.pw_name_len - 1] != '\0' in nscd_getpw_r()
|
D | pwdcache.c | 169 size_t pw_name_len = strlen (pwd->pw_name) + 1; in cache_addpw() 237 cp = mempcpy (cp, pwd->pw_name, pw_name_len); in cache_addpw()
|
/glibc-2.36/nss/nss_files/ |
D | files-pwd.c | 36 && ! strcmp (name, result->pw_name)) 42 if (result->pw_uid == uid && result->pw_name[0] != '+' 43 && result->pw_name[0] != '-')
|
/glibc-2.36/sysdeps/unix/sysv/linux/ |
D | getlogin_r.c | 90 size_t needed = strlen (pwd.pw_name) + 1; in __getlogin_r_loginuid() 98 memcpy (name, pwd.pw_name, needed); in __getlogin_r_loginuid()
|
/glibc-2.36/sysdeps/posix/ |
D | cuserid.c | 46 return strncpy (s, pwptr->pw_name, L_cuserid - 1); in cuserid()
|
/glibc-2.36/grp/ |
D | testgrp.c | 22 printf ("My login name is %s.\n", my_passwd->pw_name); in main()
|
/glibc-2.36/manual/examples/ |
D | db.c | 43 printf ("My login name is %s.\n", my_passwd->pw_name); in main()
|
/glibc-2.36/conform/data/ |
D | pwd.h-data | 8 element {struct passwd} {char*} pw_name
|
/glibc-2.36/manual/ |
D | users.texi | 579 if (getgrouplist (pw->pw_name, pw->pw_gid, groups, &ngroups) < 0) 582 getgrouplist (pw->pw_name, pw->pw_gid, groups, &ngroups); 1763 @item char *pw_name
|