Lines Matching defs:len
106 int len;
107 while ((len = read(fd, buf, sizeof(buf))) > 0) {
108 wrote = mtd_write_data(out, buf, len);
109 if (wrote != len) die("error writing %s", argv[1]);
111 if (len < 0) die("error reading %s", argv[2]);
134 len = read(fd, buf, left > (int)sizeof(buf) ? (int)sizeof(buf) : left);
135 if (len <= 0) die("error reading %s", argv[2]);
136 if (mtd_write_data(out, buf, len) != len)
138 left -= len;