Home
last modified time | relevance | path

Searched refs:rgid (Results 1 - 25 of 27) sorted by relevance

12

/third_party/musl/libc-test/src/functionalext/supplement/unistd/
H A Dsetresgid.c43 gid_t rgid = 0; in setresgid_0100() local
46 result = getresgid(&rgid, &egid, &sgid); in setresgid_0100()
51 if ((rgid != srgid) || (egid != segid) || (sgid != ssgid)) { in setresgid_0100()
52 t_error("%s failed: rgid = %d\n", __func__, rgid); in setresgid_0100()
86 gid_t rgid = 0; in setresgid_0200() local
89 result = getresgid(&rgid, &egid, &sgid); in setresgid_0200()
94 if ((rgid != srgid) || (egid != segid) || (sgid != ssgid)) { in setresgid_0200()
95 t_error("%s failed: rgid = %d\n", __func__, rgid); in setresgid_0200()
[all...]
/third_party/ltp/testcases/kernel/syscalls/utils/
H A Dcompat_16.h37 int setresgid(gid_t rgid, gid_t egid, gid_t sgid);
38 int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid);
129 int SETREGID(void (cleanup)(void), GID_T rgid, GID_T egid) in SETREGID() argument
131 LTP_CREATE_SYSCALL(setregid, cleanup, rgid, egid); in SETREGID()
144 int SETRESGID(void (cleanup)(void), GID_T rgid, GID_T egid, GID_T sgid) in SETRESGID() argument
146 LTP_CREATE_SYSCALL(setresgid, cleanup, rgid, egid, sgid); in SETRESGID()
149 int GETRESGID(void (cleanup)(void), GID_T *rgid, GID_T *egid, GID_T *sgid) in GETRESGID() argument
151 LTP_CREATE_SYSCALL(getresgid, cleanup, rgid, egid, sgid); in GETRESGID()
H A Dcompat_tst_16.h33 int setresgid(gid_t rgid, gid_t egid, gid_t sgid);
126 int SETREGID(GID_T rgid, GID_T egid) in SETREGID() argument
128 TST_CREATE_SYSCALL(setregid, rgid, egid); in SETREGID()
136 int SETRESGID(GID_T rgid, GID_T egid, GID_T sgid) in SETRESGID() argument
138 TST_CREATE_SYSCALL(setresgid, rgid, egid, sgid); in SETRESGID()
/third_party/ltp/lib/
H A Dtst_uid.c100 gid_t rgid, egid, sgid; in tst_check_resgid_() local
102 SAFE_GETRESGID(&rgid, &egid, &sgid); in tst_check_resgid_()
104 if (rgid == exp_rgid && egid == exp_egid && sgid == exp_sgid) in tst_check_resgid_()
114 tst_res_(file, lineno, TINFO, "Got: rgid = %d, egid = %d, sgid = %d", in tst_check_resgid_()
115 (int)rgid, (int)egid, (int)sgid); in tst_check_resgid_()
117 "Expected: rgid = %d, egid = %d, sgid = %d", in tst_check_resgid_()
H A Dtst_safe_macros.c150 gid_t rgid, gid_t egid) in safe_setregid()
154 rval = setregid(rgid, egid); in safe_setregid()
158 "setregid(%li, %li) failed", (long)rgid, (long)egid); in safe_setregid()
162 (long)rgid, (long)egid, rval); in safe_setregid()
188 gid_t rgid, gid_t egid, gid_t sgid) in safe_setresgid()
192 ret = setresgid(rgid, egid, sgid); in safe_setresgid()
196 "setregid(%li, %li, %li) failed", (long)rgid, in safe_setresgid()
201 (long)rgid, (long)egid, (long)sgid, ret); in safe_setresgid()
149 safe_setregid(const char *file, const int lineno, gid_t rgid, gid_t egid) safe_setregid() argument
187 safe_setresgid(const char *file, const int lineno, gid_t rgid, gid_t egid, gid_t sgid) safe_setresgid() argument
H A Dsafe_macros.c405 gid_t *rgid, gid_t *egid, gid_t *sgid) in safe_getresgid()
409 rval = getresgid(rgid, egid, sgid); in safe_getresgid()
413 "getresgid(%p, %p, %p) failed", rgid, egid, sgid); in safe_getresgid()
416 "Invalid getresgid(%p, %p, %p) return value %d", rgid, in safe_getresgid()
404 safe_getresgid(const char *file, const int lineno, void (*cleanup_fn)(void), gid_t *rgid, gid_t *egid, gid_t *sgid) safe_getresgid() argument
/third_party/musl/src/unistd/
H A Dsetresgid.c6 int setresgid(gid_t rgid, gid_t egid, gid_t sgid) in setresgid() argument
8 return __setxid(SYS_setresgid, rgid, egid, sgid); in setresgid()
H A Dsetregid.c5 int setregid(gid_t rgid, gid_t egid) in setregid() argument
7 return __setxid(SYS_setregid, rgid, egid, 0); in setregid()
/third_party/musl/src/misc/
H A Dgetresgid.c5 int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid) in getresgid() argument
7 return syscall(SYS_getresgid, rgid, egid, sgid); in getresgid()
/third_party/ltp/include/
H A Dtst_uid.h37 #define tst_check_resgid(cstr, rgid, egid, sgid) \
38 tst_check_resgid_(__FILE__, __LINE__, (cstr), (rgid), (egid), (sgid))
H A Dtst_safe_macros.h117 gid_t rgid, gid_t egid);
119 #define SAFE_SETREGID(rgid, egid) \
120 safe_setregid(__FILE__, __LINE__, (rgid), (egid))
129 gid_t rgid, gid_t egid, gid_t sgid);
130 #define SAFE_SETRESGID(rgid, egid, sgid) \
131 safe_setresgid(__FILE__, __LINE__, (rgid), (egid), (sgid))
141 #define SAFE_GETRESGID(rgid, egid, sgid) \
142 safe_getresgid(__FILE__, __LINE__, NULL, (rgid), (egid), (sgid))
H A Dsafe_macros_fn.h104 gid_t *rgid, gid_t *egid, gid_t *sgid);
/third_party/ltp/testcases/kernel/syscalls/setresgid/
H A Dsetresgid03.c23 gid_t *rgid; member
66 TST_EXP_FAIL(SETRESGID(*tc->rgid, *tc->egid, *tc->sgid), EPERM, "%s", in run()
H A Dsetresgid02.c27 gid_t *rgid; member
74 TST_EXP_PASS_SILENT(SETRESGID(*tc->rgid, *tc->egid, *tc->sgid), "%s", in run()
H A Dsetresgid01.c84 uid_t *rgid; /* real GID */ member
132 TEST(SETRESGID(cleanup, *tdat[testno].rgid, *tdat[testno].egid, in main()
/third_party/ltp/include/old/
H A Dsafe_macros.h88 #define SAFE_GETRESGID(cleanup_fn, rgid, egid, sgid) \
89 safe_getresgid(__FILE__, __LINE__, cleanup_fn, (rgid), (egid), (sgid))
/third_party/ntfs-3g/libfuse-lite/
H A Dfusermount.c143 gid_t rgid, egid, sgid; in restore_privs() local
145 if (getresgid(&rgid, &egid, &sgid) < 0) { in restore_privs()
/third_party/ltp/testcases/kernel/connectors/pec/
H A Dpec_listener.c205 printf("gid pid: %d egid: %d rgid: %d\n", in process_event()
207 pe->event_data.id.e.egid, pe->event_data.id.r.rgid); in process_event()
/third_party/rust/crates/nix/src/
H A Dunistd.rs2799 /// * `rgid`: real group id
2806 pub fn setresgid(rgid: Gid, egid: Gid, sgid: Gid) -> Result<()> { in setresgid()
2807 let res = unsafe { libc::setresgid(rgid.into(), egid.into(), sgid.into()) }; in setresgid()
2875 let mut rgid = libc::gid_t::max_value(); in getresgid() variables
2878 let res = unsafe { libc::getresgid(&mut rgid, &mut egid, &mut sgid) }; in getresgid()
2880 Errno::result(res).map(|_| ResGid { real: Gid(rgid), effective: Gid(egid), saved: Gid(sgid) } ) in getresgid()
/third_party/python/Modules/clinic/
H A Dposixmodule.c.h3859 "setregid($module, rgid, egid, /)\n"
3868 os_setregid_impl(PyObject *module, gid_t rgid, gid_t egid);
3874 gid_t rgid; in os_setregid() local
3880 if (!_Py_Gid_Converter(args[0], &rgid)) { in os_setregid()
3886 return_value = os_setregid_impl(module, rgid, egid); in os_setregid()
7444 "setresgid($module, rgid, egid, sgid, /)\n"
7453 os_setresgid_impl(PyObject *module, gid_t rgid, gid_t egid, gid_t sgid);
7459 gid_t rgid; in os_setresgid() local
7466 if (!_Py_Gid_Converter(args[0], &rgid)) { in os_setresgid()
7475 return_value = os_setresgid_impl(module, rgid, egi in os_setresgid()
[all...]
/third_party/rust/crates/libc/src/unix/bsd/freebsdlike/
H A Dmod.rs1514 pub fn getresgid(rgid: *mut ::gid_t, egid: *mut ::gid_t, sgid: *mut ::gid_t) -> ::c_int; in getresgid()
1659 pub fn setresgid(rgid: ::gid_t, egid: ::gid_t, sgid: ::gid_t) -> ::c_int; in setresgid()
/third_party/rust/crates/libc/src/unix/bsd/netbsdlike/openbsd/
H A Dmod.rs1777 pub fn getresgid(rgid: *mut ::gid_t, egid: *mut ::gid_t, sgid: *mut ::gid_t) -> ::c_int; in getresgid()
1826 pub fn setresgid(rgid: ::gid_t, egid: ::gid_t, sgid: ::gid_t) -> ::c_int; in setresgid()
/third_party/rust/crates/libc/src/unix/linux_like/
H A Dmod.rs1765 pub fn getresgid(rgid: *mut ::gid_t, egid: *mut ::gid_t, sgid: *mut ::gid_t) -> ::c_int; in getresgid()
1774 pub fn setresgid(rgid: ::gid_t, egid: ::gid_t, sgid: ::gid_t) -> ::c_int; in setresgid()
/third_party/python/Modules/
H A Dposixmodule.c8261 rgid: gid_t
8269 os_setregid_impl(PyObject *module, gid_t rgid, gid_t egid) in os_setregid_impl() argument
8272 if (setregid(rgid, egid) < 0) in os_setregid_impl()
12833 rgid: gid_t
12842 os_setresgid_impl(PyObject *module, gid_t rgid, gid_t egid, gid_t sgid) in os_setresgid_impl() argument
12845 if (setresgid(rgid, egid, sgid) < 0) in os_setresgid_impl()
12884 gid_t rgid, egid, sgid; in os_getresgid_impl() local
12885 if (getresgid(&rgid, &egid, &sgid) < 0) in os_getresgid_impl()
12887 return Py_BuildValue("(NNN)", _PyLong_FromGid(rgid), in os_getresgid_impl()
/third_party/rust/crates/libc/src/unix/nto/
H A Dneutrino.rs39 pub rgid: ::gid_t,

Completed in 53 milliseconds

12