Commit Graph
22888 Commits
Author SHA1 Message Date
Jim Meyering 80607d62d1 *** empty log message *** 2005-04-09 07:25:06 +00:00
Jim Meyering 29cb226323 (sc_system_h_headers): Propagate exit status through trap. 2005-04-09 07:24:49 +00:00
Jim Meyering 6cd4eed0ba Don't include "timespec.h". system.h does that. 2005-04-09 07:23:50 +00:00
Paul Eggert 8ae46b55b4 (iread, iwrite): Use char * buffer, not void *, so we can do pointer
arithmetic on it.
2005-04-09 06:16:14 +00:00
Paul Eggert c69ead6596 Regenerate. 2005-04-09 05:03:01 +00:00
Paul Eggert 4c8c049f7a Signal-handling cleanup motivated by core dumps in dd. 2005-04-09 05:00:40 +00:00
Paul Eggert ed74cc7c26 (SA_NOCLDSTOP): Define to 0 if not defined.
All uses changed.
(siginterrupt) [! HAVE_SIGINTERRUPT]: New macro.
(main) [! SA_NOCLDSTOP]: Use it.
2005-04-09 04:57:37 +00:00
Paul Eggert 9fd2c631bf Remove all uses of signals; modern hosts have
/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 04:57:15 +00:00
Paul Eggert bc7c9f0ebc (SA_NOCLDSTOP): Define to 0 if not defined.
All uses changed.
(siginterrupt) [! HAVE_SIGINTERRUPT]: New macro.
(main) [! SA_NOCLDSTOP]: Use it.
2005-04-09 04:56:10 +00:00
Paul Eggert 4f0b9dbd17 Do not include safe-read.h or full-write; no longer needed.
(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 04:55:40 +00:00
Paul Eggert f33b6dab82 (SA_NOCLDSTOP): Define to 0 if not defined.
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 04:55:05 +00:00
Paul Eggert 65d8e81ce7 (RETSIGTYPE): Remove; no longer needed. All uses replaced with void. 2005-04-09 04:54:23 +00:00
Paul Eggert 33a5790031 (gl_PREREQ_NANOSLEEP): Check for siginterrupt. 2005-04-09 04:53:53 +00:00
Paul Eggert b1cbacc40c (gl_MACROS): Check for siginterrupt.
(gl_CHECK_ALL_TYPES): Do not require AC_TYPE_SIGNAL.
2005-04-09 04:52:54 +00:00
Paul Eggert e4abcff12f (rpl_nanosleep): Include "timespec.h" before macros
that might redefine system include files.
(siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
(my_usleep): Use NULL rather than (void *) 0.
(rpl_nanosleep) [!defined SA_NOCLDSTOP]:
Use siginterrupt to specify that system calls should be interrupted.
(rpl_nanosleep): Move initialization of suspended closer to call of
my_usleep.
2005-04-09 04:52:25 +00:00
Paul Eggert a3d3cf669c (dd invocation): Document the distinction between
INFO and USR1 for dd, and the effect of POSIXLY_CORRECT here.
2005-04-09 04:51:52 +00:00
Paul Eggert c7eda8c16f Document that dd no longer treats QUIT or PIPE specially,
and when conforming to POSIX no longer treats USR1 specially.
Document that dd no longer dumps core when handling signals.
2005-04-09 04:51:11 +00:00
Jim Meyering b57df8650a *** empty log message *** 2005-04-07 20:10:54 +00:00
Jim Meyering 3dcd2f2dc6 *** empty log message *** 2005-04-07 20:10:17 +00:00
Jim Meyering 66374c61ee (binary_operator) [LINT]: Initialize lt and rt to 0. 2005-04-07 20:10:03 +00:00
Jim Meyering 3bad149c95 (digest_check) [LINT]: Initialize hex_digest to NULL. 2005-04-07 20:09:46 +00:00
Jim Meyering ed3d178804 *** empty log message *** 2005-04-07 17:14:45 +00:00
Jim Meyering d736105221 (binop): Move function definition to precede first use so we can...
(binop): ...remove prototype.
2005-04-07 17:14:14 +00:00
Jim Meyering 6d2f006d8d *** empty log message *** 2005-04-07 17:12:32 +00:00
Jim Meyering d55d4b6c81 (is_int, age_of, binop): Declare char *' parameters to be const'. 2005-04-07 17:12:27 +00:00
Jim Meyering eb3520398b *** empty log message *** 2005-04-06 07:41:20 +00:00
Jim Meyering eafdfb0b5e Remove rw. 2005-04-06 07:41:14 +00:00
Jim Meyering e4b30a18d1 Remove file -- many invalid message strings. 2005-04-06 07:40:51 +00:00
Paul Eggert 594060f75e Regenerate. 2005-04-05 22:25:26 +00:00
Paul Eggert d5c4857ed2 Add examples to basename, cat, chgrp, chown, dirname. 2005-04-05 22:23:29 +00:00
Paul Eggert e8a0c946f5 (usage): Add examples. 2005-04-05 22:21:50 +00:00
Paul Eggert 10b4a29f64 (.x.1): Remove "COMMAND.td/" from examples. 2005-04-05 22:21:14 +00:00
Paul Eggert 26a6039e27 Add examples to cat, chown, chgrp, basename, dirname. Change ln examples
to match that format.
2005-04-05 22:20:31 +00:00
Paul Eggert a07556afb1 (cat invocation, chown invocation)
(chgrp invocation, basename invocation, dirname invocation):
Add examples, which are copies of the examples newly added
to the usage messages.
(ln invocation): Use same format as other examples above,
for consistency.
2005-04-05 22:20:05 +00:00
Jim Meyering a24580b5c4 *** empty log message *** 2005-04-05 11:53:59 +00:00
Jim Meyering 44ebdc8d01 (usage): Mention that some shells provide a built-in function by the same name. 2005-04-05 11:53:47 +00:00
Jim Meyering e4a293284f (usage): Mention that some shells provide a
built-in function by the same name.
2005-04-05 11:53:38 +00:00
Jim Meyering 6d619b4ab7 . 2005-04-05 11:45:49 +00:00
Jim Meyering 41bc49115d *** empty log message *** 2005-04-05 11:45:06 +00:00
Jim Meyering 4c78f3da38 (SUBDIRS): Add tee. 2005-04-05 11:44:54 +00:00
Jim Meyering a3f5d530ab (AC_CONFIG_FILES): Add tests/tee/Makefile. 2005-04-05 11:44:32 +00:00
Jim Meyering 7d2ad53db7 . 2005-04-05 11:43:03 +00:00
Jim Meyering dce4a77a99 (tee): When closing files, do not close stdout,
leave this job to close_stdout() instead.
From Dmitry V. Levin.
2005-04-05 11:40:53 +00:00
Jim Meyering 78eefa7b18 *** empty log message *** 2005-04-05 08:56:15 +00:00
Jim Meyering bc2c07f174 Add Kinyarwanda (rw). 2005-04-05 08:56:04 +00:00
Jim Meyering f41b4a4bbf version: 5.3.0 2005-04-05 08:55:06 +00:00
Jim Meyering e3cb2a0a05 (usage): Move USAGE_BUILTIN_WARNING to end of --help output. 2005-04-04 22:30:57 +00:00
Jim Meyering ce1ecb48b7 (USAGE_BUILTIN_WARNING): remove trailing newline 2005-04-04 22:30:22 +00:00
Jim Meyering 8c3ce409f1 . 2005-04-04 22:29:37 +00:00
Jim Meyering d09a97d9b5 *** empty log message *** 2005-04-04 22:00:11 +00:00