summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2005-05-30(_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:Paul Eggert
Define to 256, not 255, as per modern POSIX.
2005-05-28(skip): Return the number of records that were notPaul Eggert
skipped due to encountering EOF. (dd_copy): If the file wasn't seekable and EOF was encountered, write zeros past EOF until the desired offset is reached.
2005-05-27Include inttostr.h, strnumcmp.h.Paul Eggert
(whitespace, digit, digit_value, integer_expected_error): Remove. (is_int): Remove; replaced by... (find_int): New function. (binary_operator): Don't let integers overflow in comparisons; return the correct answer instead. Simplify the code. (unary_operator): Convert the integer ourself, since find_int no longer does so.
2005-05-27Refactor so that others can use large-integerPaul Eggert
comparison functions. Include "strnumcmp.h". (NEGATION_SIGN, NUMERIC_ZERO, fraccompare): Remove; moved to strnumcmp. (decimal_point): Now int, to simplify converison overhead with new API. All uses changed. (thousands_sep): Now -1 if there isn't one, as per new API. All uses changed. (numcompare): Move contents to strnumcmp module, except for skipping blanks.
2005-05-27Include strnumcmp.h, xstrtol.h.Paul Eggert
(looks_like_integer): New function. (toarith): Use it. Also, use xstrtoimax rather than rolling our own diagnostics. (eval2): Don't look for trouble if !evaluate; this simplifies things. Compare numbers using string comparison, so that overflow is not possible.
2005-05-26Fix typo in comment.Paul Eggert
2005-05-26nohup now redirects a tty stdin to an unreadable fd instead of closing it.Paul Eggert
2005-05-26.Jim Meyering
2005-05-26(toarith): Fix a sign error introduced on 2005-01-14.Jim Meyering
2005-05-19(AD_mark_helper, AD_mark_current_as_unremovable):Jim Meyering
Remove inaccurate-but-harmless `const' attributes.
2005-05-19(decode_field_spec): Add an abort afterJim Meyering
`error (EXIT_FAILURE, ...' to avoid a gcc warning in caller, about variables being used uninitialized.
2005-05-18Regenerate.Paul Eggert
2005-05-18Remove test for HAVE_LIMITS_H; we can assumePaul Eggert
it's always true now.
2005-05-18Add copyright notice.Paul Eggert
(factor_LDADD): Remove, as factor no longer needs sqrt.
2005-05-16Fix Cygwin porting problem reported by Eric Blake.Paul Eggert
(DT_IS_DIR): Remove. (DT_IS_KNOWN, DT_MUST_BE): New macros. (remove_entry): Use them.
2005-05-14.Jim Meyering
2005-05-14Regenerate.Paul Eggert
2005-05-14Include unlinkdir.h.Paul Eggert
(UNLINK_CAN_UNLINK_DIRS): Remove. (remove_entry): Use cannot_unlink_dirs () rather than UNLINK_CAN_UNLINK_DIRS.
2005-05-14Update FSF postal mail address.Jim Meyering
2005-05-14.Jim Meyering
2005-05-14.Jim Meyering
2005-05-14Update FSF postal mail address.Jim Meyering
2005-05-13"bytes, words and lines" -> "lines, words, and bytes" in commentPaul Eggert
2005-05-13fix grammar typo in commentJim Meyering
2005-05-13.Jim Meyering
2005-05-13* NEWS: `rm -r' now removes all of the files it should, even onJim Meyering
systems with a buggy readdir affecting file systems inaccessible at configure time. In some unusual circumstances `rm -r' would fail to remove -- or even consider -- all entries in a directory with more than 254 (SunOS) or 338 (Darwin) entries. This could cause trouble even on other types of systems when using an affected file system via e.g., NFS. The underlying cause was a bug in readdir on those systems. Coreutils-5.2.1 and earlier used a configure-time test designed to detect precisely those problem systems, but it would detect the problem and enable remove.c's work-around code only when its configure-time test was run on a losing file system. Obviously, it couldn't detect a problem if the offending file system wasn't tested or even mounted at coreutils configure time. Now, rm itself performs a minimal-cost run-time test to detect the problem. (CONSECUTIVE_READDIR_UNLINK_THRESHOLD): Define. (remove_cwd_entries): When readdir returns NULL for a directory from which we've removed more than CONSECUTIVE_READDIR_UNLINK_THRESHOLD entries, call rewinddir and then resume the readdir/unlink loop. (UNLINK_CAN_UNLINK_DIRS): Rename from ROOT_CAN_UNLINK_DIRS.
2005-05-12(main): nohup now closes stdin if it is a terminal, unlessPaul Eggert
POSIXLY_CORRECT is set.
2005-05-12Assume `free (NULL)' works.Jim Meyering
2005-05-12Assume `free (NULL)' works.Jim Meyering
2005-05-12Assume `free (NULL)' works.Jim Meyering
2005-05-12Assume `free (NULL)' works.Jim Meyering
2005-05-10.Jim Meyering
2005-05-10(abandon_move): Remove erroneous UNWRITABLE check.Jim Meyering
This makes `mv -i --reply=no f1 f2' work as expected (in not performing the move operation). But note that specifying `-i' after `--reply=no' does *not* work. Tiny patch from Vlada Macek.
2005-05-06(flags, usage): Add support for "binary" and "text".Paul Eggert
2005-05-04Include quotearg.h.Paul Eggert
(diagnose_surprises): New var. (process_file): Diagnose surprises. Simplify the logic a bit, while we're at it. (main): Prepare to diagnose surprises. Remove useless code for '-' option.
2005-05-02(usage): ls --indicator-style=directory renamed to lsPaul Eggert
--indicator-style=slash, to avoid confusion with ls --directory. (slash): Renamed from directory_only. All uses changed.
2005-05-01mode_free -> freePaul Eggert
2005-04-30Regenerate.Paul Eggert
2005-04-29(enum indicator_style): New constant directory_only,Paul Eggert
for -p. (indicator_style_args, indicator_style_types): Set it appropriately. (decode_switches, gobble_file, print_type_indicator): (length_of_file_name_and_frills): Implement the change described in NEWS. (decode_switches): Quote ">", too. (usage): Update to match the new behavior. Describe ">".
2005-04-28(main): Adjust to new modechange API.Paul Eggert
Also, free the mode_change object when done.
2005-04-28(change, umask_value): New static vars.Paul Eggert
(reference_file): Move this static var to inside "main". (process_file, process_files): Remove CHANGES arg; now taken from static var. All uses changed. (usage): Fix incorrect description of MODE operand. (main): For invalid mode usages, output a brief usage message. Adjust to new modechange API.
2005-04-26(main): Don't complain about -NUM.Paul Eggert
2005-04-26Remove posixver.h and its uses.Paul Eggert
(main): Don't complain about -TAB.
2005-04-26(parse_obsolete_option): Don't complain about -NUM.Paul Eggert
2005-04-26Remove posixver.h and its uses.Paul Eggert
(main): Don't complain about -NUM option.
2005-04-26Remove posixver.h and its uses.Paul Eggert
(short_options): New constant, which always supports -y arg. (COMMON_SHORT_OPTIONS): Remove.
2005-04-26Remove posixver.h and its uses.Paul Eggert
(short_options): New constant, which always supports -S[string]. (COMMON_SHORT_OPTIONS): Remove.
2005-04-26Remove posixver.h and its uses.Paul Eggert
(short_options): New constant, which always supports -w[num]. (COMMON_SHORT_OPTIONS): Remove.
2005-04-26Remove posixver.h and its uses.Paul Eggert
(main): Always support -NUM option.
2005-04-26Remove posixver.h and its uses.Paul Eggert
(obsolete_usage): Remove. (join_field_1, join_field_2): Initialize to SIZE_MAX to indicate they haven't been set yet. (tab): Now int, not char. Initialize to -1 to indicate white space separates columns, so that we can use NUL as a separator. All uses changed. (OBSOLETE_LONG_OPTIONS, get_option): Remove. (string_to_join_field): Remove ERR_MSG_FMT arg; a single format suffices. Use xstrtoul for sizes; it suffices. (decode_field_spec): Report an error and exit on failure. Return void, not bool. (add_field_list): Likewise. (set_join_field): New function. (enum operand_status): New enum. (add_file_name): New args OPERAND_STATUS, JOPTION_COUNT, PREV_OPTC_STATUS, OPTC_STATUS to handle the bewildering array of possibilities with obsolete option parsing. (main): Use it. Do not depend on POSIX version. Check for conflicting options. Parse obsolete options -j1 and -j2 so that it is a pure extension to POSIX 1003.1-2001. Allow '-t\0' to specify a NUL tab, stealing the code from 'sort'.