/bionic/libc/tools/ |
D | genserv.py | 43 for line in f.xreadlines(): 44 if len(line) > 0 and line[-1] == "\n": 45 line = line[:-1] 46 if len(line) > 0 and line[-1] == "\r": 47 line = line[:-1] 49 line = string.strip(line) 50 if len(line) == 0 or line[0] == "#": 53 m = re_service.match(line) 70 line = '/* generated by genserv.py - do not edit */\nstatic const char _services[] = "\\\n' variable 72 line += str(s)+"\\\n" [all …]
|
D | generate-NOTICE.py | 77 for line in lines[start:end]: 78 line = line.replace("\t", " ") 79 line = line.replace("/* ", "") 80 line = re.sub("^ \* ", "", line) 81 line = line.replace("** ", "") 82 line = line.replace("# ", "") 83 if line.startswith("++Copyright++"): 85 line = line.replace("--Copyright--", "") 86 line = line.rstrip() 88 if line == "#" or line == " *" or line == "**" or line == "-": [all …]
|
D | symbols.py | 25 for line in f.read().splitlines(): 26 symbols.add(line) 45 for line in output.split('\n'): 46 if ' HIDDEN ' in line or ' UND ' in line: 48 m = r.match(line)
|
D | genversion-scripts.py | 47 for line in fin: 48 index = line.find("#") 50 tags = line[index+1:].split() 56 fout.write(line)
|
D | gensyscalls.py | 411 def parse_line(self, line): argument 417 pos_lparen = line.find('(') 420 E("missing left parenthesis in '%s'" % line) 423 pos_rparen = line.rfind(')') 425 E("missing or misplaced right parenthesis in '%s'" % line) 428 return_type = line[:pos_lparen].strip().split() 430 E("missing return type in '%s'" % line) 442 E("misplaced colon in '%s'" % line) 453 E("misplaced colon2 in '%s'" % line) 471 syscall_params = line[pos_lparen+1:pos_rparen].split(',') [all …]
|
D | check-symbols.py | 33 for line in open(path, 'r'): 34 symbols.add(line.rstrip()) 57 for line in subprocess.check_output(['readelf', '-W', '--dyn-syms', so_file]).split('\n'): 58 m = r.match(line)
|
D | genlibgcc_compat.py | 105 for line in fd: 106 m = prog.search(line)
|
/bionic/libc/bionic/ |
D | assert.cpp | 35 void __assert(const char* file, int line, const char* failed_expression) { in __assert() argument 36 __libc_fatal("%s:%d: assertion \"%s\" failed", file, line, failed_expression); in __assert() 39 void __assert2(const char* file, int line, const char* function, const char* failed_expression) { in __assert2() argument 40 __libc_fatal("%s:%d: %s: assertion \"%s\" failed", file, line, function, failed_expression); in __assert2()
|
D | sysinfo.cpp | 68 char* line = nullptr; in get_nprocs() local 70 if (getline(&line, &len, fp) != -1) { in get_nprocs() 71 cpu_count = GetCpuCountFromString(line); in get_nprocs() 72 free(line); in get_nprocs()
|
D | error.cpp | 76 void error_at_line(int status, int error, const char* file, unsigned int line, const char* fmt, ...… in error_at_line() argument 80 if (last_line == line && last_file != NULL && strcmp(last_file, file) == 0) { in error_at_line() 84 last_line = line; in error_at_line() 88 fprintf(stderr, "%s:%d: ", file, line); in error_at_line()
|
D | pthread_attr.cpp | 123 char line[BUFSIZ]; in __get_main_stack_startstack() local 124 if (fgets(line, sizeof(line), fp) == nullptr) { in __get_main_stack_startstack() 135 const char* end_of_comm = strrchr(line, ')'); in __get_main_stack_startstack() 168 char line[BUFSIZ]; in __pthread_attr_getstack_main_thread() local 169 while (fgets(line, sizeof(line), fp) != NULL) { in __pthread_attr_getstack_main_thread() 171 if (sscanf(line, "%" SCNxPTR "-%" SCNxPTR, &lo, &hi) == 2) { in __pthread_attr_getstack_main_thread()
|
D | libc_init_common.cpp | 116 __noreturn static void __early_abort(int line) { in __early_abort() argument 121 *reinterpret_cast<int*>(line) = 0; in __early_abort()
|
/bionic/libc/kernel/tools/ |
D | kernel.py | 77 def checkInclude(self, line, from_file, kernel_root=None): argument 79 m = HeaderScanner.re_combined.match(line) 81 m = HeaderScanner.re_rel_dir.match(line) 121 for line in f: 122 if (HeaderScanner.re_combined.match(line) or 123 (kernel_root and HeaderScanner.re_rel_dir.match(line))): 303 def parseLine(self,line): argument 304 line = string.strip(line) 307 if len(line) == 0 or line[0] == "#": 310 m = ConfigParser.re_CONFIG_.match(line) [all …]
|
D | cpp.py | 174 if self.start.line < other.line < self.end.line: 177 elif self.start.line == other.line == self.end.line: 180 elif self.start.line == other.line: 184 elif other.line == self.end.line: 296 def __init__(self, line): argument 298 self.parseString(line) 332 def expectToken(self, id, line, col): argument 334 if self._token.location.line != line: 337 id, self._token.lineno, line)) 343 for id, line, col in tokens: [all …]
|
D | utils.py | 40 self.line = "" 43 self.line += msg 47 return self.line
|
/bionic/tests/ |
D | libgen_basename_test.cpp | 44 static void __TestGnuBasename(const char* in, const char* expected_out, int line) { in __TestGnuBasename() argument 47 ASSERT_STREQ(expected_out, out) << "(" << line << "): " << in << std::endl; in __TestGnuBasename() 48 ASSERT_EQ(0, errno) << "(" << line << "): " << in << std::endl; in __TestGnuBasename() 51 static void __TestPosixBasename(const char* in, const char* expected_out, int line) { in __TestPosixBasename() argument 55 ASSERT_STREQ(expected_out, out) << "(" << line << "): " << in << std::endl; in __TestPosixBasename() 56 ASSERT_EQ(0, errno) << "(" << line << "): " << in << std::endl; in __TestPosixBasename()
|
D | utils.h | 61 char line[BUFSIZ]; in parse_maps() local 62 while (fgets(line, sizeof(line), fp) != nullptr) { in parse_maps() 67 if (sscanf(line, "%" SCNxPTR "-%" SCNxPTR " %4s %" SCNxPTR " %x:%x %lu %n", in parse_maps() 84 record.pathname = line + path_offset; in parse_maps()
|
D | stdio_test.cpp | 811 char line[16]; in TEST() local 812 char* s = fgets(line, sizeof(line), fp); in TEST() 825 char line[16]; in TEST() local 826 char* s = fgets(line, sizeof(line), fp); in TEST()
|
D | unistd_test.cpp | 835 std::string line; in TEST() local 836 ASSERT_TRUE(android::base::ReadFileToString("/sys/devices/system/cpu/online", &line)); in TEST() 838 for (const std::string& s : android::base::Split(line, ",")) { in TEST()
|
/bionic/libc/malloc_debug/ |
D | MapData.cpp | 43 static MapEntry* parse_line(char* line) { in parse_line() argument 49 if (sscanf(line, "%" PRIxPTR "-%" PRIxPTR " %4s %" PRIxPTR " %*x:%*x %*d %n", &start, in parse_line() 54 const char* name = line + name_pos; in parse_line()
|
/bionic/libc/kernel/uapi/linux/ |
D | serial.h | 26 int line; member
|
D | omapfb.h | 216 __u16 line; member
|
D | videodev2.h | 1286 __u32 line; member 1304 struct v4l2_mpeg_vbi_itv0_line line[35]; member 1307 struct v4l2_mpeg_vbi_itv0_line line[36]; member
|
/bionic/libc/dns/resolv/ |
D | res_init.c | 286 #define MATCH(line, name) \ in __res_vinit() argument 287 (!strncmp(line, name, sizeof(name) - 1) && \ in __res_vinit() 288 (line[sizeof(name) - 1] == ' ' || \ in __res_vinit() 289 line[sizeof(name) - 1] == '\t')) in __res_vinit()
|
/bionic/libc/dns/net/ |
D | gethnamaddr.c | 1343 _yp_hostent(char *line, int af, struct getnamaddr *info) in _yp_hostent() argument 1348 char *p = line; in _yp_hostent() 1356 _DIAGASSERT(line != NULL); in _yp_hostent()
|