Home
last modified time | relevance | path

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

/system/libbase/
Dfile.cpp529 const char* endp = nullptr; in _basename_r() local
541 endp = path + path_size - 1; in _basename_r()
542 while (endp > path && *endp == '/') { in _basename_r()
543 endp--; in _basename_r()
547 if (endp == path && *endp == '/') { in _basename_r()
554 startp = endp; in _basename_r()
559 len = endp - startp +1; in _basename_r()
613 const char* endp = nullptr; in _dirname_r() local
625 endp = path + path_size - 1; in _dirname_r()
626 while (endp > path && *endp == '/') { in _dirname_r()
[all …]
/system/logging/logd/
DLogTags.cpp57 static uid_t sniffUid(const char* comment, const char* endp) { in sniffUid() argument
61 while ((comment < endp) && (*comment != '\n') && isspace(*comment)) in sniffUid()
64 if (((comment + strlen(uid_str)) >= endp) || in sniffUid()
70 if ((cp > endp) || (Uid >= INT_MAX)) return AID_ROOT; in sniffUid()
202 char* endp = cp + content.length(); in ReadFileEventLogTags() local
211 while (cp < endp) { in ReadFileEventLogTags()
223 while ((cp < endp) && (*cp != '\n') && isspace(*cp)) ++cp; in ReadFileEventLogTags()
224 if (cp >= endp) break; in ReadFileEventLogTags()
229 while ((cp < endp) && (isalnum(*cp) || (*cp == '_'))) { in ReadFileEventLogTags()
241 ((cp >= endp) || (*cp == '#') || isspace(*cp))) { in ReadFileEventLogTags()
[all …]
DLogKlog.cpp331 char* endp; in sniffTime() local
332 real.tv_sec = strtol(b, &endp, 10); in sniffTime()
333 if ((*endp == '.') && ((endp - b) < len)) { in sniffTime()
336 len -= endp - b; in sniffTime()
337 while (--len && isdigit(*++endp) && (multiplier /= 10)) { in sniffTime()
338 real.tv_nsec += (*endp - '0') * multiplier; in sniffTime()
/system/logging/liblog/
Devent_tag_map.cpp225 const char* endp = cp + len; in parseMapLines() local
228 if (!len || (*(endp - 1) != '\n')) { in parseMapLines()
242 while (cp < endp) { in parseMapLines()