Home
last modified time | relevance | path

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

/system/extras/su/
Dsu.cpp44 void extract_uidgids(const char* uidgids, uid_t* uid, gid_t* gid, gid_t* gids, int* gids_count) { in extract_uidgids() argument
52 *gids_count = 0; in extract_uidgids()
64 *gids_count = 0; in extract_uidgids()
70 while ((gids_found < *gids_count) && (tok = strsep(&nexttok, ","))) { in extract_uidgids()
75 if (nexttok && gids_found == *gids_count) { in extract_uidgids()
78 *gids_count = gids_found; in extract_uidgids()
107 int gids_count = sizeof(gids)/sizeof(gids[0]); in main() local
108 extract_uidgids(*argv, &uid, &gid, gids, &gids_count); in main()
109 if (gids_count) { in main()
110 if (setgroups(gids_count, gids)) { in main()