Lines Matching refs:amt
91 ssize_t amt = read(fd, &byte, 1); in read_varint() local
92 if (amt == 0) { in read_varint()
95 } else if (amt < 0) { in read_varint()
134 ssize_t amt = read(fd, buf+pos, size-pos); in read_sized_buffer() local
135 if (amt == 0) { in read_sized_buffer()
141 } else if (amt < 0) { in read_sized_buffer()
147 pos += amt; in read_sized_buffer()
185 ssize_t amt = size < scratchSize ? size : scratchSize; in skip_bytes() local
186 fprintf(stderr, "skipping %lu/%ld bytes\n", size, amt); in skip_bytes()
187 amt = read(fd, scratch, amt); in skip_bytes()
188 if (amt == 0) { in skip_bytes()
192 } else if (amt < 0) { in skip_bytes()
196 size -= amt; in skip_bytes()