/bionic/libc/bionic/ |
D | grp_pwd_file.cpp | 104 const char* gid() const { in gid() function 125 gid_t gid; in ToPasswdState() local 126 if (!FieldToUid(this->gid(), &gid)) { in ToPasswdState() 131 passwd_state->passwd_.pw_gid = gid; in ToPasswdState() 160 const char* gid() const { in gid() function 166 if (name() == nullptr || gid() == nullptr) { in ToGroupState() 170 gid_t gid; in ToGroupState() local 171 if (!FieldToUid(this->gid(), &gid)) { in ToGroupState() 175 group_state->group_.gr_gid = gid; in ToGroupState()
|
D | chown.cpp | 34 int chown(const char* path, uid_t uid, gid_t gid) { in chown() argument 35 return fchownat(AT_FDCWD, path, uid, gid, 0); in chown()
|
D | lchown.cpp | 34 int lchown(const char* path, uid_t uid, gid_t gid) { in lchown() argument 35 return fchownat(AT_FDCWD, path, uid, gid, AT_SYMLINK_NOFOLLOW); in lchown()
|
D | grp_pwd.cpp | 380 static void print_app_name_from_gid(const gid_t gid, char* buffer, const int bufferlen) { in print_app_name_from_gid() argument 381 const uid_t appid = gid % AID_USER_OFFSET; in print_app_name_from_gid() 382 const uid_t userid = gid / AID_USER_OFFSET; in print_app_name_from_gid() 477 static group* oem_id_to_group(gid_t gid, group_state_t* state) { in oem_id_to_group() argument 479 if (group_file.FindById(gid, state)) { in oem_id_to_group() 484 if (!is_oem_id(gid)) { in oem_id_to_group() 489 "oem_%u", gid); in oem_id_to_group() 492 gr->gr_gid = gid; in oem_id_to_group() 527 static group* app_id_to_group(gid_t gid, group_state_t* state) { in app_id_to_group() argument 528 if (gid < AID_APP_START || !is_valid_app_id(gid, true)) { in app_id_to_group() [all …]
|
/bionic/tests/ |
D | grp_pwd_file_test.cpp | 39 void FindAndCheckPasswdEntry(PasswdFile* file, const char* name, uid_t uid, gid_t gid, in FindAndCheckPasswdEntry() argument 48 EXPECT_EQ(gid, name_passwd.pw_gid); in FindAndCheckPasswdEntry() 60 EXPECT_EQ(gid, id_passwd.pw_gid); in FindAndCheckPasswdEntry() 66 void FindAndCheckGroupEntry(GroupFile* file, const char* name, gid_t gid) { in FindAndCheckGroupEntry() argument 73 EXPECT_EQ(gid, name_group.gr_gid); in FindAndCheckGroupEntry() 78 ASSERT_TRUE(file->FindById(gid, &id_group_state)) << gid; in FindAndCheckGroupEntry() 83 EXPECT_EQ(gid, id_group.gr_gid); in FindAndCheckGroupEntry()
|
D | grp_pwd_test.cpp | 480 static void check_group(const group* grp, const char* group_name, gid_t gid, in check_group() argument 486 EXPECT_EQ(gid, grp->gr_gid); in check_group() 496 static void check_getgrgid(const char* group_name, gid_t gid, bool check_groupname) { in check_getgrgid() argument 498 group* grp = getgrgid(gid); in check_getgrgid() 501 check_group(grp, group_name, gid, check_groupname); in check_getgrgid() 504 static void check_getgrnam(const char* group_name, gid_t gid, bool check_groupname) { in check_getgrnam() argument 509 check_group(grp, group_name, gid, check_groupname); in check_getgrnam() 512 static void check_getgrgid_r(const char* group_name, gid_t gid, bool check_groupname) { in check_getgrgid_r() argument 518 int result = getgrgid_r(gid, &grp_storage, buf, sizeof(buf), &grp); in check_getgrgid_r() 522 check_group(grp, group_name, gid, check_groupname); in check_getgrgid_r() [all …]
|
/bionic/libc/kernel/uapi/rdma/ |
D | ib_user_mad.h | 39 __u8 gid[16]; member 57 __u8 gid[16]; member
|
D | ib_user_ioctl_verbs.h | 200 __aligned_u64 gid[2]; member
|
D | rdma_netlink.h | 186 __u8 gid[16]; member
|
D | ib_user_verbs.h | 736 __u8 gid[16]; member 743 __u8 gid[16]; member
|
/bionic/libc/kernel/uapi/asm-generic/ |
D | ipcbuf.h | 25 __kernel_gid32_t gid; member
|
/bionic/libc/kernel/uapi/linux/ |
D | vfio_zdev.h | 31 __u8 gid; member
|
D | ipc.h | 26 __kernel_gid_t gid; member
|
D | cramfs_fs.h | 33 __u32 size : CRAMFS_SIZE_WIDTH, gid : CRAMFS_GID_WIDTH; member
|
D | smc_diag.h | 83 __u8 gid[40]; member
|
D | auto_fs.h | 102 __u32 gid; member
|
D | auto_dev-ioctl.h | 51 __u32 gid; member
|
D | fuse.h | 38 uint32_t gid; member 262 uint32_t gid; member 444 uint32_t gid; member
|
D | jffs2.h | 100 jint16_t gid; member
|
D | btrfs_tree.h | 235 __le32 gid; member
|
/bionic/tests/headers/posix/ |
D | sys_ipc_h.c | 36 STRUCT_MEMBER(struct ipc_perm, gid_t, gid); in sys_ipc_h()
|
/bionic/libc/include/sys/ |
D | socket.h | 134 gid_t gid; member
|