Searched refs:tok (Results 1 - 4 of 4) 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...]
H A Dmain.cpp311 for (char *ptr = NULL, *tok = buf.get();
312 (rc >= 0) && ((tok = log_strtok_r(tok, &ptr)));
313 tok = NULL) {
315 rc = al->log(tok);
318 rc = kl->log(tok);
/system/core/libcutils/
H A Dconfig_utils.c234 int tok = _lex(cs, value);
235 printf("TOKEN(%d) %s %s\n", value, TOKENNAMES[tok],
236 tok == T_TEXT ? cs->text : "");
237 return tok;

Completed in 74 milliseconds