Home
last modified time | relevance | path

Searched refs:grp (Results 1 – 25 of 45) sorted by relevance

12

/glibc-2.36/nscd/
Dgrpcache.c71 const void *key, struct group *grp, uid_t owner, in cache_addgr() argument
90 if (grp == NULL) in cache_addgr()
162 size_t gr_name_len = strlen (grp->gr_name) + 1; in cache_addgr()
163 size_t gr_passwd_len = strlen (grp->gr_passwd) + 1; in cache_addgr()
170 const size_t buf_len = 3 * sizeof (grp->gr_gid) + key_len + 1; in cache_addgr()
178 n = snprintf (buf, buf_len, "%d%c%n%s", grp->gr_gid, '\0', in cache_addgr()
182 while (grp->gr_mem[gr_mem_cnt]) in cache_addgr()
185 for (gr_mem_cnt = 0; grp->gr_mem[gr_mem_cnt]; ++gr_mem_cnt) in cache_addgr()
187 gr_mem_len[gr_mem_cnt] = strlen (grp->gr_mem[gr_mem_cnt]) + 1; in cache_addgr()
245 dataset->resp.gr_gid = grp->gr_gid; in cache_addgr()
[all …]
/glibc-2.36/grp/
Dtst_fgetgrent.sh24 testout=${common_objpfx}/grp/tst_fgetgrent.out
29 ${common_objpfx}grp/tst_fgetgrent 0 > ${testout} || result=1
32 ${common_objpfx}grp/tst_fgetgrent 1 >> ${testout} || result=1
35 ${common_objpfx}grp/tst_fgetgrent 2 >> ${testout} || result=1
38 ${common_objpfx}grp/tst_fgetgrent 3 >> ${testout} || result=1
DMakefile21 subdir := grp
25 headers := grp.h
30 grp-merge
/glibc-2.36/gmon/
Dgmon.c310 struct __bb *grp; in write_bb_counts() local
325 bbbody[i].iov_len = sizeof (grp->addresses[0]); in write_bb_counts()
326 bbbody[i + 1].iov_len = sizeof (grp->counts[0]); in write_bb_counts()
332 for (grp = __bb_head; grp; grp = grp->next) in write_bb_counts()
334 ncounts = grp->ncounts; in write_bb_counts()
344 bbbody[nfilled++].iov_base = (char *) &grp->addresses[i]; in write_bb_counts()
345 bbbody[nfilled++].iov_base = &grp->counts[i]; in write_bb_counts()
/glibc-2.36/nss/nss_files/
Dfiles-initgroups.c67 struct group grp; in _nss_files_initgroups_dyn() local
68 int res = _nss_files_parse_grent (line, &grp, in _nss_files_initgroups_dyn()
83 if (res > 0 && grp.gr_gid != group) in _nss_files_initgroups_dyn()
84 for (char **m = grp.gr_mem; *m != NULL; ++m) in _nss_files_initgroups_dyn()
113 groups[*start] = grp.gr_gid; in _nss_files_initgroups_dyn()
/glibc-2.36/hesiod/nss_hesiod/
Dhesiod-grp.c49 lookup (const char *name, const char *type, struct group *grp, in lookup() argument
86 parse_res = _nss_files_parse_grent (buffer, grp, data, buflen, errnop); in lookup()
97 _nss_hesiod_getgrnam_r (const char *name, struct group *grp, in _nss_hesiod_getgrnam_r() argument
100 return lookup (name, "group", grp, buffer, buflen, errnop); in _nss_hesiod_getgrnam_r()
104 _nss_hesiod_getgrgid_r (gid_t gid, struct group *grp, in _nss_hesiod_getgrgid_r() argument
112 return lookup (gidstr, "gid", grp, buffer, buflen, errnop); in _nss_hesiod_getgrgid_r()
/glibc-2.36/nss/nss_compat/
Dcompat-grp.c35 struct group * grp, char *buffer,
37 static enum nss_status (*getgrgid_r_impl) (gid_t gid, struct group * grp,
40 static enum nss_status (*getgrent_r_impl) (struct group * grp, char *buffer,
342 _nss_compat_getgrent_r (struct group *grp, char *buffer, size_t buflen, in _nss_compat_getgrent_r() argument
359 result = getgrent_next_file (grp, &ext_ent, buffer, buflen, errnop); in _nss_compat_getgrent_r()
361 result = getgrent_next_nss (grp, &ext_ent, buffer, buflen, errnop); in _nss_compat_getgrent_r()
473 _nss_compat_getgrnam_r (const char *name, struct group *grp, in _nss_compat_getgrnam_r() argument
492 result = internal_getgrnam_r (name, grp, &ent, buffer, buflen, errnop); in _nss_compat_getgrnam_r()
605 _nss_compat_getgrgid_r (gid_t gid, struct group *grp, in _nss_compat_getgrgid_r() argument
621 result = internal_getgrgid_r (gid, grp, &ent, buffer, buflen, errnop); in _nss_compat_getgrgid_r()
Dcompat-initgroups.c40 struct group * grp, char *buffer,
42 static enum nss_status (*getgrgid_r_impl) (gid_t gid, struct group * grp,
46 static enum nss_status (*getgrent_r_impl) (struct group * grp, char *buffer,
207 struct group *grp) in check_and_add_group() argument
212 if (grp->gr_gid == group) in check_and_add_group()
215 for (member = grp->gr_mem; *member != NULL; ++member) in check_and_add_group()
218 add_group (start, size, groupsp, limit, grp->gr_gid); in check_and_add_group()
/glibc-2.36/nss/
Dgetent.c186 print_group (struct group *grp) in print_group() argument
188 if (putgrent (grp, stdout) != 0) in print_group()
197 struct group *grp; in group_keys() local
202 while ((grp = getgrent ()) != NULL) in group_keys()
203 print_group (grp); in group_keys()
216 grp = getgrgid (arg_gid); in group_keys()
218 grp = getgrnam (key[i]); in group_keys()
220 if (grp == NULL) in group_keys()
223 print_group (grp); in group_keys()
DMakefile40 databases = proto service hosts network grp pwd ethers \
136 libnss_compat-routines := $(addprefix compat-,grp pwd spwd initgroups) \
Dnss_module.c374 define_traced_file (grp, _PATH_NSSWITCH_CONF);
/glibc-2.36/include/
Dgrp.h37 (gid_t gid, struct group *grp, char *buffer, \
40 (const char *name, struct group *grp, \
/glibc-2.36/nss/nss_db/
Ddb-init.c31 define_traced_file (grp, GRP_FILENAME);
/glibc-2.36/hesiod/
DMakefile31 libnss_hesiod-routines := hesiod hesiod-grp hesiod-proto \
/glibc-2.36/scripts/
Dupdate-copyrights68 grp/initgroups.c | misc/bits/stab.def | posix/regex.h \
/glibc-2.36/manual/
Dusers.texi472 should include the header file @file{grp.h}.
473 @pindex grp.h
476 @standards{BSD, grp.h}
495 @standards{BSD, grp.h}
541 include the header file @file{grp.h}.
542 @pindex grp.h
545 @standards{BSD, grp.h}
2276 database are declared in the header file @file{grp.h}.
2277 @pindex grp.h
2280 @standards{POSIX.1, grp.h}
[all …]
/glibc-2.36/conform/
DMakefile41 fcntl.h fnmatch.h glob.h grp.h mqueue.h \
48 fcntl.h fnmatch.h ftw.h glob.h grp.h iconv.h \
/glibc-2.36/ChangeLog.old/
DChangeLog.6133 * grp/grp.h: Declare *_r functions also when __USE_POSIX.
529 * grp/Makefile: Likewise.
1569 * nis/nss_compat/compat-grp.c: Include the declaration of the file
1574 * nis/nss_nis/nis-grp.c: Likewise.
1581 * nis/nss_compat/compat-grp.c (getgrent_next_nis,
1590 * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r,
1726 * nss/grp-lookup.c: Provide default value as
1999 * nis/nss_nis/nis-grp.c: Likewise.
2079 * nis/nss_compat/compat-grp.c: New file.
2084 * nis/nss_nis/nis-grp.c: New file.
[all …]
DChangeLog.1169 * grp/testgrp.c: Don't bomb if uid not in passwd file.
658 * assert/assert.h, ctype/ctype.h, dirent/dirent.h, grp/grp.h,
760 * grp/grp.h (setgrent, endgrent, getgrent): Also do #ifdef __USE_BSD.
832 locale/locale.h, grp/grp.h, posix/glob.h, posix/getopt.h,
1449 * grp/testgrp.c: Print members correctly.
1685 * grp/Makefile (tests): Add testgrp (formerly bug1).
1777 * pwd/pwdread.c, grp/grpread.c: Use __getline. Ignore lines
2421 * grp/initgroups.c: Removed redundant test.
DChangeLog.872 * grp/grp.h: Likewise.
117 * include/grp.h: Likewise.
264 * grp/grp.h, pwd/pwd.h: Don't declare __grpopen, __grpread,
281 * grp/putgrent.c: New file.
282 * grp/Makefile (routines): Add putgrent.
283 * grp/Versions [GLIBC_2.1]: Add putgrent.
284 * grp/grp.h: Add putgrent prototype.
1117 * grp/initgroups.c: Likewise.
1249 * grp/fgetgrent_r.c: Use explicit locking of the stream.
1472 * grp/grp.h: Define gid_t also for __USE_XOPEN.
[all …]
DChangeLog.7433 * nis/nss_compat/compat-grp.c: Rewritten to make it faster.
573 * grp/Makefile (headers): Likewise.
1618 * grp/grp.h: Likewise.
2454 * hesiod/nss_hesiod/hesiod-grp.c: New file.
2754 * nis/nss_nisplus/nisplus-grp.c (_nss_create_tablename): Likewise.
4701 * nis/nss_compat/compat-grp.c: Don't include <rpcsvc/nislib.h>.
4706 * nis/nss_nisplus/nisplus-grp.c: Likewise.
4785 * nis/nss_nisplus/nisplus-grp.c: Likewise.
4925 * nis/nss_compat/compat-grp.c (internal_setgrent): Set FD_CLOEXEC
5245 * nis/nss_compat/compat-grp.c: Fix "buffer to small" problems
[all …]
DChangeLog.10135 * grp/grp.h (getgrent_r): Declare only if __USE_GNU.
3085 * nis/nss_compat/compat-grp.c: Make sure errno is always set correct.
3090 * nis/nss_nis/nis-grp.c: Likewise.
3657 * include/grp.h: Likewise.
4849 * include/grp.h: Likewise.
5086 * grp/grp.h: Likewise.
5623 * nis/nss_compat/compat-grp.c (getgrgid_plusgroup): Correct
6237 * conform/data/grp.h-data: New file.
8854 * grp/Versions (getgrent_r, getgrgid_r, getgrnam_r): Added to
8900 * hesiod/hesiod-grp.c: Add initgroups support.
[all …]
DChangeLog.9362 * grp/putgrent.c (putgrent): Don't insert extra colon.
1887 * grp/grp.h: Likewise.
2003 * include/grp.h: Add prototypes for internal functions
3523 * grp/grp.h (getgrent_r, getgrgid_r, getgrnam_r): Add "__" to
4011 * grp/Makefile: Don't search for linuxthreads in add-ons, use
5140 * grp/initgroups.c: Include stdlib.h.
5697 * include/grp.h: Likewise.
6467 * nis/nss_compat/compat-grp.c: Set errno to ENOENT if we have no
6474 * nis/nss_nis/nis-grp.c: Likewise.
/glibc-2.36/posix/
Dannexc.c583 H(grp),
Dtst-regex.input72 * grp/grp.h: Likewise.
117 * include/grp.h: Likewise.
264 * grp/grp.h, pwd/pwd.h: Don't declare __grpopen, __grpread,
281 * grp/putgrent.c: New file.
282 * grp/Makefile (routines): Add putgrent.
283 * grp/Versions [GLIBC_2.1]: Add putgrent.
284 * grp/grp.h: Add putgrent prototype.
1117 * grp/initgroups.c: Likewise.
1249 * grp/fgetgrent_r.c: Use explicit locking of the stream.
1472 * grp/grp.h: Define gid_t also for __USE_XOPEN.
[all …]

12