Searched refs:line (Results 26 - 42 of 42) sorted by relevance

12

/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);
/system/core/init/
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++;
H A Dinit_parser.c305 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 Dctest.c150 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 Dtop.c367 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 Dgetevent.c268 char line[2048]; local
282 while (fgets(line, sizeof(line), file)) {
284 fputs(line, stdout);
/system/core/toolbox/grep/
H A Dgrep.c73 /* 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 Dgrep.h120 /* Command line flags */
151 void printline(struct str *line, int sep, regmatch_t *matches, int m);
/system/vold/
H A DVolume.cpp271 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 DVolumeManager.cpp1121 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 DCommandListener.cpp98 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 Dinput.c90 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 Dparser.c92 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 Dpm_process.c225 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 Dcpustats.c188 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 Dlinenoise.c1 /* 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 Dtombstone.c212 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.

Completed in 73 milliseconds

12