Searched refs:gids (Results 1 – 3 of 3) sorted by relevance
/system/core/libpackagelistparser/ |
D | packagelistparser.c | 41 static size_t get_gid_cnt(const char *gids) in get_gid_cnt() argument 45 if (*gids == '\0') { in get_gid_cnt() 49 if (!strcmp(gids, "none")) { in get_gid_cnt() 53 for (cnt = 1; gids[cnt]; gids[cnt] == ',' ? cnt++ : *gids++) in get_gid_cnt() 59 static bool parse_gids(char *gids, gid_t *gid_list, size_t *cnt) in parse_gids() argument 66 while ((token = strsep(&gids, ",\r\n"))) { in parse_gids() 212 pkg_info->gids.cnt = get_gid_cnt(cur); in packagelist_parse() 213 if (pkg_info->gids.cnt > 0) { in packagelist_parse() 215 pkg_info->gids.gids = calloc(pkg_info->gids.cnt, sizeof(gid_t)); in packagelist_parse() 216 if (!pkg_info->gids.gids) { in packagelist_parse() [all …]
|
/system/extras/su/ |
D | su.c | 45 void extract_uidgids(const char* uidgids, uid_t* uid, gid_t* gid, gid_t* gids, int* gids_count) { in extract_uidgids() argument 72 pwtoid(tok, NULL, gids); in extract_uidgids() 74 gids++; in extract_uidgids() 107 gid_t gids[10]; in main() local 108 int gids_count = sizeof(gids)/sizeof(gids[0]); in main() 109 extract_uidgids(*argv, &uid, &gid, gids, &gids_count); in main() 111 if (setgroups(gids_count, gids)) { in main()
|
/system/core/libpackagelistparser/include/packagelistparser/ |
D | packagelistparser.h | 45 gid_t *gids; member 54 gid_list gids; member
|