Home
last modified time | relevance | path

Searched refs:gid (Results 1 – 25 of 82) sorted by relevance

1234

/glibc-2.36/sysdeps/mach/hurd/
Dgetgid.c28 gid_t gid; in __getgid() local
37 gid = -1; in __getgid()
40 gid = _hurd_id.aux.gids[0]; in __getgid()
45 gid = -1; in __getgid()
50 if (gid == -1 && errno == EINTR) in __getgid()
54 return gid; in __getgid()
Dsetgid.c30 __setgid (gid_t gid) in __setgid() argument
51 newgen = &gid; in __setgid()
56 _hurd_id.gen.gids[0] = gid; in __setgid()
73 newaux[0] = newaux[1] = gid; in __setgid()
Dsetegid.c27 setegid (gid_t gid) in setegid() argument
44 _hurd_id.gen.gids[0] = gid; in setegid()
52 _hurd_id.gen.ngids ? _hurd_id.gen.gids : &gid, in setegid()
Dgroup_member.c25 __group_member (gid_t gid) in __group_member() argument
40 if (_hurd_id.gen.gids[i] == gid) in __group_member()
/glibc-2.36/sysdeps/unix/sysv/linux/
Dsetegid.c24 setegid (gid_t gid) in setegid() argument
28 if (gid == (gid_t) ~0) in setegid()
32 result = INLINE_SETXID_SYSCALL (setresgid32, 3, -1, gid, -1); in setegid()
34 result = INLINE_SETXID_SYSCALL (setresgid, 3, -1, gid, -1); in setegid()
Dsetgid.c24 __setgid (gid_t gid) in __setgid() argument
27 return INLINE_SETXID_SYSCALL (setgid32, 1, gid); in __setgid()
29 return INLINE_SETXID_SYSCALL (setgid, 1, gid); in __setgid()
/glibc-2.36/nss/nss_files/
Dfiles-grp.c40 DB_LOOKUP (grgid, '=', 20, ("%lu", (unsigned long int) gid),
42 if (result->gr_gid == gid && result->gr_name[0] != '+'
45 }, gid_t gid)
/glibc-2.36/sysdeps/posix/
Deuidaccess.c93 static gid_t gid; variable
107 # define group_member(gid) 0 argument
133 gid = getgid (); in euidaccess()
138 if (uid == euid && gid == egid) in euidaccess()
/glibc-2.36/sysdeps/unix/
Dgrantpt.c155 gid_t gid = tty_gid == -1 ? __getgid () : tty_gid; in grantpt() local
159 if (st.st_gid != gid) in grantpt()
161 if (__chown (buf, uid, gid) < 0) in grantpt()
181 |((st.st_gid == gid) ? (st.st_mode & S_IWGRP) : 0); in grantpt()
/glibc-2.36/grp/
Dtst_fgetgrent.c61 test_entry (const char *name, gid_t gid, struct group *g) in test_entry() argument
70 if ((g->gr_gid == gid) && (strcmp (g->gr_name, name) == 0)) in test_entry()
75 name, gid); in test_entry()
Dgetgrgid.c24 #define ADD_PARAMS gid_t gid
25 #define ADD_VARIABLES gid
Dgetgrgid_r.c25 #define ADD_PARAMS gid_t gid
26 #define ADD_VARIABLES gid
/glibc-2.36/sunrpc/
Dsvcauth_des.c487 gid_t gid; /* cached gid */ member
500 authdes_getucred (const struct authdes_cred *adc, uid_t * uid, gid_t * gid, in authdes_getucred() argument
557 *gid = cred->gid = i_gid; in authdes_getucred()
577 *gid = cred->gid; in authdes_getucred()
Dauth_unix.c95 authunix_create (char *machname, uid_t uid, gid_t gid, int len, in authunix_create() argument
130 aup.aup_gid = gid; in authunix_create()
169 gid_t gid = __getegid (); in libc_hidden_nolink_sunrpc() local
211 AUTH *result = authunix_create (machname, uid, gid, MIN (NGRPS, len), gids); in libc_hidden_nolink_sunrpc()
/glibc-2.36/nss/nss_compat/
Dcompat-grp.c37 static enum nss_status (*getgrgid_r_impl) (gid_t gid, struct group * grp,
501 internal_getgrgid_r (gid_t gid, struct group *result, ent_t *ent, in internal_getgrgid_r() argument
554 if (result->gr_gid == gid) in internal_getgrgid_r()
581 if (status == NSS_STATUS_SUCCESS && result->gr_gid == gid) in internal_getgrgid_r()
592 enum nss_status status = getgrgid_r_impl (gid, result, in internal_getgrgid_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.c42 static enum nss_status (*getgrgid_r_impl) (gid_t gid, struct group * grp,
170 gid_t gid) in add_group() argument
197 groups[*start] = gid; in add_group()
/glibc-2.36/hurd/
Dhurdauth.c116 MAKE (gen, gid); in _S_msg_add_auth()
118 MAKE (aux, gid); in _S_msg_add_auth()
205 const gid_t gid = gids[j]; in _S_msg_del_auth() local
207 if (newu[i] == gid) in _S_msg_del_auth()
/glibc-2.36/login/programs/
Dpt_chown.c114 gid_t gid; in do_pt_chown() local
128 gid = p ? p->gr_gid : getgid (); in do_pt_chown()
132 if (chown (pty, getuid (), gid) < 0) in do_pt_chown()
/glibc-2.36/nscd/
Dgetgrgid_r.c24 #define ADD_PARAMS gid_t gid
25 #define ADD_VARIABLES gid
Dgrpcache.c486 gid_t gid = strtoul ((char *) key, &ep, 10); in addgrbygid() local
497 union keytype u = { .g = gid }; in addgrbygid()
508 gid_t gid = strtoul (db->data + he->key, &ep, 10); in readdgrbygid() local
518 union keytype u = { .g = gid }; in readdgrbygid()
/glibc-2.36/posix/
Dgroup_member.c29 __group_member (gid_t gid) in __group_member() argument
44 if (groups[n] == gid) in __group_member()
/glibc-2.36/conform/data/sys/
Dipc.h-data4 // Bug 23082: uid/gid/cuid/cgid/mode have type unsigned short instead of uid_t and mode_t.
6 xfail[i386-gnu]-element {struct ipc_perm} gid_t gid
/glibc-2.36/support/
Dsupport_capture_subprocess.c112 copy_and_spawn_sgid (char *child_id, gid_t gid) in copy_and_spawn_sgid() argument
156 TEST_VERIFY (fchown (outfd, getuid (), gid) == 0); in copy_and_spawn_sgid()
/glibc-2.36/hesiod/nss_hesiod/
Dhesiod-grp.c104 _nss_hesiod_getgrgid_r (gid_t gid, struct group *grp, in _nss_hesiod_getgrgid_r() argument
110 snprintf (gidstr, sizeof gidstr, "%d", gid); in _nss_hesiod_getgrgid_r()
/glibc-2.36/misc/
Dsetegid.c23 setegid (__gid_t gid) in setegid() argument

1234