Home
last modified time | relevance | path

Searched refs:gid (Results 1 – 22 of 22) sorted by relevance

/bionic/libc/bionic/
Dgrp_pwd_file.cpp104 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()
Dchown.cpp34 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()
Dlchown.cpp34 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()
Dgrp_pwd.cpp380 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/
Dgrp_pwd_file_test.cpp39 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()
Dgrp_pwd_test.cpp480 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/
Dib_user_mad.h39 __u8 gid[16]; member
57 __u8 gid[16]; member
Dib_user_ioctl_verbs.h200 __aligned_u64 gid[2]; member
Drdma_netlink.h186 __u8 gid[16]; member
Dib_user_verbs.h736 __u8 gid[16]; member
743 __u8 gid[16]; member
/bionic/libc/kernel/uapi/asm-generic/
Dipcbuf.h25 __kernel_gid32_t gid; member
/bionic/libc/kernel/uapi/linux/
Dvfio_zdev.h31 __u8 gid; member
Dipc.h26 __kernel_gid_t gid; member
Dcramfs_fs.h33 __u32 size : CRAMFS_SIZE_WIDTH, gid : CRAMFS_GID_WIDTH; member
Dsmc_diag.h83 __u8 gid[40]; member
Dauto_fs.h102 __u32 gid; member
Dauto_dev-ioctl.h51 __u32 gid; member
Dfuse.h38 uint32_t gid; member
262 uint32_t gid; member
444 uint32_t gid; member
Djffs2.h100 jint16_t gid; member
Dbtrfs_tree.h235 __le32 gid; member
/bionic/tests/headers/posix/
Dsys_ipc_h.c36 STRUCT_MEMBER(struct ipc_perm, gid_t, gid); in sys_ipc_h()
/bionic/libc/include/sys/
Dsocket.h134 gid_t gid; member