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

123

/system/core/sh/
H A Dmkinit.sh51 while IFS=; read -r line; do
52 [ "$line" = x ]
53 case "$line " in
59 set -- $line
69 read -r line
70 decles="${decles}${line}${nl}"
71 [ "$line" != "};" ]
80 def=${line#MKINIT}
91 set -- $line
95 [ "$line"
[all...]
H A Dmkbuiltins82 while read line
84 set -- $line
88 echo $line >&3
89 echo $line >&4
93 l1="${line###}"
94 [ "$l1" != "$line" ] && continue
H A Dmknodes.sh47 while IFS=; read -r line; do
48 line="${line%%#*}"
50 set -- $line
53 case "$line" in
82 eval line=\"\$field_${struct}_$field\"
84 [ -n "$line" ]
87 set -- $line
130 while IFS=; read -r line; do
132 set -- $line
[all...]
H A Darith.c113 #line 1 "arith.y"
201 #line 202 "arith.c"
384 /* YYRLINE[YYN] -- source line where rule number YYN was defined. */
680 YYFPRINTF (stderr, "Reducing stack by rule %d (line %u), ",
1133 Otherwise, the following line sets YYVAL to garbage.
1145 #line 76 "arith.y"
1152 #line 82 "arith.y"
1157 #line 83 "arith.y"
1162 #line 84 "arith.y"
1167 #line 8
[all...]
H A Darith_lex.c0 #line 2 "arith_lex.c"
3 #line 4 "arith_lex.c"
211 /* Whether we're considered to be at the beginning of a line.
217 int yy_bs_lineno; /**< The line count. */
468 #line 1 "arith_lex.l"
469 #line 2 "arith_lex.l"
525 #line 526 "arith_lex.c"
676 #line 60 "arith_lex.l"
678 #line 679 "arith_lex.c"
764 #line 6
[all...]
/system/core/liblinenoise/
H A Dlinenoise.h1 /* linenoise.h -- guerrilla line editing library against the idea that a
2 * line editing lib needs to be 20,000 lines of C code.
38 int linenoiseHistoryAdd(const char *line);
/system/media/wilhelm/src/
H A Dassert.c22 void __assert(const char *file, int line, const char *failedexpr) argument
24 LOG_ALWAYS_FATAL("assertion \"%s\" failed: file \"%s\", line %d", failedexpr, file, line);
28 void __assert2(const char *file, int line, const char *func, const char *failedexpr) argument
30 LOG_ALWAYS_FATAL("assertion \"%s\" failed: file \"%s\", line %d, function \"%s\"",
31 failedexpr, file, line, func);
H A Dlocks.c34 void object_lock_exclusive_(IObject *thiz, const char *file, int line) argument
54 SL_LOGE("%s:%d: recursive lock detected", file, line);
57 SL_LOGE("%s:%d: pthread_mutex_lock_timeout_np returned %d", file, line, ok);
74 " (tid %d) at %s:%d\n", file, line, *(void **)&me, gettid(), thiz,
94 " %p (tid %d) at %s:%d\n", file, line, *(void **)&me, gettid(), thiz,
98 " state by pthread %p (tid %d) at %s:%d\n", file, line, *(void **)&me, gettid(),
105 thiz->mLine = line;
122 void object_unlock_exclusive_(IObject *thiz, const char *file, int line) argument
129 thiz->mLine = line;
150 const char *file, int line)
149 object_unlock_exclusive_attributes_(IObject *thiz, unsigned attributes, const char *file, int line) argument
275 object_cond_wait_(IObject *thiz, const char *file, int line) argument
[all...]
H A Dlocks.h20 extern void object_lock_exclusive_(IObject *thiz, const char *file, int line);
21 extern void object_unlock_exclusive_(IObject *thiz, const char *file, int line);
23 const char *file, int line);
24 extern void object_cond_wait_(IObject *thiz, const char *file, int line);
/system/extras/tests/sdcard/
H A Dplot_sdcard.py50 def __init__(self, line):
52 'duration ([0-9.]+). Samples: ([0-9]+)'), line)
97 def Parse(self, line):
98 if line.startswith('# Kernel:'):
99 self.kernel = re.search('Linux version ([0-9.]+-[^ ]+)', line).group(1)
100 elif line.startswith('# Command:'):
101 self.command_line = re.search('# Command: [/\w_]+ (.*)', line).group(1)
105 elif line.startswith('# Iterations'):
106 self.iterations = int(re.search('# Iterations: ([0-9]+)', line).group(1))
107 elif line
[all...]
/system/extras/tests/lib/testUtil/
H A DtestUtil.c147 char line[MAXSTR]; local
151 vsnprintf(line, sizeof(line), fmt, args);
153 LOG(LOG_ERROR, logCatTag, "%s", line);
155 LOG(LOG_INFO, logCatTag, "%s", line);
311 * Each line of output is indented by a number of spaces that
323 char line[MAXSTR]; local
326 char *linep = line;
330 if (linep != line) {
331 testPrintE("%s", line);
[all...]
/system/core/init/
H A Dparser.h28 int line; member in struct:parse_state
H A Dueventd_parser.c36 state.line = 1;
H A Dparser.c57 snprintf(buf, 128, "%s: %d: ", state->filename, state->line);
161 /* \ <cr> <lf> -> line continuation */
167 /* \ <lf> -> line continuation */
168 state->line++;
/system/core/nexus/
H A DController.cpp103 char line[255]; local
104 while(fgets(line, sizeof(line), fp)) {
105 char *endTag = strchr(line, ' ');
108 LOGW("Unable to find tag for line '%s'", line);
111 if (!strncmp(line, modtag, (endTag - line))) {
H A DSupplicantStatus.cpp53 char *line; local
54 while((line = strsep(&next, "\n"))) {
55 char *line_next = line;
/system/core/toolbox/
H A Dschedtop.c79 static int read_line(char *line, size_t line_size) argument
83 fd = open(line, O_RDONLY);
86 len = read(fd, line, line_size - 1);
90 line[len] = '\0';
96 char line[1024]; local
108 sprintf(line, "/proc/%d/task/%d/schedstat", pid, tid);
110 sprintf(line, "/proc/%d/schedstat", pid);
111 if (read_line(line, sizeof(line)))
113 if(sscanf(line, "
[all...]
H A Dvmstat.c62 char line[MAX_LINE]; variable
165 while (fgets(line, MAX_LINE, f)) {
166 sscanf(line, "MemFree: %ld kB", &s->mem_free);
167 sscanf(line, "AnonPages: %ld kB", &s->mem_anon);
168 sscanf(line, "Mapped: %ld kB", &s->mem_mapped);
169 sscanf(line, "Slab: %ld kB", &s->mem_slab);
183 while (fgets(line, MAX_LINE, f)) {
184 if (!strncmp(line, "cpu ", 4)) {
185 sscanf(line, "cpu %ld %ld %ld %ld %ld %ld %ld",
189 sscanf(line, "int
[all...]
H A Dcat.c55 int ch, gobble, line, prev; local
58 line = gobble = 0;
71 "%6d\t", ++line) < 0) {
84 if (fprintf(stdout, "%6d\t", ++line) < 0) {
/system/vold/
H A Dmain.cpp164 char line[255]; local
170 while(fgets(line, sizeof(line), fp)) {
177 line[strlen(line)-1] = '\0';
179 if (line[0] == '#' || line[0] == '\0')
182 if (!(type = strtok_r(line, delim, &save_ptr))) {
247 SLOGE("Syntax error on config line %d", n);
/system/extras/showmap/
H A Dshowmap.c40 static int parse_header(const char* line, const mapinfo* prev, mapinfo** mi) { argument
47 if (sscanf(line, "%lx-%lx %*s %*x %*x:%*x %*d%n", &start, &end, &name_pos) != 2) {
52 while (isspace(line[name_pos])) {
56 if (line[name_pos]) {
57 strlcpy(name, line + name_pos, sizeof(name));
89 static int parse_field(mapinfo* mi, const char* line) { argument
93 if (sscanf(line, "%63s %d kB", field, &size) != 2) {
167 char line[1024]; local
179 while (fgets(line, sizeof(line), f
[all...]
/system/core/include/ctest/
H A Dctest.h64 void assertTrueWithSource(int value, const char* file, int line, char* message);
/system/extras/showslab/
H A Dshowslab.c13 #define SLABINFO_LINE_LEN 512 /* size of longest line */
18 /* object representing a slab cache (each line of slabinfo) */
64 char line[SLABINFO_LINE_LEN]; local
73 if (!fgets(line, SLABINFO_LINE_LEN, slabfile)) {
78 if (sscanf(line, "slabinfo - version: %u.%u", &major, &minor) != 2) {
90 while (fgets(line, SLABINFO_LINE_LEN, slabfile)) {
94 if (line[0] == '#')
106 ret = sscanf(line, "%" STRINGIFY(SLABINFO_NAME_LEN) "s"
215 * Sort Routines. Each of these should be associated with a command-line
/system/core/gpttool/
H A Dgpttool.c322 char line[256], *p; local
329 while (fgets(line, sizeof(line), f)) {
330 p = line + strlen(line);
331 while (p > line) {
337 p = line;
/system/extras/latencytop/
H A Dlatencytop.c327 char line[MAX_LINE]; local
333 if (!fgets(line, MAX_LINE, f)) {
338 if (strcmp(line, EXPECTED_VERSION) != 0) {
340 fprintf(stderr, "But got version: %s", line);
344 while (fgets(line, MAX_LINE, f)) {
345 sscanf(line, "%ld %ld %ld %s", &count, &total, &max, reason);

Completed in 253 milliseconds

123