Home | History | Annotate | Download | only in posix

Lines Matching defs:bytes

21     -c	Output the last NUMBER bytes, +NUMBER counts from start
74 // Note: bytes and lines are negative here.
75 static int try_lseek(int fd, long bytes, long lines)
85 if (bytes) {
86 if (lseek(fd, bytes, SEEK_END)<0) lseek(fd, 0, SEEK_SET);
93 bytes = pos;
129 lseek(fd, bytes, SEEK_SET);
136 long bytes = TT.c, lines = TT.n;
154 if (bytes<0 || lines<0) {
159 if (CFG_TAIL_SEEK && try_lseek(fd, bytes, lines)) return;
167 // If tracing bytes, add until we have enough, discarding overflow.
169 bytes += new->len;
170 if (bytes > 0) {
171 while (list->len <= bytes) {
172 bytes -= list->len;
175 list->data += bytes;
176 list->len -= bytes;
177 bytes = 0;
213 while (bytes > 1 || lines > 1) {
214 bytes--;