summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2005-07-11(head_lines, head_file): Avoid setmode; use POSIX-specified routines instead.Paul Eggert
(elide_tail_bytes_file, elide_tail_lines_file, head_bytes): (head_lines, head_file): Always use binary mode except for std tty.
2005-07-11(cksum): Avoid setmode; use POSIX-specified routines instead.Paul Eggert
2005-07-11(usage, main, long_options) [O_BINARY]:Paul Eggert
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.
2005-07-09Don't include stdio.h; no longer needed.Paul Eggert
2005-07-09Use only HAVE_SYS_IOCTL_H to decide whether to include sys/ioctl.h.Paul Eggert
stropt.h -> stropts.h
2005-07-09Use only HAVE_SYS_IOCTL_H to decide whether to include sys/ioctl.h.Paul Eggert
stropt.h -> stropts.h
2005-07-09Use only HAVE_SYS_IOCTL_H to decide whether to include sys/ioctl.h.Paul Eggert
2005-07-08(print_user): Don't assume uid fits in unsigned int.Paul Eggert
(print_group): Likewise, for gid.
2005-07-08Include stropt.h if available.Paul Eggert
2005-07-08Include stropt.h if available.Paul Eggert
Use HAVE_FIONREAD_IN_SYS_IOCTL instead of _POSIX_SOURCE to decide whether to include <sys/ioctl.h>.
2005-07-08Regenerate.Paul Eggert
2005-07-07.Jim Meyering
2005-07-06remove stray `=' from commentJim Meyering
2005-07-05(DECIMAL_DIGIT_ACCUMULATE): Generate a hard errorPaul Eggert
(not just a warning) if GCC is used and the types don't match.
2005-07-05Adjust to the change to DECIMAL_DIGIT_ACCUMULATE: its last arg is nowPaul Eggert
a type, not a value.
2005-07-05(VERIFY_W_TYPEOF): Remove; no longer needed.Paul Eggert
(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.
2005-07-05Adjust to verify.h change.Paul Eggert
2005-07-05(VERIFY_W_TYPEOF): Adjust to verify.h change.Paul Eggert
2005-07-04rename: s/verify_dcl/verify_decl/Jim Meyering
2005-07-04Include "verify.h".Jim Meyering
2005-07-04Reflect name change: s/VERIFY/verify_dcl/.Jim Meyering
2005-07-04(verify): Rename from VERIFY_EXPR, to be lower case,Jim Meyering
like assert. Use sizeof, rather than equivalent ((...)0), for it's slightly simpler syntax. Suggestions from Paul Eggert. (verify_decl): Rename from VERIFY.
2005-07-03(main): Using --reply now evokes a warning.Jim Meyering
(usage): Remove description of --reply.
2005-07-03.Jim Meyering
2005-07-03Include "lstat.h" rather than rolling our own.Paul Eggert
2005-07-03(verify_numeric): Rename from verify.Jim Meyering
Update caller.
2005-07-03Regenerate.Paul Eggert
2005-07-03Include fcntl--.h, not unistd-safer.h.Paul Eggert
(touch): Don't call fd_safer; no longer needed now that we include fcntl--.h.
2005-07-03Include stdio--.h, not stdio-safer.h.Paul Eggert
(tee): Don't call fopen_safer; no longer needed now that we include stdio--.h.
2005-07-03Include fcntl--.h, not unistd-safer.h.Paul Eggert
(recheck, tail_file): Don't call fd_safer; no longer needed now that we include fcntl--.h.
2005-07-03Include stdlib--.h rather than unistd-safer.h.Paul Eggert
(copy_to_temp): Don't call fd_safer; no longer needed now that we include stdlib--.h.
2005-07-03Include fd-reopen.h.Paul Eggert
(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.
2005-07-03Include fcntl--.h rather than unistd-safer.h.Paul Eggert
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.
2005-07-03Include stdio--.h rather than stdio-safer.h.Paul Eggert
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.
2005-07-03Include fcntl--.h, not unistd-safer.h.Paul Eggert
(wipename, wipe_file): Don't use fd_safer; no longer needed now that we include fcntl--.h.
2005-07-03Include stdio--.h, not stdio-safer.h.Paul Eggert
(open_file): Invoke fopen, not fopen_safer.
2005-07-03Include fd-reopen.h.Paul Eggert
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.
2005-07-03Include stdio--.h.Paul Eggert
(digest_check): Don't try to read both checksums and data from stdin.
2005-07-03Include stdio--.h, not stdio-safer.h.Paul Eggert
(main): Use fopen, not fopen_safer.
2005-07-03Include fd-reopen.h.Paul Eggert
(open_fd): Remove. All callers changed to use fd_reopen instead.
2005-07-03Include fd-reopen.h.Paul Eggert
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.
2005-07-03Include fcntl--.h, not unistd-safer.h.Paul Eggert
(copy_reg): Don't call fd_safer; no longer needed now that we include fcntl--.h.
2005-07-03Include stdio--.h, not stdio-safer.h.Paul Eggert
(compare_files): Use fopen, not fopen_safer.
2005-07-03Don't include stdio-safer.h; no longer needed.Paul Eggert
(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.
2005-07-03(main): Reuse stdin rather than opening a new stream.Paul Eggert
This saves a file descriptor.
2005-07-02.Jim Meyering
2005-07-01Assume HAVE_UNISTD_H.Jim Meyering
2005-07-01Assume HAVE_FCNTL_H (i.e., include <fcntl.h>Jim Meyering
unconditionally, and don't include <sys/file.h>).
2005-06-30.Jim Meyering
2005-06-30Add uses of ARGMATCH_VERIFY to ensure thatJim Meyering
corresponding option string and value arrays are consistent.