Home
last modified time | relevance | path

Searched refs:gr_name (Results 1 – 22 of 22) sorted by relevance

/glibc-2.36/nss/nss_compat/
Dcompat-grp.c211 while (in_blacklist (result->gr_name, strlen (result->gr_name), ent)); in getgrent_next_nss()
229 if (in_blacklist (result->gr_name, strlen (result->gr_name), ent)) in getgrnam_plusgroup()
287 if (result->gr_name[0] != '+' && result->gr_name[0] != '-') in getgrent_next_file()
292 if (result->gr_name[0] == '-' && result->gr_name[1] != '\0' in getgrent_next_file()
293 && result->gr_name[1] != '@') in getgrent_next_file()
295 blacklist_store_name (&result->gr_name[1], ent); in getgrent_next_file()
300 if (result->gr_name[0] == '+' && result->gr_name[1] != '\0' in getgrent_next_file()
301 && result->gr_name[1] != '@') in getgrent_next_file()
303 size_t len = strlen (result->gr_name); in getgrent_next_file()
309 memcpy (buf, &result->gr_name[1], len); in getgrent_next_file()
[all …]
Dcompat-initgroups.c306 if (!in_blacklist (grpbuf.gr_name, in getgrent_next_nss()
307 strlen (grpbuf.gr_name), ent) in getgrent_next_nss()
348 while (in_blacklist (grpbuf.gr_name, strlen (grpbuf.gr_name), ent)); in getgrent_next_nss()
414 if (grpbuf.gr_name[0] != '+' && grpbuf.gr_name[0] != '-') in internal_getgrent_r()
419 if (grpbuf.gr_name[0] == '-' && grpbuf.gr_name[1] != '\0' in internal_getgrent_r()
420 && grpbuf.gr_name[1] != '@') in internal_getgrent_r()
422 blacklist_store_name (&grpbuf.gr_name[1], ent); in internal_getgrent_r()
427 if (grpbuf.gr_name[0] == '+' && grpbuf.gr_name[1] != '\0' in internal_getgrent_r()
428 && grpbuf.gr_name[1] != '@') in internal_getgrent_r()
430 if (in_blacklist (&grpbuf.gr_name[1], in internal_getgrent_r()
[all …]
/glibc-2.36/nss/
Dnss_test.h50 #define GRP_LAST() { .gr_name = NULL, .gr_gid = 0 }
55 #define GRP_ISLAST(g) ((g)->gr_name == NULL && (g)->gr_gid == 0)
76 { .gr_name = (char *) "name" #u, .gr_passwd = (char *) "*", .gr_gid = u, \
80 { .gr_name = (char *) n, .gr_passwd = (char *) "*", .gr_gid = u, \
192 printf (" group %u.%s (%s) :", g->gr_gid, g->gr_name, g->gr_passwd); in print_group()
211 e->gr_gid, e->gr_name, in compare_groups()
217 if (g->gr_name == NULL) in compare_groups()
220 e->gr_gid, e->gr_name); in compare_groups()
224 else if (e->gr_name == NULL) in compare_groups()
227 e->gr_gid, g->gr_name); in compare_groups()
[all …]
Dtst-nss-test3.c69 …{ .gr_name = (char *)"name5", .gr_passwd = (char *)"wilma", .gr_gid = 5, .gr_mem = NULL }, /* un…
70 …{ .gr_name = (char *)"name5", .gr_passwd = NULL, .gr_gid = 5, .gr_mem = NULL }, /* missing passwd…
71 …{ .gr_name = (char *)"name5", .gr_passwd = (char *)"wilma", .gr_gid = 5, .gr_mem = NULL }, /* wro…
86 { .gr_name = (char *)"name5", .gr_passwd = NULL, .gr_gid = 5, .gr_mem = NULL },
87 { .gr_name = (char *)"name5", .gr_passwd = (char *)"fred", .gr_gid = 5, .gr_mem = NULL },
88 { .gr_name = (char *)"name5", .gr_passwd = (char *)"fred", .gr_gid = 5, .gr_mem = NULL },
130 printf ("FAIL: [?] group entry %u.%s unexpected\n", g->gr_gid, g->gr_name); in do_test()
133 if (group_table[i].gr_name || group_table[i].gr_gid) in do_test()
136 group_table[i].gr_gid, group_table[i].gr_name); in do_test()
Dtst-nss-compat1.c75 if (strcmp (g->gr_name, "wilma") != 0) in do_test()
Dtst-nss-test4.c116 group_table[i].gr_gid, group_table[i].gr_name); in do_test()
Dnss_test1.c272 result->gr_name = alloc_buffer_maybe_copy_string (&buf, local->gr_name); in copy_group()
/glibc-2.36/nscd/
Dnscd_getgr_r.c99 const char *gr_name = NULL; in nscd_getgr_r() local
113 gr_name = ((const char *) len in nscd_getgr_r()
131 if (gr_name == NULL) in nscd_getgr_r()
180 resultbuf->gr_name = p; in nscd_getgr_r()
189 if (gr_name == NULL) in nscd_getgr_r()
195 if (__builtin_expect (__readall (sock, resultbuf->gr_name, n) in nscd_getgr_r()
209 vec[1].iov_base = resultbuf->gr_name; in nscd_getgr_r()
222 memcpy (resultbuf->gr_name, gr_name, in nscd_getgr_r()
237 if (__glibc_unlikely (gr_name + gr_name_len + total_len > recend)) in nscd_getgr_r()
241 if (gr_name != NULL && mapped->head->gc_cycle != gc_cycle) in nscd_getgr_r()
[all …]
Dgrpcache.c162 size_t gr_name_len = strlen (grp->gr_name) + 1; in cache_addgr()
167 char *gr_name; in cache_addgr() local
252 gr_name = cp; in cache_addgr()
253 cp = mempcpy (cp, grp->gr_name, gr_name_len); in cache_addgr()
298 gr_name = (char *) newp + (gr_name - (char *) dataset); in cache_addgr()
352 else if (strcmp (key_copy, gr_name) != 0) in cache_addgr()
363 && __builtin_expect (cache_add (GETGRBYNAME, gr_name, in cache_addgr()
/glibc-2.36/grp/
Dtst-putgrent.c57 e.gr_name, e.gr_passwd); in check()
103 .gr_name = (char *) "root", in do_test()
107 .gr_name = (char *) "root", in do_test()
114 .gr_name = (char *) "root", in do_test()
148 .gr_name = (char *) *bad, in do_test()
151 .gr_name = (char *) "root", in do_test()
156 .gr_name = (char *) "root", in do_test()
Dputgrent.c37 || gr->gr_name == NULL || !__nss_valid_field (gr->gr_name) in putgrent()
47 if (gr->gr_name[0] == '+' || gr->gr_name[0] == '-') in putgrent()
49 gr->gr_name, _S (gr->gr_passwd)); in putgrent()
52 gr->gr_name, _S (gr->gr_passwd), in putgrent()
Dfgetgrent_r.c35 STRING_FIELD (result->gr_name, ISCOLON, 0);
37 && (result->gr_name[0] == '+' || result->gr_name[0] == '-'))
45 if (result->gr_name[0] == '+' || result->gr_name[0] == '-')
Dgrp-merge.c52 len = strlen (srcgrp.gr_name) + 1; in __copy_grp()
54 memcpy (&destbuf[c], srcgrp.gr_name, len); in __copy_grp()
55 destgrp->gr_name = &destbuf[c]; in __copy_grp()
133 || strcmp (mergegrp->gr_name, savedgrp->gr_name)) in libc_hidden_def()
Dtst_fgetgrent.c70 if ((g->gr_gid == gid) && (strcmp (g->gr_name, name) == 0)) in test_entry()
71 printf ("Ok: %s: %d\n", g->gr_name, g->gr_gid); in test_entry()
74 printf ("Error: %s: %d should be: %s: %d\n", g->gr_name, g->gr_gid, in test_entry()
Dtestgrp.c33 my_group->gr_name, (int)(my_passwd->pw_gid)); in main()
Dgrp.h44 char *gr_name; /* Group name. */ member
/glibc-2.36/nss/nss_files/
Dfiles-grp.c36 && ! strcmp (name, result->gr_name))
42 if (result->gr_gid == gid && result->gr_name[0] != '+'
43 && result->gr_name[0] != '-')
/glibc-2.36/manual/examples/
Ddb.c59 my_group->gr_name, (int) (my_passwd->pw_gid)); in main()
/glibc-2.36/conform/data/
Dgrp.h-data7 element {struct group} {char*} gr_name
/glibc-2.36/manual/
Dusers.texi2285 @item char *gr_name
/glibc-2.36/ChangeLog.old/
DChangeLog.21286 (gr_name): Modified.
DChangeLog.1110592 * nscd/grpcache.c: Fix gr_name pointer [PR/1702].