summaryrefslogtreecommitdiff
path: root/m4/prereq.m4
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-07-23 22:33:51 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-07-23 22:33:51 +0000
commit441462ac72624d250e93aaac25a710fe47fa2794 (patch)
tree182d14bb46bc65f503952c539af6055ed646081f /m4/prereq.m4
parent61b792fc38b8cc09f9c752a22949575a1dc1b8f8 (diff)
downloadcoreutils-441462ac72624d250e93aaac25a710fe47fa2794.tar.xz
Include fcntl-safer.h.
(COPY_TO_EOF): Set to UINTMAX_MAX, not OFF_T_MAX (which was wrong). (COPY_A_BUFFER): New macro. (struct File_spec): New members mtime, mode, blocking. Remove member n_consecutive_size_changes. (DEFAULT_MAX_N_CONSECUTIVE_SIZE_CHANGES, max_n_consecutive_size_changes_between_opens, MAX_CONSECUTIVE_SIZE_CHANGES_OPTION): Remove. (long_options, tail_forever, parse_options): Remove (non-)support for --max-consecutive-size-changes. (record_open_fd): New function. (recheck, tail_file): Use it. Don't assume that stdin is open. (dump_remainder): Add support for new COPY_A_BUFFER special value. Treat errno==EAGAIN like EOF, since it might be a nonblocking read. (recheck): New arg BLOCKING, specifying whether to use blocking reads. All uses changed. (n_live_files): Remove, replacing with... (any_live_files): New function. All uses changed. (tail_forever): Use nonblocking I/O unless we know that blocking I/O is safe; this avoids some hangs when reading from a fifo. Avoid invoking fstat or sleep when using blocking I/O. Do not check for changes to size if the file is not a regular file, as the size is undefined in that case. Check for changes to mtime or mode, too; this works for non-regular files. (tail_forever, main): Redo fflush strategy to work even when input is nonblocking. Don't use unbuffered output; just flush when needed.
Diffstat (limited to 'm4/prereq.m4')
0 files changed, 0 insertions, 0 deletions