/system/extras/latencytop/ |
H A D | latencytop.c | 327 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);
|
/system/core/init/ |
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 | 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++;
|
/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/toolbox/ |
H A D | top.c | 367 char line[MAX_LINE]; local 369 line[0] = '\0'; 372 fgets(line, MAX_LINE, file); 374 if (strlen(line) > 0) { 375 strncpy(proc->name, line, PROC_NAME_LEN); 394 char line[MAX_LINE]; local 399 while (fgets(line, MAX_LINE, file)) { 400 sscanf(line, "Uid: %u", &uid); 401 sscanf(line, "Gid: %u", &gid);
|
H A D | getevent.c | 268 char line[2048]; local 282 while (fgets(line, sizeof(line), file)) { 284 fputs(line, stdout);
|
/system/core/toolbox/grep/ |
H A D | grep.c | 73 /* 6*/ "\t[--context[=num]] [--directories=action] [--label] [--line-buffered]\n", 97 /* Command-line flags */ 109 bool nflag; /* -n: show line numbers in front of matching lines */ 115 bool xflag; /* -x: pattern must match entire line */ 116 bool lbflag; /* --line-buffered */ 177 {"line-buffered", no_argument, NULL, LINEBUF_OPT}, 205 {"line-number", no_argument, NULL, 'n'}, 216 {"line-regexp", no_argument, NULL, 'x'}, 289 char *line; local 295 line [all...] |
H A D | grep.h | 120 /* Command line flags */ 151 void printline(struct str *line, int sep, regmatch_t *matches, int m);
|
/system/vold/ |
H A D | Volume.cpp | 271 char line[1024]; local 278 while(fgets(line, sizeof(line), fp)) { 279 line[strlen(line)-1] = '\0'; 280 sscanf(line, "%255s %255s %255s\n", device, mount_path, rest);
|
H A D | VolumeManager.cpp | 1121 char line[1024]; local 1135 while(fgets(line, sizeof(line), fp)) { 1136 line[strlen(line)-1] = '\0'; 1142 sscanf(line, "%255s %255s %255s\n", device, mount_path, rest); 1246 char line[16]; local 1247 if (fgets(line, sizeof(line), fp) && sscanf(line, " 1457 char line[1024]; local [all...] |
H A D | CommandListener.cpp | 98 char line[1024]; local 99 while (fgets(line, sizeof(line), fp)) { 100 line[strlen(line)-1] = '\0'; 101 cli->sendMsg(0, line, false);;
|
/system/core/sh/ |
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 | 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/extras/libpagemap/ |
H A D | pm_process.c | 225 char line[MAX_LINE], name[MAX_LINE], perms[MAX_PERMS]; local 247 while (fgets(line, MAX_LINE, maps_f)) { 264 sscanf(line, "%lx-%lx %s %lx %*s %*d %" S(MAX_LINE) "s",
|
/system/extras/cpustats/ |
H A D | cpustats.c | 188 char line[MAX_BUF_SIZE]; local 193 if (!fgets(line, MAX_BUF_SIZE, file)) die("Could not get %s contents\n", filename); 196 if (strcmp(line, "0\n") == 0) { 200 if (1 == sscanf(line, "0-%d\n", &cpu_count)) { 204 die("Unexpected input in file %s (%s).\n", filename, 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...] |
/system/core/debuggerd/ |
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.
|