Home
last modified time | relevance | path

Searched refs:pw_uid (Results 1 – 25 of 28) sorted by relevance

12

/glibc-2.36/nss/
Dbug17079.c35 && 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()
Dnss_test.h49 #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 …]
Dtst-nss-test2.c99 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()
Dtst-reload1.c120 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()
Dtst-nss-test5.c38 { .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()
Dtst-nss-test1.c68 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()
Dtst-reload2.c114 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()
Dtst-nss-getpwent.c46 first_uid = pw->pw_uid; in do_test()
51 last_uid = pw->pw_uid; in do_test()
Dnss_test1.c51 { .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/
Dfgetpwent_r.c41 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,)
Dtst-putpwent.c112 .pw_uid = 12, in do_test()
122 .pw_uid = 12, in do_test()
Dgetpw.c54 (unsigned long int) p->pw_uid, (unsigned long int) p->pw_gid, in __getpw()
Dputpwent.c57 (unsigned long int) p->pw_uid, in putpwent()
Dpwd.h54 __uid_t pw_uid; /* User ID. */ member
/glibc-2.36/nscd/
Dpwdcache.c45 .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()
Dnscd_getpw_r.c144 resultbuf->pw_uid = pw_resp.pw_uid; in nscd_getpw_r()
Dnscd_conf.c208 stat_uid = pw->pw_uid; in nscd_parse_file()
Dnscd-client.h96 uid_t pw_uid; member
Dcachedumper.c190 printf (" uid %d gid %d", pw->pw_uid, pw->pw_gid); in nscd_print_cache()
/glibc-2.36/nss/nss_files/
Dfiles-pwd.c42 if (result->pw_uid == uid && result->pw_name[0] != '+'
/glibc-2.36/grp/
Dtestgrp.c23 printf ("My uid is %d.\n", (int)(my_passwd->pw_uid)); in main()
/glibc-2.36/manual/examples/
Ddb.c44 printf ("My uid is %d.\n", (int) (my_passwd->pw_uid)); in main()
/glibc-2.36/conform/data/
Dpwd.h-data9 element {struct passwd} uid_t pw_uid
/glibc-2.36/inet/
Drcmd.c562 seteuid (pwd->pw_uid); in ruserok2_sa()
563 hostf = iruserfopen (pbuf, pwd->pw_uid); in ruserok2_sa()
/glibc-2.36/nptl/
Dtst-setuid1.c1034 nobody_uid = pwd->pw_uid; in do_test()

12