New dd operand "status=noxfer". Change diagnostic wording slightly.

This commit is contained in:
Paul Eggert
2004-11-16 07:50:07 +00:00
parent 1855111a62
commit bf45c74d3c
+20 -1
View File
@@ -1,7 +1,26 @@
2004-11-14 Paul Eggert <eggert@cs.ucla.edu>
2004-11-15 Paul Eggert <eggert@cs.ucla.edu>
* Version 5.3.0.
* NEWS: New dd operand "status=noxfer".
* src/dd.c (C_ASCII, C_EBCDIC, C_IBM, C_BLOCK, C_UNBLOCK,
C_LCASE, C_UCASE, C_SWAB, C_NOERROR, C_NOTRUNC, C_SYNC, C_TWOBUFS,
C_NOCREAT, C_EXCL, C_FDATASYNC, C_FSYNC): Now constants, not
macros.
(STATUS_NOXFER, statuses): New constants.
(usage, print_stats, scanargs): Add support for status=noxfer.
(usage): Update status output to match new behavior.
(print_stats): Always output complete byte count.
Put space between numbers and units, as SI requires.
Use ngettext so that i18n can use plurals for "byte" and "second".
Don't multiply by 1e-9 (inexact); divide by 1e9 (which is exact).
(iflag_error_msgid, oflag_error_msgid): Remove; replace uses by
the string.
* tests/dd/skip-seek (@Tests): Use status=noxfer to avoid
problems with regression testing.
2004-11-14 Paul Eggert <eggert@cs.ucla.edu>
* NEWS: dd now outputs total bytes, seconds, and bytes per second.
* src/Makefile.am (dd_LDADD): Add $(LIB_CLOCK_GETTIME).
* src/dd.c: Include "human.h".