Home
last modified time | relevance | path

Searched refs:gid_t (Results 1 – 25 of 26) sorted by relevance

12

/bionic/libc/
DSECCOMP_BLOCKLIST_APP.TXT14 int setgid:setgid32(gid_t) lp32
15 int setgid:setgid(gid_t) lp64
18 int setregid:setregid32(gid_t, gid_t) lp32
19 int setregid:setregid(gid_t, gid_t) lp64
22 int setresgid:setresgid32(gid_t, gid_t, gid_t) lp32
23 int setresgid:setresgid(gid_t, gid_t, gid_t) lp64
25 int setfsgid:setfsgid32(gid_t) lp32
26 int setfsgid:setfsgid(gid_t) lp64
29 int setgroups:setgroups32(int, const gid_t*) lp32
30 int setgroups:setgroups(int, const gid_t*) lp64
DSYSCALLS.TXT32 gid_t getgid:getgid32() lp32
33 gid_t getgid:getgid() lp64
36 gid_t getegid:getegid32() lp32
37 gid_t getegid:getegid() lp64
40 gid_t getresgid:getresgid32(gid_t* rgid, gid_t* egid, gid_t* sgid) lp32
41 gid_t getresgid:getresgid(gid_t* rgid, gid_t* egid, gid_t* sgid) lp64
42 int getgroups:getgroups32(int, gid_t*) lp32
43 int getgroups:getgroups(int, gid_t*) lp64
44 int setgid:setgid32(gid_t) lp32
45 int setgid:setgid(gid_t) lp64
[all …]
/bionic/libc/include/
Dunistd.h113 int setegid(gid_t __gid);
135 int setgid(gid_t __gid);
146 int setregid(gid_t __rgid, gid_t __egid);
157 int setresgid(gid_t __rgid, gid_t __egid, gid_t __sgid);
194 gid_t getgid(void);
195 gid_t getegid(void);
196 int getgroups(int __size, gid_t* _Nullable __list);
197 int setgroups(size_t __size, const gid_t* _Nullable __list);
199 int getresgid(gid_t* _Nonnull __rgid, gid_t* _Nonnull __egid, gid_t* _Nonnull __sgid);
225 int chown(const char* _Nonnull __path, uid_t __owner, gid_t __group);
[all …]
Dgrp.h44 gid_t gr_gid; /* group id */
50 struct group* _Nullable getgrgid(gid_t __gid);
58 int getgrgid_r(gid_t __gid, struct group* __BIONIC_COMPLICATED_NULLNESS __group, char* _Nonnull __b…
60 int getgrouplist(const char* _Nonnull __user, gid_t __group, gid_t* __BIONIC_COMPLICATED_NULLNESS _…
61 int initgroups(const char* _Nonnull __user, gid_t __group);
Dpwd.h72 gid_t pw_gid;
/bionic/tests/headers/posix/
Dgrp_h.c36 STRUCT_MEMBER(struct group, gid_t, gr_gid); in grp_h()
39 TYPE(gid_t); in grp_h()
44 FUNCTION(getgrgid, struct group* (*f)(gid_t)); in grp_h()
45 FUNCTION(getgrgid_r, int (*f)(gid_t, struct group*, char*, size_t, struct group**)); in grp_h()
Dsys_ipc_h.c36 STRUCT_MEMBER(struct ipc_perm, gid_t, gid); in sys_ipc_h()
38 STRUCT_MEMBER(struct ipc_perm, gid_t, cgid); in sys_ipc_h()
46 TYPE(gid_t); in sys_ipc_h()
Dunistd_h.c301 TYPE(gid_t); in unistd_h()
309 FUNCTION(chown, int (*f)(const char*, uid_t, gid_t)); in unistd_h()
329 FUNCTION(fchown, int (*f)(int, uid_t, gid_t)); in unistd_h()
330 FUNCTION(fchownat, int (*f)(int, const char*, uid_t, gid_t, int)); in unistd_h()
338 FUNCTION(getegid, gid_t (*f)(void)); in unistd_h()
340 FUNCTION(getgid, gid_t (*f)(void)); in unistd_h()
341 FUNCTION(getgroups, int (*f)(int, gid_t[])); in unistd_h()
356 FUNCTION(lchown, int (*f)(const char*, uid_t, gid_t)); in unistd_h()
371 FUNCTION(setegid, int (*f)(gid_t)); in unistd_h()
373 FUNCTION(setgid, int (*f)(gid_t)); in unistd_h()
[all …]
Dpwd_h.c37 STRUCT_MEMBER(struct passwd, gid_t, pw_gid); in pwd_h()
41 TYPE(gid_t); in pwd_h()
Dsys_stat_h.c57 STRUCT_MEMBER(struct stat, gid_t, st_gid); in sys_stat_h()
99 TYPE(gid_t); in sys_stat_h()
Dsys_types_h.c41 TYPE(gid_t); in sys_types_h()
/bionic/libc/bionic/
Dinitgroups.c35 initgroups (const char *user, gid_t group) in initgroups()
37 gid_t groups0[ INIT_GROUPS ]; in initgroups()
38 gid_t* groups = groups0; in initgroups()
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()
477 static group* oem_id_to_group(gid_t gid, group_state_t* state) { in oem_id_to_group()
527 static group* app_id_to_group(gid_t gid, group_state_t* state) { in app_id_to_group()
612 int getgrouplist(const char* /*user*/, gid_t group, gid_t* groups, int* ngroups) { in getgrouplist()
700 static group* getgrgid_internal(gid_t gid, group_state_t* state) { in getgrgid_internal()
713 group* getgrgid(gid_t gid) { // NOLINT: implementing bad function. in getgrgid()
743 static int getgroup_r(bool by_name, const char* name, gid_t gid, struct group* grp, char* buf, in getgroup_r()
763 int getgrgid_r(gid_t gid, struct group* grp, char* buf, size_t buflen, struct group** result) { in getgrgid_r()
Dsetegid.cpp31 int setegid(gid_t egid) { in setegid()
Dchown.cpp34 int chown(const char* path, uid_t uid, gid_t gid) { in chown()
Dlchown.cpp34 int lchown(const char* path, uid_t uid, gid_t gid) { in lchown()
Dgrp_pwd_file.cpp125 gid_t gid; in ToPasswdState()
170 gid_t gid; in ToGroupState()
342 bool GroupFile::FindById(gid_t id, group_state_t* group_state) { in FindById()
Dgrp_pwd_file.h94 bool FindById(gid_t id, group_state_t* group_state);
/bionic/tests/
Dgrp_pwd_test.cpp491 static void check_group(const group* grp, const char* group_name, gid_t gid, in check_group()
507 static void check_getgrgid(const char* group_name, gid_t gid, bool check_groupname) { in check_getgrgid()
515 static void check_getgrnam(const char* group_name, gid_t gid, bool check_groupname) { in check_getgrnam()
523 static void check_getgrgid_r(const char* group_name, gid_t gid, bool check_groupname) { in check_getgrgid_r()
536 static void check_getgrnam_r(const char* group_name, gid_t gid, bool check_groupname) { in check_getgrnam_r()
549 static void check_get_group(const char* group_name, gid_t gid, bool check_groupname = true) { in check_get_group()
557 static void expect_no_group_id(gid_t gid) { in expect_no_group_id()
587 static void check_get_group(const char*, gid_t, bool) { in check_get_group() argument
591 static void check_get_group(const char*, gid_t) { in check_get_group() argument
595 static void expect_no_group_id(gid_t /* gid */) { in expect_no_group_id() argument
[all …]
Dsys_types_test.cpp24 ASSERT_EQ(4U, sizeof(gid_t)); in TEST()
Dgrp_pwd_file_test.cpp39 void FindAndCheckPasswdEntry(PasswdFile* file, const char* name, uid_t uid, gid_t gid, in FindAndCheckPasswdEntry()
66 void FindAndCheckGroupEntry(GroupFile* file, const char* name, gid_t gid) { in FindAndCheckGroupEntry()
/bionic/libc/include/sys/
Dstat.h50 gid_t st_gid; \
70 gid_t st_gid; \
89 gid_t st_gid; \
Dfsuid.h59 int setfsgid(gid_t __gid) __INTRODUCED_IN(21);
Dtypes.h43 typedef __gid_t gid_t; typedef
Dsocket.h128 gid_t gid;

12