Lines Matching refs:egid
210 * Get effective group ID. The "egid" is groups[0], and could be obtained
499 syscallarg(gid_t) egid;
502 return do_setresgid(l, -1, SCARG(uap, egid), -1, ID_E_EQ_R | ID_E_EQ_S);
510 syscallarg(gid_t) egid;
513 gid_t rgid, egid, svgid;
516 egid = SCARG(uap, egid);
520 if (egid == -1)
521 egid = kauth_cred_getegid(cred);
523 /* Saved gid is set to the new egid if the rgid changed */
524 svgid = rgid == kauth_cred_getgid(cred) ? -1 : egid;
526 return do_setresgid(l, rgid, egid, svgid,