/bionic/libc/bionic/ |
H A D | assert.cpp | 35 void __assert(const char* file, int line, const char* failed_expression) { argument 36 async_safe_fatal("%s:%d: assertion \"%s\" failed", file, line, failed_expression); 39 void __assert2(const char* file, int line, const char* function, const char* failed_expression) { argument 40 async_safe_fatal("%s:%d: %s: assertion \"%s\" failed", file, line, function, failed_expression);
|
H A D | error.cpp | 76 void error_at_line(int status, int error, const char* file, unsigned int line, const char* fmt, ...) { argument 80 if (last_line == line && last_file != NULL && strcmp(last_file, file) == 0) { 84 last_line = line; 88 fprintf(stderr, "%s:%d: ", file, line);
|
H A D | sysinfo.cpp | 68 char* line = nullptr; local 70 if (getline(&line, &len, fp) != -1) { 71 cpu_count = GetCpuCountFromString(line); 72 free(line);
|
H A D | grp_pwd_file.cpp | 72 // Returns a pointer to one past the end of line. 262 bool MmapFile::Find(Line* line, Predicate predicate) { argument 272 line_beginning = ParseLine(line_beginning, end, line->fields, line->kNumFields); 276 if (strncmp(line->fields[0], required_prefix_, strlen(required_prefix_)) != 0) { 278 CopyFieldToString(name, line->fields[0], sizeof(name)); 285 if (predicate(line)) return true; 292 bool MmapFile::FindById(uid_t uid, Line* line) { argument 293 return Find(line, [uid](const auto& line) { [all...] |
H A D | grp_pwd_file.h | 43 bool FindById(uid_t uid, Line* line); 45 bool FindByName(const char* name, Line* line); 61 bool Find(Line* line, Predicate predicate);
|
H A D | pthread_attr.cpp | 163 char line[BUFSIZ]; local 164 if (fgets(line, sizeof(line), fp) == nullptr) { 175 const char* end_of_comm = strrchr(line, ')'); 208 char line[BUFSIZ]; local 209 while (fgets(line, sizeof(line), fp) != NULL) { 211 if (sscanf(line, "%" SCNxPTR "-%" SCNxPTR, &lo, &hi) == 2) {
|
/bionic/libc/tools/ |
H A 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 [all...] |
H A D | generate-NOTICE.py | 93 for line in lines[start:end]: 94 line = line.replace("\t", " ") 95 line = line.replace("/* ", "") 96 line = re.sub("^ \* ", "", line) 97 line = line.replace("** ", "") 98 line [all...] |
H A D | symbols.py | 25 for line in f.read().splitlines(): 26 symbols.add(line) 32 # pylint: disable=line-too-long 45 for line in output.split('\n'): 46 if ' HIDDEN ' in line or ' UND ' in line: 48 m = r.match(line)
|
H A 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) 66 #print 'ignoring: ' % line
|
H A D | genversion-scripts.py | 56 for line in fin: 57 index = line.find("#") 59 tags = line[index+1:].split() 62 fout.write(line)
|
H A D | gensyscalls.py | 411 def parse_line(self, line): 412 """ parse a syscall spec line. 414 line processing, format is 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) [all...] |
/bionic/tests/ |
H A D | libgen_basename_test.cpp | 44 static void __TestGnuBasename(const char* in, const char* expected_out, int line) { argument 47 ASSERT_STREQ(expected_out, out) << "(" << line << "): " << in << std::endl; 48 ASSERT_EQ(0, errno) << "(" << line << "): " << in << std::endl; 51 static void __TestPosixBasename(const char* in, const char* expected_out, int line) { argument 55 ASSERT_STREQ(expected_out, out) << "(" << line << "): " << in << std::endl; 56 ASSERT_EQ(0, errno) << "(" << line << "): " << in << std::endl;
|
H A D | utils.h | 87 char line[BUFSIZ]; local 88 while (fgets(line, sizeof(line), fp.get()) != nullptr) { 93 if (sscanf(line, "%" SCNxPTR "-%" SCNxPTR " %4s %" SCNxPTR " %x:%x %lu %n", 110 record.pathname = line + path_offset;
|
/bionic/libc/kernel/tools/ |
H A D | kernel.py | 77 def checkInclude(self, line, from_file, kernel_root=None): 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): 304 line = string.strip(line) 307 if len(line) [all...] |
H A D | cpp.py | 161 # gives wrong result when dealing with single line range. 175 if self.start.line < other.line < self.end.line: 177 # same file, same line 178 elif self.start.line == other.line == self.end.line: 181 elif self.start.line == other.line [all...] |
H A D | utils.py | 46 self.line = "" 49 self.line += msg 53 return self.line
|
/bionic/benchmarks/ |
H A D | stdio_benchmark.cpp | 28 char line[256]; local 29 memset(line, 'x', sizeof(line)); 30 line[sizeof(line) - 1] = '\0'; 33 for (size_t i = 0; i < 4096; ++i) fputs(line, fp); 134 char* line = nullptr; local 136 while (getline(&line, &n, fp) != -1) { 138 free(line); 242 static int ParseMap(const char* line, cons argument [all...] |
/bionic/linker/ |
H A D | linker_config.cpp | 72 std::string line; local 73 while(NextLine(&line)) { 74 size_t found = line.find('#'); 75 line = android::base::Trim(line.substr(0, found)); 77 if (line.empty()) { 81 if (line[0] == '[' && line[line.size() - 1] == ']') { 82 *name = line 117 NextLine(std::string* line) argument [all...] |
/bionic/tools/versioner/src/ |
H A D | Preprocessor.cpp | 115 std::string line; local 117 while (std::getline(is, line)) { 118 result.push_back(std::move(line)); 131 for (const std::string& line : lines) { 132 os << line << "\n"; local 252 unsigned current_line = start.line; 259 .line = current_line, 270 errx(1, "failed to find semicolon starting from %u:%u", start.line, start.column); 298 ++current_location.line; 303 if (current_location.column == file_lines[current_location.line 314 const std::string& line = file_lines[current_location.line - 1]; local [all...] |
H A D | DeclarationDatabase.h | 100 unsigned line; member in struct:FileLocation 104 return std::tie(line, column) < std::tie(rhs.line, rhs.column); 108 return std::tie(line, column) == std::tie(rhs.line, rhs.column); 148 location.start.line, location.start.column);
|
/bionic/tools/versioner/ |
H A D | run_tests.py | 18 return "\n".join([prefix + line for line in text.split("\n")])
|
/bionic/libc/malloc_debug/ |
H A D | MapData.cpp | 43 static MapEntry* parse_line(char* line) { argument 49 if (sscanf(line, "%" PRIxPTR "-%" PRIxPTR " %4s %" PRIxPTR " %*x:%*x %*d %n", &start, &end, 54 const char* name = line + name_pos;
|
H A D | RecordData.cpp | 141 std::string line = entries_[i]->GetString(); local 142 ssize_t bytes = write(dump_fd, line.c_str(), line.length()); 143 if (bytes == -1 || static_cast<size_t>(bytes) != line.length()) {
|
/bionic/libc/kernel/uapi/linux/ |
H A D | serial.h | 25 int line; member in struct:serial_struct
|