Searched defs:line (Results 1 - 6 of 6) sorted by path

/bootable/recovery/
H A Drecovery.cpp90 * /cache/recovery/command - INPUT - command line for tool, one arg per line
180 // command line args come from, in decreasing precedence:
181 // - the actual command line
182 // - the bootloader control block (one per line, after "recovery")
183 // - the contents of COMMAND_FILE (one per line)
682 char line[1024]; local
685 while(fgets(line, sizeof(line), fp) != NULL) {
686 ui->Print("%s", line);
[all...]
/bootable/recovery/tools/ota/
H A Dadd-property-tag.c30 // Return nonzero if the tag should be added to this line.
31 int should_tag(const char *line, const char *propname) { argument
32 const char *prop = strstr(line, propname);
37 for (ptr = line; ptr < prop && isspace(*ptr); ++ptr) ;
38 if (ptr != prop) return 0; // Must be at the beginning of the line
44 // Remove existing tags from the line, return the following number (if any)
45 int remove_tag(char *line, const char *tag) { argument
46 char *pos = strstr(line, tag);
55 // Write line to output with the tag added, adding a number (if >0)
56 void write_tagged(FILE *out, const char *line, cons argument
109 char line[4096]; local
[all...]
H A Dcheck-lost+found.c126 char *saveptr, *line; local
128 for (line = strtok_r(dmesg, "\n", &saveptr); line != NULL;
129 line = strtok_r(NULL, "\n", &saveptr)) {
130 if (strstr(line, "yaffs: dev is")) in_yaffs = 1;
133 strstr(line, "yaffs") ||
134 strstr(line, "mtd") ||
135 strstr(line, "msm_nand")) {
136 fprintf(out, "%s\n", line);
139 if (strstr(line, "yaffs_read_supe
[all...]
/bootable/recovery/updater/
H A Dblockimg.c365 char* line; local
380 line = strtok_r(transfer_list, "\n", &linesave);
382 // first line in transfer list is the version number; currently
384 if (strcmp(line, "1") != 0) {
385 ErrorAbort(state, "unexpected transfer list version [%s]\n", line);
389 // second line in transfer list is the total number of blocks we
391 line = strtok_r(NULL, "\n", &linesave);
392 int total_blocks = strtol(line, NULL, 0);
401 for (line = strtok_r(NULL, "\n", &linesave); line;
[all...]
H A Dinstall.c56 char* line = strtok(buffer, "\n"); local
58 while (line) {
59 fprintf(ui->cmd_pipe, "ui_print %s\n", line);
60 line = strtok(NULL, "\n");
937 // per line. # comment lines,blank lines, lines without '=' ignored),
986 char* line = strtok(buffer, "\n"); local
988 // skip whitespace at start of line
989 while (*line && isspace(*line)) ++line;
[all...]
H A Dupdater.c147 char* line = strtok(state.errmsg, "\n"); local
148 while (line) {
149 fprintf(cmd_pipe, "ui_print %s\n", line);
150 line = strtok(NULL, "\n");

Completed in 75 milliseconds