Lines Matching refs:n_bytes

417 xwrite_stdout (char const *buffer, size_t n_bytes)  in xwrite_stdout()  argument
419 if (n_bytes > 0 && fwrite (buffer, 1, n_bytes, stdout) < n_bytes) in xwrite_stdout()
434 uintmax_t n_bytes) in dump_remainder() argument
437 uintmax_t n_remaining = n_bytes; in dump_remainder()
461 if (n_bytes != COPY_TO_EOF) in dump_remainder()
464 if (n_remaining == 0 || n_bytes == COPY_A_BUFFER) in dump_remainder()
743 pipe_bytes (char const *pretty_filename, int fd, uintmax_t n_bytes, in pipe_bytes() argument
791 if (total_bytes - first->nbytes > n_bytes) in pipe_bytes()
815 for (tmp = first; total_bytes - tmp->nbytes > n_bytes; tmp = tmp->next) in pipe_bytes()
820 if (total_bytes > n_bytes) in pipe_bytes()
821 i = total_bytes - n_bytes; in pipe_bytes()
844 start_bytes (char const *pretty_filename, int fd, uintmax_t n_bytes, in start_bytes() argument
849 while (0 < n_bytes) in start_bytes()
860 if (bytes_read <= n_bytes) in start_bytes()
861 n_bytes -= bytes_read; in start_bytes()
864 size_t n_remaining = bytes_read - n_bytes; in start_bytes()
866 xwrite_stdout (&buffer[n_bytes], n_remaining); in start_bytes()
1823 tail_bytes (char const *pretty_filename, int fd, uintmax_t n_bytes, in tail_bytes() argument
1836 if (! presume_input_pipe && n_bytes <= OFF_T_MAX in tail_bytes()
1838 && xlseek (fd, n_bytes, SEEK_CUR, pretty_filename) >= 0) in tail_bytes()
1839 || lseek (fd, n_bytes, SEEK_CUR) != -1)) in tail_bytes()
1840 *read_pos += n_bytes; in tail_bytes()
1843 int t = start_bytes (pretty_filename, fd, n_bytes, read_pos); in tail_bytes()
1847 n_bytes = COPY_TO_EOF; in tail_bytes()
1854 if (! presume_input_pipe && n_bytes <= OFF_T_MAX) in tail_bytes()
1858 else if ((current_pos = lseek (fd, -n_bytes, SEEK_END)) != -1) in tail_bytes()
1859 end_pos = current_pos + n_bytes; in tail_bytes()
1862 return pipe_bytes (pretty_filename, fd, n_bytes, read_pos); in tail_bytes()
1869 if (n_bytes < bytes_remaining) in tail_bytes()
1871 current_pos = end_pos - n_bytes; in tail_bytes()
1878 *read_pos += dump_remainder (false, pretty_filename, fd, n_bytes); in tail_bytes()