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()
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 …]
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()
/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.cpp510 static void check_group(const group* grp, const char* group_name, gid_t gid, in check_group() argument
516 EXPECT_EQ(gid, grp->gr_gid); in check_group()
526 static void check_getgrgid(const char* group_name, gid_t gid, bool check_groupname) { in check_getgrgid() argument
528 group* grp = getgrgid(gid); in check_getgrgid()
531 check_group(grp, group_name, gid, check_groupname); in check_getgrgid()
534 static void check_getgrnam(const char* group_name, gid_t gid, bool check_groupname) { in check_getgrnam() argument
539 check_group(grp, group_name, gid, check_groupname); in check_getgrnam()
542 static void check_getgrgid_r(const char* group_name, gid_t gid, bool check_groupname) { in check_getgrgid_r() argument
548 int result = getgrgid_r(gid, &grp_storage, buf, sizeof(buf), &grp); in check_getgrgid_r()
552 check_group(grp, group_name, gid, check_groupname); in check_getgrgid_r()
[all …]
/bionic/libc/kernel/uapi/rdma/
Dib_user_mad.h27 __u8 gid[16]; member
45 __u8 gid[16]; member
Dib_user_ioctl_verbs.h194 __aligned_u64 gid[2]; member
Drdma_netlink.h174 __u8 gid[16]; member
Dib_user_verbs.h736 __u8 gid[16]; member
743 __u8 gid[16]; member
/bionic/libc/kernel/uapi/asm-generic/
Dipcbuf.h13 __kernel_gid32_t gid; member
/bionic/libc/kernel/uapi/linux/
Dipc.h14 __kernel_gid_t gid; member
Dvfio_zdev.h19 __u8 gid; member
Dcramfs_fs.h21 __u32 size : CRAMFS_SIZE_WIDTH, gid : CRAMFS_GID_WIDTH; member
Dfuse.h26 uint32_t gid; member
42 uint32_t gid; member
316 uint32_t gid; member
506 uint32_t gid; member
Dsmc_diag.h71 __u8 gid[40]; member
Dauto_fs.h90 __u32 gid; member
Dauto_dev-ioctl.h39 __u32 gid; member
Djffs2.h88 jint16_t gid; member
Dbtrfs_tree.h369 __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.h124 gid_t gid; member