Age | Commit message (Collapse) | Author |
|
(elide_tail_bytes_file, elide_tail_lines_file, head_bytes):
(head_lines, head_file): Always use binary mode except for std tty.
|
|
|
|
Remove support for -B. Use same rules as other programs to decide
whether to use binary I/O, except that the -bensAE options always
select text mode.
(main): Avoid setmode; use POSIX-specified routines instead.
|
|
|
|
stropt.h -> stropts.h
|
|
stropt.h -> stropts.h
|
|
|
|
(print_group): Likewise, for gid.
|
|
|
|
Use HAVE_FIONREAD_IN_SYS_IOCTL instead of _POSIX_SOURCE
to decide whether to include <sys/ioctl.h>.
|
|
|
|
|
|
|
|
(not just a warning) if GCC is used and the types don't match.
|
|
a type, not a value.
|
|
(DECIMAL_DIGIT_ACCUMULATE): Change last arg from T's maximum value
to T itself. All callers changed. Check that T is unsigned, and
that Accum is of type T. This fixes a bug in the unlikely case
where SIZE_MAX <= INT_MAX, and it no longer requires typeof to do
the proper validity checks.
|
|
|
|
|
|
|
|
|
|
|
|
like assert. Use sizeof, rather than equivalent ((...)0), for
it's slightly simpler syntax. Suggestions from Paul Eggert.
(verify_decl): Rename from VERIFY.
|
|
(usage): Remove description of --reply.
|
|
|
|
|
|
Update caller.
|
|
|
|
(touch): Don't call fd_safer; no longer needed now that
we include fcntl--.h.
|
|
(tee): Don't call fopen_safer; no longer needed now that we
include stdio--.h.
|
|
(recheck, tail_file): Don't call fd_safer; no longer needed
now that we include fcntl--.h.
|
|
(copy_to_temp): Don't call fd_safer; no longer needed now
that we include stdlib--.h.
|
|
(display_all, display_settings, display_window_size, set_window_size):
Remove fd arg, since we now assume stdin. All callers changed.
(main): Reuse stdin rather than opening a new one. This
saves a file descriptor.
|
|
Include fd-reopen.h.
(input_desc): Remove. All uses replaced by STDIN_FILENO.
(cwrite): Don't call fd_safer; no longer needed now that
we include fcntl--.h.
(main): Reuse stdin rather than opening a new one. This
saves a file descriptor.
|
|
Include stdlib--.h. Do not include unistd-safer.h.
(create_temp_file): Don't call fd_safer; no longer needed
now that we include *--.h files.
(xfopen): Don't call fopen_safer, for similar reasons.
|
|
(wipename, wipe_file): Don't use fd_safer; no longer needed
now that we include fcntl--.h.
|
|
(open_file): Invoke fopen, not fopen_safer.
|
|
Include unistd--.h, not unistd-safer.h.
(main): Use fd_reopen to simplify code. When replacing stdin,
use "/dev/null" not "/", as that's less likely to go wrong these days.
(main): Use dup, not dup_safer.
|
|
(digest_check): Don't try to read both checksums and data from stdin.
|
|
(main): Use fopen, not fopen_safer.
|
|
(open_fd): Remove. All callers changed to use fd_reopen instead.
|
|
Include stdio--.h, not stdio-safer.h.
(input_desc): Remove. All uses changed to STDIN_FILENO.
(set_input_file): Reopen stdin, to simplify code.
(create_output_file): Use fopen, not fopen_safer.
|
|
(copy_reg): Don't call fd_safer; no longer needed
now that we include fcntl--.h.
|
|
(compare_files): Use fopen, not fopen_safer.
|
|
(writeline): Remove stream arg; we now always output to stdout.
All callers changed.
(check_file): Reuse stdout rather than opening a new stream.
This saves a file descriptor.
|
|
This saves a file descriptor.
|
|
|
|
|
|
unconditionally, and don't include <sys/file.h>).
|
|
|
|
corresponding option string and value arrays are consistent.
|