/third_party/rust/crates/rustix/tests/process/ |
H A D | id.rs | 14 assert_eq!(process::getgid(), process::getgid()); in test_getgid() 16 assert_eq!(process::getgid().as_raw(), libc::getgid()); in test_getgid() 17 assert_eq!(process::getgid().is_root(), libc::getgid() == 0); in test_getgid()
|
/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
H A D | setregid.c | 27 gid_t cgid = getgid(); in setregid_0100() 37 gid_t gid = getgid(); in setregid_0100() 57 gid_t cgid = getgid(); in setregid_0200() 67 gid_t gid = getgid(); in setregid_0200()
|
H A D | getgid.c | 28 gid_t gid = getgid(); in getgid_0100()
|
H A D | setpgid.c | 33 if (getgid() != result) { in setpgid_0100()
|
H A D | setgid.c | 32 if (getgid() != gid) { in setgid_0100()
|
/test/xts/hats/kernel/syscalls/user/ |
H A D | UserApiTest.cpp | 68 gid_t gid = getgid(); in HWTEST_F() 314 gid_t gid = getgid(); in HWTEST_F() 321 gid_t newGid = getgid(); in HWTEST_F() 399 gid_t realGid = getgid(); in HWTEST_F() 409 gid_t newRealGid = getgid(); in HWTEST_F() 427 gid_t realGid = getgid(); in HWTEST_F() 440 gid_t newRealGid = getgid(); in HWTEST_F()
|
/third_party/ltp/testcases/kernel/syscalls/ipc/semctl/ |
H A D | semctl07.c | 54 if (arg.buf->sem_perm.gid != getgid()) { in verify_semctl() 56 arg.buf->sem_perm.gid, getgid()); in verify_semctl() 68 if (arg.buf->sem_perm.cgid != getgid()) { in verify_semctl() 70 arg.buf->sem_perm.cgid, getgid()); in verify_semctl()
|
/third_party/musl/libc-test/src/functionalext/supplement/stat/ |
H A D | fstatat.c | 43 gid_t gid = getgid(); in fstatat_0100() 70 gid_t gid = getgid(); in fstatat_0200() 99 gid_t gid = getgid(); in fstatat_0300() 122 gid_t gid = getgid(); in fstatat_time64_0100()
|
/third_party/ltp/testcases/kernel/syscalls/setregid/ |
H A D | setregid04.c | 53 if ((getgid() != rg) || (getegid() != eg)) { in gid_verify() 55 when, getgid(), getegid()); in gid_verify() 83 root_gid = test_groups[0] = getgid(); in setup()
|
H A D | setregid02.c | 57 if ((getgid() != rg) || (getegid() != eg)) { in gid_verify() 59 when, getgid(), getegid()); in gid_verify() 100 root_gid = test_groups[1] = getgid(); in setup()
|
H A D | setregid03.c | 98 if ((getgid() != rg) || (getegid() != eg)) { in gid_verify() 100 when, getgid(), getegid()); in gid_verify()
|
H A D | setregid01.c | 51 gid = getgid(); in setup()
|
/test/xts/acts/kernel_lite/process_posix/src/ |
H A D | UidGidTest.cpp | 83 * @tc.name setgid and getgid basic test
89 gid_t gid = getgid();
in HWTEST_F() 96 gid = getgid();
in HWTEST_F() 105 gid = getgid();
in HWTEST_F() 115 gid = getgid();
in HWTEST_F() 125 gid_t gid = getgid();
in HWTEST_F() 134 gid = getgid();
in HWTEST_F() 244 gid_t gid = getgid();
in HWTEST_F() 253 gid = getgid();
in HWTEST_F() 539 gid_t gid = getgid();
in HWTEST_F() [all...] |
/third_party/node/deps/npm/node_modules/isexe/ |
H A D | mode.js | 28 options.gid : process.getgid && process.getgid()
|
/third_party/pulseaudio/src/daemon/ |
H A D | caps.c | 54 gid = getgid(); in pa_drop_root() 71 pa_assert_se(getgid() == gid); in pa_drop_root()
|
/test/xts/acts/kernel_lite/fs_posix/src/ |
H A D | FsStatTest.cpp | 83 EXPECT_EQ(buf.st_gid, getgid()) << "> The GIDs are different"; // giu
in HWTEST_F() 119 EXPECT_EQ(buf.st_gid, getgid()) << "> The GIDs are different"; // giu
in HWTEST_F() 153 EXPECT_EQ(buf.st_gid, getgid()) << "> The GIDs are different"; // giu
in HWTEST_F()
|
/third_party/ltp/testcases/kernel/syscalls/acct/ |
H A D | acct02.c | 107 if (ACCT_MEMBER(ac_gid) != getgid()) { in verify_acct() 108 tst_res(TINFO, "ac_gid != %d (%d)", getgid(), in verify_acct()
|
/third_party/rust/crates/rustix/src/process/ |
H A D | id.rs | 214 /// `getgid()`—Returns the process' real group ID. 220 /// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getgid.html 221 /// [Linux]: https://man7.org/linux/man-pages/man2/getgid.2.html 224 pub fn getgid() -> Gid { in getgid() functions 225 backend::process::syscalls::getgid() in getgid()
|
/third_party/musl/src/unistd/ |
H A D | getgid.c | 4 gid_t getgid(void) in getgid() function
|
/third_party/ltp/testcases/kernel/syscalls/setgid/ |
H A D | setgid01.c | 26 gid = getgid(); in setup()
|
H A D | setgid03.c | 23 if (getgid() != nobody->pw_gid) in run() 26 tst_res(TPASS, "functionality of getgid() is correct"); in run()
|
/test/xts/hats/kernel/syscalls/fileio/getgid/ |
H A D | GetgidApiTest.cpp | 61 gid_t gid = getgid(); in HWTEST_F()
|
/third_party/ltp/testcases/kernel/syscalls/getgid/ |
H A D | getgid03.c | 9 * Testcase to check the basic functionality of getgid(). 12 * For functionality test the return value from getgid() is compared to passwd 34 GID16_CHECK(pwent->pw_gid, getgid); in run() 37 tst_res(TFAIL, "getgid() return value " in run() 43 tst_res(TPASS, "values from getgid() and getpwuid() match"); in run()
|
/third_party/ltp/testcases/kernel/syscalls/mkdir/ |
H A D | mkdir04.c | 42 SAFE_CHOWN(TESTDIR, test_users[0], getgid()); in setup()
|
/third_party/musl/libc-test/src/functionalext/supplement/unistd/unistd_gtest/ |
H A D | unistd_getid_test.cpp | 39 * @tc.desc: checks whether getgid functions behave as expected and return the correct 45 EXPECT_EQ(getgid(), getauxval(AT_GID)); in HWTEST_F()
|