Home
last modified time | relevance | path

Searched refs:n_bytes (Results 1 – 8 of 8) sorted by relevance

/coreutils/src/
Dcut.c306 size_t n_bytes; in cut_fields() local
319 n_bytes = len; in cut_fields()
320 affirm (n_bytes != 0); in cut_fields()
327 if (to_uchar (field_1_buffer[n_bytes - 1]) != delim) in cut_fields()
335 if (fwrite (field_1_buffer, sizeof (char), n_bytes, stdout) in cut_fields()
336 != n_bytes) in cut_fields()
339 if (field_1_buffer[n_bytes - 1] != line_delim) in cut_fields()
352 if (fwrite (field_1_buffer, sizeof (char), n_bytes - 1, stdout) in cut_fields()
353 != n_bytes - 1) in cut_fields()
Dtail.c417 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()
[all …]
Dhead.c179 xwrite_stdout (char const *buffer, size_t n_bytes) in xwrite_stdout() argument
181 if (n_bytes > 0 && fwrite (buffer, 1, n_bytes, stdout) < n_bytes) in xwrite_stdout()
194 copy_fd (int src_fd, uintmax_t n_bytes) in copy_fd() argument
200 while (0 < n_bytes) in copy_fd()
202 size_t n_to_read = MIN (buf_size, n_bytes); in copy_fd()
207 n_bytes -= n_read; in copy_fd()
209 if (n_read == 0 && n_bytes != 0) in copy_fd()
Dsplit.c649 bytes_split (intmax_t n_bytes, intmax_t rem_bytes, in bytes_split() argument
656 intmax_t to_write = n_bytes + (0 < rem_bytes); in bytes_split()
673 to_write = n_bytes + (opened + 1 < rem_bytes); in bytes_split()
698 to_write = n_bytes + (opened < rem_bytes); in bytes_split()
773 line_bytes_split (intmax_t n_bytes, char *buf, idx_t bufsize) in line_bytes_split() argument
797 if (n_bytes - n_out - n_hold <= n_left) in line_bytes_split()
800 split_rest = n_bytes - n_out - n_hold; in line_bytes_split()
Dod.c488 dump_hexl_mode_trailer (size_t n_bytes, char const *block) in PRINT_TYPE()
491 for (size_t i = n_bytes; i > 0; i--) in PRINT_TYPE()
1176 write_block (uintmax_t current_offset, size_t n_bytes, in write_block() argument
1185 && !first && n_bytes == bytes_per_block in write_block()
1206 int blank_fields = (bytes_per_block - n_bytes) / datum_width; in write_block()
1221 dump_hexl_mode_trailer (n_bytes, curr_block); in write_block()
Ddu.c395 print_only_size (uintmax_t n_bytes) in print_only_size() argument
398 fputs ((n_bytes == UINTMAX_MAX in print_only_size()
400 : human_readable (n_bytes, buf, human_output_opts, in print_only_size()
Dcopy.c502 write_zeros (int fd, off_t n_bytes) in write_zeros() argument
521 while (n_bytes) in write_zeros()
523 size_t n = MIN (nz, n_bytes); in write_zeros()
526 n_bytes -= n; in write_zeros()
Dsort.c2863 size_t n_bytes = line->length; in write_line() local
2864 char *ebuf = buf + n_bytes; in write_line()
2887 if (fwrite (buf, 1, n_bytes, fp) != n_bytes) in write_line()