Searched defs:tok (Results 1 - 2 of 2) sorted by relevance

/system/extras/su/
H A Dsu.c30 void pwtoid(const char* tok, uid_t* uid, gid_t* gid) { argument
31 struct passwd* pw = getpwnam(tok);
38 uid_t tmpid = strtoul(tok, &end, 10);
39 if (errno != 0 || end == tok) error(1, errno, "invalid uid/gid '%s'", tok);
48 char *tok; local
60 tok = strsep(&nexttok, ",");
61 pwtoid(tok, uid, gid);
62 tok = strsep(&nexttok, ",");
63 if (!tok) {
[all...]
/system/core/logd/
H A DLogKlog.cpp117 char *peek, *tok = s; local
124 return tok;
130 return tok;
137 if (s != (tok + 1)) { // not first?
142 return tok;
155 if (s != (tok + 1)) { // not first?
164 return tok;
218 for(char *ptr = NULL, *tok = buffer;
219 ((tok = log_strtok_r(tok,
[all...]

Completed in 196 milliseconds