Lines Matching refs:tok
30 void pwtoid(const char* tok, uid_t* uid, gid_t* gid) { in pwtoid() argument
31 struct passwd* pw = getpwnam(tok); in pwtoid()
38 uid_t tmpid = strtoul(tok, &end, 10); in pwtoid()
39 if (errno != 0 || end == tok) error(1, errno, "invalid uid/gid '%s'", tok); in pwtoid()
48 char *tok; in extract_uidgids() local
60 tok = strsep(&nexttok, ","); in extract_uidgids()
61 pwtoid(tok, uid, gid); in extract_uidgids()
62 tok = strsep(&nexttok, ","); in extract_uidgids()
63 if (!tok) { in extract_uidgids()
69 pwtoid(tok, NULL, gid); in extract_uidgids()
71 while ((gids_found < *gids_count) && (tok = strsep(&nexttok, ","))) { in extract_uidgids()
72 pwtoid(tok, NULL, gids); in extract_uidgids()