summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
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'.
2005-04-26Remove posixver.h and its uses.Paul Eggert
(header_mode_option): Remove. (main): Don't complain about obsolete -NUM args.
2005-04-26Remove posixver.h and its uses.Paul Eggert
(shortopts): New constant. -DIGIT now always takes an optional arg. (main): Don't preprocess arg list; that was buggy. Use method similar to expand.
2005-04-26Remove posixver.h and its uses.Paul Eggert
(shortopts): New constant. -DIGIT now always takes an optional arg. (main): Revamp parsing of -DIGIT to let parse_tab_stops handle it. Don't complain about -DIGIT.
2005-04-26Remove posixver.h and its uses.Paul Eggert
(COMMON_SHORT_OPTIONS): Remove. (short_options): New constant. (short_options, usage): -I now always takes an optional arg.
2005-04-23(main): If getopt fails, exit with status 127, not status 1.Paul Eggert
2005-04-23(main): Report proper program name when getopt finds trouble.Paul Eggert
2005-04-22(main): Compile mode with MODE_MASK_ALL and initial umask.Paul Eggert
2005-04-22(main): Compile mode with MODE_MASK_ALL and initial umask.Paul Eggert
2005-04-22(main): Compile mode with MODE_MASK_ALL and initial umask.Paul Eggert
2005-04-18Regenerate.Paul Eggert
2005-04-18(LDADD, $(PROGRAMS)): fetish -> coreutils.Paul Eggert
2005-04-18Don't include stat-macros.h directly. system.h does that.Jim Meyering
2005-04-16(S_TYPEISSHM): Remove definition.Jim Meyering
Get the definition by including "stat-macros.h", instead.
2005-04-14Correct typo, fchmod -> fchown, in a comment.Jim Meyering
2005-04-12(usage): uid -> user IDPaul Eggert
2005-04-12(tsort): Use "%s" as the format string, rather than a diagnostic or a file name.Jim Meyering
2005-04-12(compare_files): Remove declaration of unused local.Jim Meyering
2005-04-12(usage, main): Use "user ID", not "UID", and similarly for "group ID".Paul Eggert
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.