Home
last modified time | relevance | path

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

/system/extras/su/
Dsu.c30 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()
[all …]
/system/core/logd/
DLogKlog.cpp135 char *peek, *tok = s; in log_strntok_r() local
140 return tok; in log_strntok_r()
150 return tok; in log_strntok_r()
157 if (s != (tok + 1)) { // not first? in log_strntok_r()
162 return tok; in log_strntok_r()
187 if (s != (tok + 1)) { // not first? in log_strntok_r()
196 return tok; in log_strntok_r()
258 for(char *ptr = NULL, *tok = buffer; in onDataAvailable() local
259 ((tok = log_strntok_r(tok, &len, &ptr, &sublen))); in onDataAvailable()
260 tok = NULL) { in onDataAvailable()
[all …]
Dmain.cpp354 for (char *ptr = NULL, *tok = buf.get(); in readDmesg() local
355 (rc >= 0) && ((tok = log_strntok_r(tok, &len, &ptr, &sublen))); in readDmesg()
356 tok = NULL) { in readDmesg()
358 rc = al->log(tok, sublen); in readDmesg()
361 rc = kl->log(tok, sublen); in readDmesg()
/system/core/libcutils/
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;