Lines Matching refs:count
87 static ssize_t tail_read(int fd, char *buf, size_t count) in tail_read() argument
91 r = full_read(fd, buf, count); in tail_read()
116 unsigned count = 10; in tail_main() local
137 count = eat_num(argv[1]); in tail_main()
152 if (opt & 0x2) count = eat_num(str_c); // -c in tail_main()
153 if (opt & 0x4) count = eat_num(str_n); // -n in tail_main()
195 if (tailbufsize < count + BUFSIZ) { in tail_main()
196 tailbufsize = count + BUFSIZ; in tail_main()
232 if (count == 0) in tail_main()
234 current -= count; in tail_main()
238 bb_copyfd_size(fd, STDOUT_FILENO, count); in tail_main()
246 off = (count | 0xf); /* for small counts, be more paranoid */ in tail_main()
269 if (seen < count) { in tail_main()
272 nwrite -= (count - seen); in tail_main()
278 if (*s++ == '\n' && ++seen == count) { in tail_main()
286 } else if (count) { in tail_main()
289 if (taillen > (int)count) { in tail_main()
290 memmove(tailbuf, tailbuf + taillen - count, count); in tail_main()
291 taillen = count; in tail_main()
304 if (newlines_seen + newlines_in_buf < (int)count) { in tail_main()
311 k = newlines_seen + newlines_in_buf + extra - count; in tail_main()
321 newlines_seen = count - extra; in tail_main()