Searched defs:line (Results 1 - 25 of 30) sorted by last modified time

12

/system/vold/
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);;
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 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/core/cpio/
H A Dmkbootfs.c45 /* 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 Dbacktrace.c57 _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 Ddebuggerd.c169 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 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.
/system/core/fs_mgr/
H A Dfs_mgr.c171 /* 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 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/core/init/
H A Dparser.h28 int line; member in struct:parse_state
/system/core/libcorkscrew/
H A Dmap_info.c35 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 Dtest.c16 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 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/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/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/core/toolbox/
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) {
H A Dgetevent.c268 char line[2048]; local
282 while (fgets(line, sizeof(line), file)) {
284 fputs(line, stdout);
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 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 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...]
/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 Dutil.c183 * Opens a file and processes it. Each file is processed line-by-line
243 /* Process the file line-by-line */
279 * Processes a line comparing it with the specified patterns. Each pattern
294 /* Loop to process the whole line */
440 * Prints a matching line according to the command line options.
443 printline(struct str *line, int sep, regmatch_t *matches, int m) argument
450 fputs(line
[all...]
/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);

Completed in 193 milliseconds

12