Lines Matching refs:bytes
21 -c Output the last NUMBER bytes, +NUMBER counts from start
67 // Note: bytes and lines are negative here.
68 static int try_lseek(int fd, long bytes, long lines)
78 if (bytes) {
79 if (lseek(fd, bytes, SEEK_END)<0) lseek(fd, 0, SEEK_SET);
86 bytes = pos;
122 lseek(fd, bytes, SEEK_SET);
129 long bytes = TT.c, lines = TT.n;
145 if (bytes<0 || lines<0) {
150 if (try_lseek(fd, bytes, lines)) return;
158 // If tracing bytes, add until we have enough, discarding overflow.
160 bytes += new->len;
161 if (bytes > 0) {
162 while (list->len <= bytes) {
163 bytes -= list->len;
166 list->data += bytes;
167 list->len -= bytes;
168 bytes = 0;
204 while (bytes > 1 || lines > 1) {
205 bytes--;