Home
last modified time | relevance | path

Searched refs:headerlen (Results 1 – 1 of 1) sorted by relevance

/bootable/recovery/mtdutils/
Dflash_image.c75 int headerlen = TEMP_FAILURE_RETRY(read(fd, header, sizeof(header))); in main() local
76 if (headerlen <= 0) die("error reading %s header", argv[2]); in main()
88 } else if (checklen == headerlen && !memcmp(header, check, headerlen)) { in main()
102 memset(buf, 0, headerlen); in main()
103 int wrote = mtd_write_data(out, buf, headerlen); in main()
104 if (wrote != headerlen) die("error writing %s", argv[1]); in main()
120 wrote = mtd_write_data(out, header, headerlen); in main()
121 if (wrote != headerlen) die("error re-writing %s", argv[1]); in main()
128 if (TEMP_FAILURE_RETRY(lseek(fd, headerlen, SEEK_SET)) != headerlen) in main()
131 int left = block_size - headerlen; in main()