/system/core/cpio/ |
H A D | mkbootfs.c | 45 /* Each line in the canned file should be a path plus three ints (uid, 286 char line[CANNED_LINE_LENGTH]; local 290 while (fgets(line, CANNED_LINE_LENGTH, f) != NULL) { 291 if (!line[0]) break; 300 if (isspace(line[0])) { 302 cc->uid = atoi(strtok(line, " \n")); 304 cc->name = strdup(strtok(line, " \n"));
|
/system/core/debuggerd/ |
H A D | backtrace.c | 57 _LOG(log, false, "Cmd line: %s\n", procname); 101 char line[MAX_BACKTRACE_LINE_LENGTH]; local 103 line, MAX_BACKTRACE_LINE_LENGTH); 104 _LOG(log, false, " %s\n", line);
|
H A D | debuggerd.c | 169 char line[1024]; local 170 while (fgets(line, sizeof(line), fp)) { 171 size_t len = strlen(line); 172 if (len > 6 && !memcmp(line, "Tgid:\t", 6)) { 173 *out_pid = atoi(line + 6); 175 } else if (len > 5 && !memcmp(line, "Uid:\t", 5)) { 176 *out_uid = atoi(line + 5); 178 } else if (len > 5 && !memcmp(line, "Gid:\t", 5)) { 179 *out_gid = atoi(line [all...] |
H A D | tombstone.c | 212 char line[MAX_BACKTRACE_LINE_LENGTH]; variable 214 line, MAX_BACKTRACE_LINE_LENGTH); 215 _LOG(log, !at_fault, " %s\n", line); 528 * TODO: scan for line breaks ('\n') and display each text line 529 * on a separate line, prefixed with the header, like logcat does.
|
/system/core/fs_mgr/ |
H A D | fs_mgr.c | 171 /* Read a line of text till the next newline character. 172 * If no newline is found before the buffer is full, continue reading till a new line is seen, 215 /* The line is too long. Read till a newline or EOF. 235 char line[256]; local 250 while (getline(line, sizeof(line), fstab_file)) { 252 len = strlen(line); 253 if (line[len - 1] == '\n') { 254 line[len - 1] = '\0'; 257 p = line; [all...] |
/system/core/gpttool/ |
H A D | gpttool.c | 322 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/core/include/ctest/ |
H A D | ctest.h | 64 void assertTrueWithSource(int value, const char* file, int line, char* message);
|
/system/core/init/ |
H A D | init_parser.c | 305 ERROR("error while handling import on line '%d' in '%s'\n", 306 state->line, state->filename); 353 state.line = 0; 367 state.line++;
|
H A D | parser.c | 57 snprintf(buf, 128, "%s: %d: ", state->filename, state->line); 161 /* \ <cr> <lf> -> line continuation */ 167 /* \ <lf> -> line continuation */ 168 state->line++;
|
H A D | parser.h | 28 int line; member in struct:parse_state
|
H A D | ueventd_parser.c | 36 state.line = 1;
|
/system/core/libcorkscrew/ |
H A D | map_info.c | 35 static map_info_t* parse_maps_line(const char* line) argument 41 if (sscanf(line, "%lx-%lx %4s %*x %*x:%*x %*d%n", &start, &end, 46 while (isspace(line[name_pos])) { 49 const char* name = line + name_pos; 73 char line[1024]; local 80 while(fgets(line, sizeof(line), fp)) { 81 map_info_t* mi = parse_maps_line(line);
|
H A D | test.c | 16 char line[MAX_BACKTRACE_LINE_LENGTH]; local 18 line, MAX_BACKTRACE_LINE_LENGTH); 21 fprintf(stderr, " %s\n", line); 35 fprintf(stderr, " %s (%s%+d)\n", line, symbol->name, offset); 37 fprintf(stderr, " %s (\?\?\?)\n", line);
|
/system/core/libctest/ |
H A D | ctest.c | 150 void assertTrueWithSource(int value, const char* file, int line, char* message) { argument 154 fprintf(suite->out, "Assertion failed: [%s:%d] %s: %s\n", file, line,
|
/system/core/liblinenoise/ |
H A D | linenoise.c | 1 /* linenoise.c -- guerrilla line editing library against the idea that a 2 * line editing lib needs to be 20,000 lines of C code. 62 * Effect: if n is 0 or missing, clear from cursor to end of line 63 * Effect: if n is 1, clear from beginning of line to cursor 64 * Effect: if n is 2, clear entire line 94 int linenoiseHistoryAdd(const char *line); 237 case 10: /* line feed. */ 325 /* Avoid a full update of the line in the 341 case 21: /* Ctrl+u, delete the whole line. */ 346 case 11: /* Ctrl+k, delete from current to end of line 411 linenoiseHistoryAdd(const char *line) argument [all...] |
H A D | linenoise.h | 1 /* 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/core/sh/ |
H A D | arith.c | 113 #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 D | arith_lex.c | 0 #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...] |
H A D | input.c | 90 int linno; /* current line */ 92 int nleft; /* number of chars left in this line */ 101 int plinno = 1; /* input line number */ 140 * Read a line from the script. 144 pfgets(char *line, int len) argument 146 char *p = line; 153 if (p == line) 162 return line;
|
H A D | mkbuiltins | 82 while read line 84 set -- $line 88 echo $line >&3 89 echo $line >&4 93 l1="${line###}" 94 [ "$l1" != "$line" ] && continue
|
H A D | mkinit.sh | 51 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 D | mknodes.sh | 47 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 D | parser.c | 92 int needprompt; /* true if interactive and at start of line */ 101 int startlinno; /* line # where last token started */ 124 * valid parse tree indicating a blank line.) 781 * In all cases, the variable startlinno is set to the number of the line 913 char line[EOFMARKLEN + 1]; local 951 loop: { /* for each line, until end of word */ 963 for (;;) { /* until end of line or end of word */ 1160 * is called, c is set to the first character of the next input line. If 1171 if (pfgets(line, sizeof line) ! [all...] |
/system/core/toolbox/ |
H A D | cat.c | 55 int ch, gobble, line, prev; local 58 line = gobble = 0; 71 "%6d\t", ++line) < 0) { 84 if (fprintf(stdout, "%6d\t", ++line) < 0) {
|
H A D | getevent.c | 268 char line[2048]; local 282 while (fgets(line, sizeof(line), file)) { 284 fputs(line, stdout);
|