Searched defs:gid (Results 1 - 25 of 173) sorted by relevance

1234567

/external/ltp/testcases/kernel/syscalls/utils/
H A Dcompat_gid.h30 int GID_SIZE_CHECK(gid_t gid) argument
33 Return 0 if gid is too large to store
35 return ((gid) & ~0xFFFF)? 0: 1;
41 int GID_SIZE_CHECK(gid_t gid LTP_ATTRIBUTE_UNUSED)
/external/strace/tests/
H A Dfchownat.c44 uid_t gid = getegid(); local
49 long rc = syscall(__NR_fchownat, AT_FDCWD, sample, uid, gid, 0);
51 sample, uid, gid, sprintrc(rc));
H A Doverflowuid.c92 check_overflowgid(const int gid) argument
94 check_overflow_id(gid, "/proc/sys/kernel/overflowgid");
/external/strace/tests-m32/
H A Dfchownat.c44 uid_t gid = getegid(); local
49 long rc = syscall(__NR_fchownat, AT_FDCWD, sample, uid, gid, 0);
51 sample, uid, gid, sprintrc(rc));
H A Doverflowuid.c92 check_overflowgid(const int gid) argument
94 check_overflow_id(gid, "/proc/sys/kernel/overflowgid");
/external/strace/tests-mx32/
H A Dfchownat.c44 uid_t gid = getegid(); local
49 long rc = syscall(__NR_fchownat, AT_FDCWD, sample, uid, gid, 0);
51 sample, uid, gid, sprintrc(rc));
H A Doverflowuid.c92 check_overflowgid(const int gid) argument
94 check_overflow_id(gid, "/proc/sys/kernel/overflowgid");
/external/syslinux/gpxe/src/include/gpxe/
H A Dib_mcast.h21 struct ib_gid gid; member in struct:ib_mc_membership
39 struct ib_gid *gid,
H A Dipoib.h25 struct ib_gid gid; member in struct:ipoib_mac
/external/ltp/testcases/kernel/syscalls/setfsgid/
H A Dsetfsgid01.c43 gid_t gid; local
52 gid = getegid();
53 GID16_CHECK(gid, setfsgid, cleanup);
55 TEST(SETFSGID(cleanup, gid));
63 if (TEST_RETURN != gid) {
65 TEST_RETURN, gid);
H A Dsetfsgid02.c46 gid_t gid; local
55 gid = 1;
56 while (getgrgid(gid))
57 gid++;
59 GID16_CHECK(gid, setfsgid, cleanup);
61 TEST(SETFSGID(cleanup, gid));
69 if (TEST_RETURN == gid) {
71 TEST_RETURN, gid);
H A Dsetfsgid03.c49 gid_t gid; local
58 gid = 1;
59 while (!getgrgid(gid))
60 gid++;
62 GID16_CHECK(gid, setfsgid, cleanup);
64 TEST(SETFSGID(cleanup, gid));
72 if (TEST_RETURN == gid) {
75 TEST_RETURN, gid);
/external/ltp/testcases/kernel/syscalls/setgid/
H A Dsetgid01.c50 static gid_t gid; variable
63 TEST(SETGID(cleanup, gid));
66 tst_resm(TFAIL, "setgid(%d) Failed, errno=%d : %s", gid,
69 tst_resm(TPASS, "setgid(%d) returned %ld", gid,
85 gid = getgid();
86 GID16_CHECK(gid, setgid, cleanup);
/external/ltp/testcases/kernel/syscalls/setregid/
H A Dsetregid01.c53 static gid_t gid, egid; /* current real and effective group id */ variable
69 * Dont change either real or effective gid
71 gid = getgid();
72 GID16_CHECK(gid, setregid, NULL);
81 "setregid - Dont change either real or effective gid failed, errno=%d : %s",
85 "setregid - Dont change either real or effective gid returned %ld",
91 * change effective to effective gid
98 "setregid - change effective to effective gid failed, errno=%d : %s",
102 "setregid - change effective to effective gid returned %ld",
108 * change real to real gid
[all...]
/external/kernel-headers/original/uapi/asm-generic/
H A Dipcbuf.h23 __kernel_gid32_t gid; member in struct:ipc64_perm
/external/libbrillo/brillo/
H A Duserdb_utils.cc19 bool GetUserInfo(const std::string& user, uid_t* uid, gid_t* gid) { argument
33 if (gid)
34 *gid = pwd->pw_gid;
38 bool GetGroupInfo(const std::string& group, gid_t* gid) { argument
50 if (gid)
51 *gid = grp->gr_gid;
H A Dfile_utils.cc54 // Checks if a regular file owned by |uid| and |gid| exists at |path|, otherwise
59 gid_t gid) {
71 file_stat.st_gid == gid) {
96 gid_t gid,
98 RegularFileOrDeleteResult result = RegularFileOrDelete(path, uid, gid);
136 gid_t gid) {
144 if (!TouchFileInternal(path, uid, gid, &scoped_fd)) {
57 RegularFileOrDelete(const base::FilePath& path, uid_t uid, gid_t gid) argument
94 TouchFileInternal(const base::FilePath& path, uid_t uid, gid_t gid, base::ScopedFD* fd_out) argument
133 TouchFile(const base::FilePath& path, int new_file_permissions, uid_t uid, gid_t gid) argument
/external/ltp/testcases/kernel/syscalls/chown/
H A Dchown01.c125 int uid, gid; variable
142 TEST(CHOWN(cleanup, fname, uid, gid));
146 fname, uid, gid);
149 fname, uid, gid, TEST_RETURN);
168 GID16_CHECK((gid = getegid()), "chown", cleanup)
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_auth_authunix_create/
H A Drpc_authunix_create.c62 gid_t gid; local
67 gid = getegid();
81 authUnx = authunix_create(hostname, uid, gid, num_groups, aup_gids);
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authsys_create/
H A Dtirpc_authsys_create.c48 gid_t gid, aup_gids[NGRPS]; local
53 gid = getegid();
57 authSys = authsys_create(argc[1], uid, gid, len, aup_gids);
/external/libcap/progs/old/
H A Dsucap.c57 gid_t gid; local
80 /* Convert groupname to gid */
87 gid = gr->gr_gid;
123 /* 1. mother process sets gid and uid
138 /* Set gid and uid (this probably clears capabilities) */
139 setregid(gid, gid);
/external/ltp/testcases/kernel/containers/userns/
H A Duserns02.c45 int uid, gid; local
49 gid = getegid();
51 if (uid == 100 && gid == 100) {
52 printf("Got expected uid and gid.\n");
55 printf("Got unexpected result of uid=%d gid=%d\n", uid, gid);
/external/ltp/testcases/kernel/syscalls/bind/
H A Dbind02.c71 gid_t gid; variable
81 if ((rc = setegid(gid)) == -1) {
82 tst_brkm(TBROK | TERRNO, 0, "setegid(%u) failed", gid);
139 gid = gr->gr_gid;
/external/squashfs-tools/squashfs-tools/
H A Dpseudo.h30 unsigned int gid; member in struct:pseudo_dev
/external/strace/
H A Dstat.h42 unsigned long long gid; member in struct:strace_stat

Completed in 2398 milliseconds

1234567