Searched refs:line (Results 1 - 25 of 43) sorted by relevance

12

/bionic/libc/bionic/
H A Dassert.cpp35 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 Derror.cpp76 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 Dsysinfo.cpp68 char* line = nullptr; local
70 if (getline(&line, &len, fp) != -1) {
71 cpu_count = GetCpuCountFromString(line);
72 free(line);
H A Dgrp_pwd_file.cpp72 // 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 Dgrp_pwd_file.h43 bool FindById(uid_t uid, Line* line);
45 bool FindByName(const char* name, Line* line);
61 bool Find(Line* line, Predicate predicate);
H A Dpthread_attr.cpp163 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 Dgenserv.py43 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 Dgenerate-NOTICE.py93 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 Dsymbols.py25 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 Dcheck-symbols.py33 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 Dgenversion-scripts.py56 for line in fin:
57 index = line.find("#")
59 tags = line[index+1:].split()
62 fout.write(line)
H A Dgensyscalls.py411 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 Dlibgen_basename_test.cpp44 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 Dutils.h87 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 Dkernel.py77 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 Dcpp.py161 # 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 Dutils.py46 self.line = ""
49 self.line += msg
53 return self.line
/bionic/benchmarks/
H A Dstdio_benchmark.cpp28 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 Dlinker_config.cpp72 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 DPreprocessor.cpp115 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 DDeclarationDatabase.h100 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 Drun_tests.py18 return "\n".join([prefix + line for line in text.split("\n")])
/bionic/libc/malloc_debug/
H A DMapData.cpp43 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 DRecordData.cpp141 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 Dserial.h25 int line; member in struct:serial_struct

Completed in 2500 milliseconds

12