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