Home
last modified time | relevance | path

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

/system/libbase/
Dfile.cpp549 const char* endp = nullptr; in _basename_r() local
561 endp = path + path_size - 1; in _basename_r()
562 while (endp > path && *endp == '/') { in _basename_r()
563 endp--; in _basename_r()
567 if (endp == path && *endp == '/') { in _basename_r()
574 startp = endp; in _basename_r()
579 len = endp - startp +1; in _basename_r()
633 const char* endp = nullptr; in _dirname_r() local
645 endp = path + path_size - 1; in _dirname_r()
646 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.cpp318 char* endp; in sniffTime() local
319 real.tv_sec = strtol(b, &endp, 10); in sniffTime()
320 if ((*endp == '.') && ((endp - b) < len)) { in sniffTime()
323 len -= endp - b; in sniffTime()
324 while (--len && isdigit(*++endp) && (multiplier /= 10)) { in sniffTime()
325 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()