Home
last modified time | relevance | path

Searched refs:line_end (Results 1 – 3 of 3) sorted by relevance

/coreutils/src/
Dhead.c62 static char line_end; variable
543 *buffer_end = line_end; in elide_tail_lines_pipe()
545 while ((p = rawmemchr (p, line_end)) < buffer_end) in elide_tail_lines_pipe()
594 if (last->nbytes && last->buffer[last->nbytes - 1] != line_end) in elide_tail_lines_pipe()
613 while (n && (p = memchr (p, line_end, buffer_end - p))) in elide_tail_lines_pipe()
677 if (n_lines && bytes_read && buffer[bytes_read - 1] != line_end) in elide_tail_lines_seekable()
692 nl = memrchr (buffer, line_end, n); in elide_tail_lines_seekable()
817 if (buffer[bytes_to_write++] == line_end && --lines_to_write == 0) in head_lines()
954 line_end = '\n'; in main()
1001 line_end = '\0'; in main()
[all …]
Dtail.c188 static char line_end; variable
546 if (bytes_read && buffer[bytes_read - 1] != line_end) in file_lines()
557 nl = memrchr (buffer, line_end, n); in file_lines()
641 while ((p = memchr (p, line_end, buffer_end - p))) in pipe_lines()
695 if (last->buffer[last->nbytes - 1] != line_end) in pipe_lines()
717 beg = rawmemchr (beg, line_end); in pipe_lines()
902 while ((p = memchr (p, line_end, buffer_end - p))) in start_lines()
2242 line_end = '\0'; in parse_options()
2344 line_end = '\n'; in main()
Dcsplit.c353 char *line_end = rawmemchr (line_start, '\n'); in record_line_starts() local
354 if (line_end == buffer_end) in record_line_starts()
356 line_length = line_end - line_start + 1; in record_line_starts()
358 line_start = line_end + 1; in record_line_starts()