Lines Matching refs:gid_t

372 long __sys_setregid(gid_t rgid, gid_t egid)  in __sys_setregid()
383 if ((rgid != (gid_t) -1) && !gid_valid(krgid)) in __sys_setregid()
385 if ((egid != (gid_t) -1) && !gid_valid(kegid)) in __sys_setregid()
394 if (rgid != (gid_t) -1) { in __sys_setregid()
402 if (egid != (gid_t) -1) { in __sys_setregid()
412 if (rgid != (gid_t) -1 || in __sys_setregid()
413 (egid != (gid_t) -1 && !gid_eq(kegid, old->gid))) in __sys_setregid()
428 SYSCALL_DEFINE2(setregid, gid_t, rgid, gid_t, egid) in SYSCALL_DEFINE2() argument
438 long __sys_setgid(gid_t gid) in __sys_setgid()
474 SYSCALL_DEFINE1(setgid, gid_t, gid) in SYSCALL_DEFINE1() argument
769 long __sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid) in __sys_setresgid()
782 if ((rgid != (gid_t) -1) && !gid_valid(krgid)) in __sys_setresgid()
784 if ((egid != (gid_t) -1) && !gid_valid(kegid)) in __sys_setresgid()
786 if ((sgid != (gid_t) -1) && !gid_valid(ksgid)) in __sys_setresgid()
792 if ((rgid == (gid_t) -1 || gid_eq(krgid, old->gid)) && in __sys_setresgid()
793 (egid == (gid_t) -1 || (gid_eq(kegid, old->egid) && in __sys_setresgid()
795 (sgid == (gid_t) -1 || gid_eq(ksgid, old->sgid))) in __sys_setresgid()
798 rgid_new = rgid != (gid_t) -1 && !gid_eq(krgid, old->gid) && in __sys_setresgid()
800 egid_new = egid != (gid_t) -1 && !gid_eq(kegid, old->gid) && in __sys_setresgid()
802 sgid_new = sgid != (gid_t) -1 && !gid_eq(ksgid, old->gid) && in __sys_setresgid()
812 if (rgid != (gid_t) -1) in __sys_setresgid()
814 if (egid != (gid_t) -1) in __sys_setresgid()
816 if (sgid != (gid_t) -1) in __sys_setresgid()
831 SYSCALL_DEFINE3(setresgid, gid_t, rgid, gid_t, egid, gid_t, sgid) in SYSCALL_DEFINE3() argument
836 SYSCALL_DEFINE3(getresgid, gid_t __user *, rgidp, gid_t __user *, egidp, gid_t __user *, sgidp) in SYSCALL_DEFINE3()
840 gid_t rgid, egid, sgid; in SYSCALL_DEFINE3()
907 long __sys_setfsgid(gid_t gid) in __sys_setfsgid()
911 gid_t old_fsgid; in __sys_setfsgid()
943 SYSCALL_DEFINE1(setfsgid, gid_t, gid) in SYSCALL_DEFINE1() argument