summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2005-04-12(usage): Use "user ID", not "UID", and similarlyPaul Eggert
for "group ID".
2005-04-11Regenerate.Paul Eggert
2005-04-11Include stdio_safer.h.Paul Eggert
(check_file): Don't assume fopen cannot return stdin or stdout.
2005-04-11(next_file): Don't assume fopen cannot return stdin.Paul Eggert
2005-04-11(have_read_stdin): Remove; no longer needed. All usesPaul Eggert
removed. (tsort): Do not assume fopen can't return stdin. Close stdin before returning. All uses changed.
2005-04-11Include unistd-safer.h.Paul Eggert
(touch): Use fd_safer.
2005-04-11Include stdio-safer.h.Paul Eggert
(tee): Use fopen_safer.
2005-04-11Include unistd-safer.h rather than fcntl-safer.h.Paul Eggert
(recheck, tail_file): Use fd_safer rather than open_safer.
2005-04-11Include unistd-safer.h.Paul Eggert
(copy_to_temp): Use fd_safer. (tac_file): Don't assume fopen cannot return stdin.
2005-04-11(bsd_sum_file, sysv_sym_file):Paul Eggert
Use same pattern as elsewhere for checking for stdin.
2005-04-11Include unistd-safer.h.Paul Eggert
(cwrite): Use fd_safer. Replace mystery constant 0666 with symbolic version, as POSIX requires.
2005-04-11Include unistd-safer.h.Paul Eggert
(create_temp_file): Use fd_safer. (xfclose): Don't assume fileno (stdin) == STDIN_FILENO, etc.
2005-04-11Include unistd-safer.h.Paul Eggert
(wipename): Use fd_safer on directory file descriptor. (wipefile): Remove special case for /dev/fd/* on older hosts. It didn't work in general, and wasn't documented. Use fd_safer.
2005-04-11(main): Don't assume fopen returns stdout after closingPaul Eggert
stdout. Use freopen instead.
2005-04-11Include stdio-safer.h.Paul Eggert
(open_file): Use fopen_safer. (close_file): Don't assume fopen does not return stdin.
2005-04-11(paste_serial): Don't assume fopen does not return stdin.Paul Eggert
2005-04-11(check_and_close): Don't assume fopen does not return stdin.Paul Eggert
2005-04-11Include unistd-safer.h.Paul Eggert
(main): Don't dup stderr to stdin or stdout by mistake.
2005-04-11(digest_file, digest_check):Paul Eggert
Don't assume that fopen does not return stdin.
2005-04-11Include stdio-safer.h.Paul Eggert
(main): Use fopen_safer. Simplify the resulting code.
2005-04-11(head_file): Don't assume open does not return 0.Paul Eggert
2005-04-11(dc_parse_file): Don't assume fopen does not return stdin.Paul Eggert
2005-04-11Include stdio-safer.h.Paul Eggert
(input_desc): Remove unnecessary static initialization. (set_input_file): Use STDIN_FILENO, not 0. (create_output_file): Use fopen_safer.
2005-04-11Include unistd-safer.h.Paul Eggert
(copy_reg): Use fd_safer.
2005-04-11Include stdio-safer.h.Paul Eggert
(compare_files): Exit right away on I/O error rather than continuing and producing confusing output and error messages. Return void, not int; all callers changed. Use fopen_safer to avoid confusion with file descriptors.
2005-04-10(chopt_free): Mark parameter as unused.Jim Meyering
2005-04-09(close_stdout_wrapper): Likewise.Jim Meyering
Don't close STDOUT_FILENO explicitly; close_stdout does it.
2005-04-09(quit): Define with ATTRIBUTE_NORETURN.Jim Meyering
Now that close_stdout closes standard output unconditionally, these workarounds for dd and cat are no longer necessary. (close_stdout_wrapper): Remove function. (main): Call atexit with close_stdout, instead.
2005-04-09Readability nit:Jim Meyering
Change this: # define __attribute__(x) to this: # define __attribute__(x) /* empty */
2005-04-09(usage): Mention that --recursive removes listedJim Meyering
directories too, not just their contents. Say that by default, rm does not remove directories.
2005-04-09Don't include "timespec.h". system.h does that.Jim Meyering
2005-04-09(iread, iwrite): Use char * buffer, not void *, so we can do pointerPaul Eggert
arithmetic on it.
2005-04-09(SA_NOCLDSTOP): Define to 0 if not defined.Paul Eggert
All uses changed. (siginterrupt) [! HAVE_SIGINTERRUPT]: New macro. (main) [! SA_NOCLDSTOP]: Use it.
2005-04-09Remove all uses of signals; modern hosts havePaul Eggert
/dev/random and don't need this gorp. Do not include signal.h. (env, sigill_handler, isaac_seed_machdep): Remove. All uses removed.
2005-04-09(SA_NOCLDSTOP): Define to 0 if not defined.Paul Eggert
All uses changed. (siginterrupt) [! HAVE_SIGINTERRUPT]: New macro. (main) [! SA_NOCLDSTOP]: Use it.
2005-04-09Do not include safe-read.h or full-write; no longer needed.Paul Eggert
(process_signals): Add forward decl. (SA_NOCLDSTOP, sigprocmask, sigset_t) [!defined SA_NOCLDSTOP]: New macros. (siginterrupt) [! HAVE_SIGINTERRUPT]: New macro. (SA_NODEFER) [!defined SA_NODEFER]: New macro. (SA_RESETHAND) [!defined SA_RESETHAND]: New macro. (caught_signals, interrupt_signal, info_signal_count, catch_siginfo): New vars. (usage): Mention -USR1 versus -INFO. (cleanup): Don't invoke print_stats; the caller must do it now. All callers changed. (quit): Process signals just before exiting. (interrupt_handler): Simply record the signal and return. (siginfo_handler): Simply increment the signal counter and return. (install_handler): Remove, replacing with: (install_signal_handlers, process_signals, iread, iwrite): New functions. All callers to safe_read and full_write replaced by iread and iwrite. All callers to install_handler replaced by install_handlers. Do not include inttostr.h, no longer needed. (print_stats, main): Rewrite and simplify formats to use PRIuMAX instead of umaxtostr. (print_stats): Work even in languages that have special forms for two of things, for r_truncate and w_bytes. We can't fix delta_s in this way, since ngettext doesn't support floating-point. (main): Rewrite to avoid casts.
2005-04-09(SA_NOCLDSTOP): Define to 0 if not defined.Paul Eggert
All uses changed. (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro. (delete_all_files): New arg IN_SIGNAL_HANDLER, to avoid undefined behavior when called from a signal handler. All uses changed. (main) [!defined SA_NOCLDSTOP]: Use siginterrupt to specify that system calls should be interrupted.
2005-04-09(RETSIGTYPE): Remove; no longer needed. All uses replaced with void.Paul Eggert
2005-04-07(binary_operator) [LINT]: Initialize lt and rt to 0.Jim Meyering
2005-04-07(digest_check) [LINT]: Initialize hex_digest to NULL.Jim Meyering
2005-04-07(binop): Move function definition to precede first use so we can...Jim Meyering
(binop): ...remove prototype.
2005-04-07(is_int, age_of, binop): Declare `char *' parameters to be `const'.Jim Meyering
2005-04-05(usage): Add examples.Paul Eggert
2005-04-05(usage): Mention that some shells provide a built-in function by the same name.Jim Meyering
2005-04-05(usage): Mention that some shells provide aJim Meyering
built-in function by the same name.
2005-04-05.Jim Meyering
2005-04-05(tee): When closing files, do not close stdout,Jim Meyering
leave this job to close_stdout() instead. From Dmitry V. Levin.
2005-04-04(usage): Move USAGE_BUILTIN_WARNING to end of --help output.Jim Meyering
2005-04-04(USAGE_BUILTIN_WARNING): remove trailing newlineJim Meyering
2005-04-04.Jim Meyering