Lines Matching defs:bytes
21 -c output the last NUMBER bytes, +NUMBER counts from start
38 long bytes;
75 // Note: bytes and lines are negative here.
76 static int try_lseek(int fd, long bytes, long lines)
86 if (bytes) {
87 if (lseek(fd, bytes, SEEK_END)<0) lseek(fd, 0, SEEK_SET);
94 bytes = pos;
130 lseek(fd, bytes, SEEK_SET);
137 long bytes = TT.bytes, lines = TT.lines;
155 if (bytes<0 || lines<0) {
160 if (CFG_TAIL_SEEK && try_lseek(fd, bytes, lines)) return;
168 // If tracing bytes, add until we have enough, discarding overflow.
169 if (TT.bytes) {
170 bytes += new->len;
171 if (bytes > 0) {
172 while (list->len <= bytes) {
173 bytes -= list->len;
176 list->data += bytes;
177 list->len -= bytes;
178 bytes = 0;
214 while (bytes > 1 || lines > 1) {
215 bytes--;