/glibc-2.36/nss/ |
D | bug17079.c | 35 && a->pw_uid == b->pw_uid in equal() 60 target->pw_uid = pwd->pw_uid; in init_test_items() 75 struct passwd *pwd2 = getpwuid (test_items[i].pw_uid); in init_test_items() 80 test_items[i].pw_name, (long) test_items[i].pw_uid); in init_test_items() 157 ret = getpwuid_r (item->pw_uid, &pwd, buffer, buffer_size, &result); in test_one() 162 (long) item->pw_uid, buffer_size, padding_size, in test_one() 171 (long) item->pw_uid, buffer_size); in test_one() 177 (long) item->pw_uid, buffer_size); in test_one() 185 (long) item->pw_uid, ret); in test_one()
|
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() 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() 152 e->pw_uid, e->pw_name, in compare_passwds() [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() 115 || p->pw_uid != tests[i].uid) in do_test() 119 p->pw_uid, p->pw_name); in do_test() 125 || p->pw_uid != tests[i].uid) in do_test() 129 p->pw_uid, p->pw_name); in do_test()
|
D | tst-reload1.c | 120 p = getpwuid (pt[i].pw_uid); in must_be_tests() 136 TEST_VERIFY (p->pw_uid == pt[i].pw_uid); in must_be_tests() 289 TEST_VERIFY (p->pw_uid == pwd_table_1[i].pw_uid); in test_cross_switch_consistency() 299 TEST_VERIFY (p->pw_uid == pwd_table_2[0].pw_uid); in test_cross_switch_consistency() 315 TEST_VERIFY (p->pw_uid == pwd_table_2[i].pw_uid); in test_cross_switch_consistency()
|
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-test1.c | 68 if (p->pw_uid != *np || strncmp (p->pw_name, "name", 4) != 0 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-reload2.c | 114 TEST_COMPARE (pw->pw_uid, 1234); in do_test() 132 TEST_VERIFY (pw->pw_uid != 2468); in do_test() 138 TEST_COMPARE (pw->pw_uid, 1234); in do_test()
|
D | tst-nss-getpwent.c | 46 first_uid = pw->pw_uid; in do_test() 51 last_uid = pw->pw_uid; in do_test()
|
D | nss_test1.c | 51 { .pw_name = (char *) "name" #u, .pw_passwd = (char *) "*", .pw_uid = u, \ 158 result->pw_uid = local->pw_uid; in copy_passwd() 202 if (pwd_data[idx].pw_uid == uid) in NAME()
|
/glibc-2.36/pwd/ |
D | fgetpwent_r.c | 41 result->pw_uid = 0; 52 INT_FIELD_MAYBE_NULL (result->pw_uid, ISCOLON, 0, 10, , 0) 57 INT_FIELD (result->pw_uid, ISCOLON, 0, 10,)
|
D | tst-putpwent.c | 112 .pw_uid = 12, in do_test() 122 .pw_uid = 12, in do_test()
|
D | getpw.c | 54 (unsigned long int) p->pw_uid, (unsigned long int) p->pw_gid, in __getpw()
|
D | putpwent.c | 57 (unsigned long int) p->pw_uid, in putpwent()
|
D | pwd.h | 54 __uid_t pw_uid; /* User ID. */ member
|
/glibc-2.36/nscd/ |
D | pwdcache.c | 45 .pw_uid = -1, 67 .pw_uid = -1, 176 const size_t buf_len = 3 * sizeof (pwd->pw_uid) + key_len + 1; in cache_addpw() 182 n = snprintf (buf, buf_len, "%d%c%n%s", pwd->pw_uid, '\0', in cache_addpw() 228 dataset->resp.pw_uid = pwd->pw_uid; in cache_addpw()
|
D | nscd_getpw_r.c | 144 resultbuf->pw_uid = pw_resp.pw_uid; in nscd_getpw_r()
|
D | nscd_conf.c | 208 stat_uid = pw->pw_uid; in nscd_parse_file()
|
D | nscd-client.h | 96 uid_t pw_uid; member
|
D | cachedumper.c | 190 printf (" uid %d gid %d", pw->pw_uid, pw->pw_gid); in nscd_print_cache()
|
/glibc-2.36/nss/nss_files/ |
D | files-pwd.c | 42 if (result->pw_uid == uid && result->pw_name[0] != '+'
|
/glibc-2.36/grp/ |
D | testgrp.c | 23 printf ("My uid is %d.\n", (int)(my_passwd->pw_uid)); in main()
|
/glibc-2.36/manual/examples/ |
D | db.c | 44 printf ("My uid is %d.\n", (int) (my_passwd->pw_uid)); in main()
|
/glibc-2.36/conform/data/ |
D | pwd.h-data | 9 element {struct passwd} uid_t pw_uid
|
/glibc-2.36/inet/ |
D | rcmd.c | 562 seteuid (pwd->pw_uid); in ruserok2_sa() 563 hostf = iruserfopen (pbuf, pwd->pw_uid); in ruserok2_sa()
|
/glibc-2.36/nptl/ |
D | tst-setuid1.c | 1034 nobody_uid = pwd->pw_uid; in do_test()
|