Lines Matching defs:headerlen
72 int headerlen = read(fd, header, sizeof(header));
73 if (headerlen <= 0) die("error reading %s header", argv[2]);
85 } else if (checklen == headerlen && !memcmp(header, check, headerlen)) {
99 memset(buf, 0, headerlen);
100 int wrote = mtd_write_data(out, buf, headerlen);
101 if (wrote != headerlen) die("error writing %s", argv[1]);
117 wrote = mtd_write_data(out, header, headerlen);
118 if (wrote != headerlen) die("error re-writing %s", argv[1]);
125 if (lseek(fd, headerlen, SEEK_SET) != headerlen)
128 int left = block_size - headerlen;