summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2004-11-16Include "strdup.h".Paul Eggert
(canon_host): Use getaddrinfo if available, so that IPv6 works. Use strdup instead of malloc/strcpy to duplicate strings.
2004-11-16doc patches inspired by Debian coreutils 5.2.1-2.Paul Eggert
2004-11-16(General output formatting): -x doesn't havePaul Eggert
an operand. (Formatting the file names): Warn that even with -N unprintable chars are still printed as '?' some times. (rm invocation): Reword rm -d to note that it's sometimes useful on non-directories. (logname invocation, users invocation, who invocation): The utmp and wtmp file names vary from system to system.
2004-11-16* getdate.y (tORDINAL): New token.Paul Eggert
2004-11-16* getdate.texi (General date syntax): "next" is 1, not 2.Paul Eggert
2004-11-16(General date syntax): "next" is 1, not 2.Paul Eggert
Document that "second" isn't allowed as an ordinal number.
2004-11-16(tORDINAL): New token.Paul Eggert
(day, relunit): Allow it for relative times. (relative_time_table): Use tORDINAL for ordinals.
2004-11-16Support for human_space_before_unit.Paul Eggert
2004-11-16(human_readable): Support human_space_before_unit.Paul Eggert
2004-11-16(LONGEST_HUMAN_READABLE): Add 1 for space before unit.Paul Eggert
(human_space_before_unit): New constant.
2004-11-16New dd operand "status=noxfer". Change diagnostic wording slightly.Paul Eggert
2004-11-16* coreutils.texi (dd invocation): Reword the new dd message.Paul Eggert
2004-11-16(dd invocation): Reword the new dd message.Paul Eggert
2004-11-16(@Tests): Use status=noxfer to avoidPaul Eggert
problems with regression testing.
2004-11-16(C_ASCII, C_EBCDIC, C_IBM, C_BLOCK, C_UNBLOCK,Paul Eggert
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.
2004-11-16New dd operand "status=noxfer".Paul Eggert
2004-11-15dd now outputs total bytes, seconds, and bytes per second.Paul Eggert
2004-11-15(dd invocation): dd now outputs total bytes,Paul Eggert
seconds, and bytes per second.
2004-11-15Include "human.h".Paul Eggert
(w_bytes, start_time): New vars. (usage): Document new I/O statistics output (print_stats): Output new I/O statistics. (cleanup): Do statistics after closing stdin and stdout, so that the times are more accurate. (write_output, dd_copy): Count output bytes. (main): Get initial value of clock.
2004-11-15(dd_LDADD): Add $(LIB_CLOCK_GETTIME).Paul Eggert
2004-11-15dd now outputs total bytes, seconds, and bytes per second.Paul Eggert
2004-11-14*** empty log message ***Jim Meyering
2004-11-14*** empty log message ***Jim Meyering
2004-11-14*** empty log message ***Jim Meyering
2004-11-14Backslash-escape `-'s in email addresses, so that they areJim Meyering
rendered properly in UTF-locales. (escape_hyphens): New function. (main): Call it on email addresses.
2004-11-14(usage): Put the description of `[-n] STRING'Jim Meyering
on two lines, one for `-n STRING' and one for `STRING' so that help2man properly escapes the `-'. Otherwise, the hyphen is rendered inappropriately in UTF-8 locales.
2004-11-14restore file, now that closeout needs the function againJim Meyering
2004-11-14*** empty log message ***Jim Meyering
2004-11-14(zaptemp): Mark new diagnostic for translation.Jim Meyering
2004-11-14*** empty log message ***Jim Meyering
2004-11-14Do require gl_FUNC_FPENDING.Jim Meyering
2004-11-14.Jim Meyering
2004-11-14.Jim Meyering
2004-11-14.Jim Meyering
2004-11-14.Jim Meyering
2004-11-14(close_stdout): Don't fail just because stdout wasJim Meyering
closed initially, since some programs don't write to stdout in the normal course of operation (other than --version and --help), and we don't want this function to make e.g. `cp 1 2 >&-' fail. But do fail if it was closed and someone has tried to write to it. E.g., printf 'foo' >&-
2004-11-14(libfetish_a_SOURCES): Add __fpending.h.Jim Meyering
2004-11-14Restore these files. They're useful after all.Jim Meyering
2004-11-14New file. Test today's closeout.c change.Jim Meyering
2004-11-14(TESTS): Add close-stdout.Jim Meyering
2004-11-13* src/sort.c (zaptemp): Warn if a temporary file is not removed.Paul Eggert
2004-11-13(zaptemp): Warn if a temporary file is not removed.Paul Eggert
Prune unnecessary accesses to volatile locations, and take some code out of the critical section that didn't need to be in it.
2004-11-13Make the newly-introduced critical section a bit smaller.Paul Eggert
2004-11-13* src/sort.c: Avoid O(N**2) behavior when there are many temporary files.Paul Eggert
Fix a race condition.
2004-11-13Document today's changes to "sort".Paul Eggert
2004-11-13Avoid O(N**2) behavior when there are many temporary files.Paul Eggert
(temptail): New variable, so that we can easily append to list. (create_temp_file): Create new files at end of list, so that searching the list has O(N**NMERGE) behavior instead of O(N**2). (zaptemp): Update temptail if needed. (mergefps, merge): Accept new arg that counts temp files, and keep it up to date as we create and remove temporaries. This is for efficiency, so that we don't call zaptemp so often. All callers changed. (sort): Don't create array in reverse order, since the list of temporaries is now in the correct order. (zaptemp): Protect against race condition: if 'sort' is interrupted in the middle of zaptemp, it might unlink the temporary file twice, and the second time this happens the file might already have been created by some other process. (create_temp_file): Use offsetof for clarity. (die): Move it up earlier, to clean up the code a bit.
2004-11-12Move "Version" to top.Paul Eggert
2004-11-12Support longer page numbers in "pr", and allow most file names startingPaul Eggert
with "+".
2004-11-12Document recent changes to "pr".Paul Eggert
2004-11-12(strtoumax): Declare if not declared.Paul Eggert
(skip_to_page, first_page_number, last_page_number, page_number, first_last_page, print_header): Use uintmax_t for page numbers. (first_last_page): Remove unnecessary forward declaration. Do not modify arg (it is now a const pointer). Return a true if successful, false (without print a diagnostic) otherwise. (main): If +XXX does not specify a valid page range, treat it as a file name. This follows the response to Open Group XCU ERN 41 <http://www.opengroup.org/sophocles/show_mail.tpl?source=L&listname=austin-group-l&id=7717>, which says the behavior is allowed. (skip_to_page): When starting page number exceeds page count, print both numbers in the diagnostic. (print_header): Detect page number overflow.