Searched refs:current_pos (Results 1 – 3 of 3) sorted by relevance
/coreutils/src/ |
D | head.c | 249 off_t current_pos) in elide_tail_bytes_pipe() argument 252 uintmax_t desired_pos = current_pos; in elide_tail_bytes_pipe() 451 if (0 <= current_pos && elseek (fd, desired_pos, SEEK_SET, filename) < 0) in elide_tail_bytes_pipe() 466 struct stat const *st, off_t current_pos) in elide_tail_bytes_file() argument 469 if (presume_input_pipe || current_pos < 0 || size <= STP_BLKSIZE (st)) in elide_tail_bytes_file() 470 return elide_tail_bytes_pipe (filename, fd, n_elide, current_pos); in elide_tail_bytes_file() 475 off_t diff = size - current_pos; in elide_tail_bytes_file() 499 off_t current_pos) in elide_tail_lines_pipe() argument 508 uintmax_t desired_pos = current_pos; in elide_tail_lines_pipe() 631 if (0 <= current_pos && elseek (fd, desired_pos, SEEK_SET, filename) < 0) in elide_tail_lines_pipe() [all …]
|
D | wc.c | 304 wc (int fd, char const *file_x, struct fstatus *fstatus, off_t current_pos) in wc() argument 356 if (current_pos < 0) in wc() 357 current_pos = lseek (fd, 0, SEEK_CUR); in wc() 369 bytes = end_pos < current_pos ? 0 : end_pos - current_pos; in wc() 379 if (0 <= current_pos && current_pos < hi_pos in wc() 381 bytes = hi_pos - current_pos; in wc()
|
D | tail.c | 1852 off_t current_pos = -1; in tail_bytes() local 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() 1863 if (current_pos == -1) in tail_bytes() 1864 current_pos = xlseek (fd, 0, SEEK_CUR, pretty_filename); in tail_bytes() 1865 if (current_pos < end_pos) in tail_bytes() 1867 off_t bytes_remaining = end_pos - current_pos; in tail_bytes() 1871 current_pos = end_pos - n_bytes; in tail_bytes() 1872 xlseek (fd, current_pos, SEEK_SET, pretty_filename); in tail_bytes() 1875 *read_pos = current_pos; in tail_bytes()
|