Home
last modified time | relevance | path

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

/bionic/libc/bionic/
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.cpp298 static void print_app_name_from_gid(const gid_t gid, char* buffer, const int bufferlen) { in print_app_name_from_gid() argument
299 const uid_t appid = gid % AID_USER_OFFSET; in print_app_name_from_gid()
300 const uid_t userid = gid / AID_USER_OFFSET; in print_app_name_from_gid()
359 static group* oem_id_to_group(gid_t gid, group_state_t* state) { in oem_id_to_group() argument
360 if (!is_oem_id(gid)) { in oem_id_to_group()
365 "oem_%u", gid); in oem_id_to_group()
369 gr->gr_gid = gid; in oem_id_to_group()
408 static group* app_id_to_group(gid_t gid, group_state_t* state) { in app_id_to_group() argument
409 if (gid < AID_APP_START) { in app_id_to_group()
414 print_app_name_from_gid(gid, state->group_name_buffer_, sizeof(state->group_name_buffer_)); in app_id_to_group()
[all …]
/bionic/tests/
Dgrp_pwd_test.cpp229 static void check_group(const group* grp, const char* group_name, gid_t gid) { in check_group() argument
232 ASSERT_EQ(gid, grp->gr_gid); in check_group()
240 static void check_getgrgid(const char* group_name, gid_t gid) { in check_getgrgid() argument
242 group* grp = getgrgid(gid); in check_getgrgid()
245 check_group(grp, group_name, gid); in check_getgrgid()
248 static void check_getgrnam(const char* group_name, gid_t gid) { in check_getgrnam() argument
253 check_group(grp, group_name, gid); in check_getgrnam()
256 static void check_getgrgid_r(const char* group_name, gid_t gid) { in check_getgrgid_r() argument
262 int result = getgrgid_r(gid, &grp_storage, buf, sizeof(buf), &grp); in check_getgrgid_r()
266 check_group(grp, group_name, gid); in check_getgrgid_r()
[all …]
/bionic/libc/kernel/uapi/linux/
Dncp_mount.h47 __kernel_gid_t gid; member
65 unsigned long gid; member
Dipc.h27 __kernel_gid_t gid; member
Dcramfs_fs.h36 __u32 size : CRAMFS_SIZE_WIDTH, gid : CRAMFS_GID_WIDTH; member
Dauto_fs4.h75 __u32 gid; member
Dauto_dev-ioctl.h59 __u32 gid; member
Dfuse.h42 uint32_t gid; member
292 uint32_t gid; member
517 uint32_t gid; member
Djffs2.h120 jint16_t gid; member
Dbtrfs_tree.h281 __le32 gid; member
/bionic/libc/kernel/uapi/asm-generic/
Dipcbuf.h25 __kernel_gid32_t gid; member
/bionic/libc/kernel/uapi/rdma/
Dib_user_mad.h44 __u8 gid[16]; member
66 __u8 gid[16]; member
Drdma_netlink.h209 __u8 gid[16]; member
Dib_user_verbs.h850 __u8 gid[16]; member
859 __u8 gid[16]; member
/bionic/libc/include/sys/
Dsocket.h141 gid_t gid; member