Lines Matching defs:len
90 readN(int fd, char *buf, size_t len)
100 ssize_t ret = read(fd, buf + total, len - total);
114 } while (total != len);
132 size_t len = 64;
145 len += stat.st_size;
147 char *buf = malloc(len);
155 size_t offset = 0, remaining = len - 1;
157 char *newbuf = realloc(buf, 2 * len);
166 len *= 2;
168 remaining = len - offset - 1;
177 len = offset + 1;
178 char *newbuf = realloc(buf, len);