summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2004-08-02Regenerate.Paul Eggert
2004-08-02(ptr_align): Use size_t; in practice, this is just asPaul Eggert
good as uintptr_t in checking for alignments, and has fewer configuration hassles.
2004-08-02(UINT_MAX_32_BITS): Remove.Paul Eggert
(word32): Remove. All uses changed to uint32_t. (isaac_seed_data): Remove unnecessary cast.
2004-08-02(hash_int) [!defined UINTPTR_MAX]: Use size_t instead of uintptr_t.Paul Eggert
2004-08-01(localedir.h): Make it readonly; thisPaul Eggert
undoes part of the 2004-07-27 patch.
2004-07-30Improve comment for first_same_file.Paul Eggert
2004-07-30(to_uchar): Remove; now in system.h.Paul Eggert
(is_char_class_member): Use bool when appropriate.
2004-07-30(errno, CHAR_BIT): Remove decls;Paul Eggert
no longer needed now we assume C89 or better. Include <inttypes.h> before <stdint.h>, as it's the Autoconf-recommended pattern. (to_uchar): New inline function, moved here from tr.c. Use full names for int types, e.g. "long int" rather than "long".
2004-07-30(UCHAR): Remove; all uses changed to to_uchar.Paul Eggert
(IS_THOUSANDS_SEP): Use bool when appropriate. (numcompare, main): Use char, not int, when the value is always a char. (numcompare): Remove "register"; compilers are smart enough these days.
2004-07-30(create_parents, main): Use bool when appropriate.Paul Eggert
(main): Use EXIT_SUCCESS/EXIT_FAILURE instead of 0/1.
2004-07-30(main): Use EXIT_SUCCESS and EXIT_FAILURE, not 0 and 1.Paul Eggert
2004-07-30(right_justify), full_filename_, AD_pop_and_chdir,Paul Eggert
AD_push, prompt, remove_dir): Use bool when appropriate. (top_dir, pop_dir, full_filename_): Use size_t for sizes.
2004-07-30(rm_option_init, main): Use bool when appropriate.Paul Eggert
(main): Use EXIT_SUCCESS, EXIT_FAILURE instead of 0, 1.
2004-07-30(remove_trailing_slashes, rm_option_init,Paul Eggert
cp_option_init, do_move, movefile, main): Likewise. * src/remove.c (right_justify), full_filename_, AD_pop_and_chdir, AD_push, prompt, remove_dir): Likewise.
2004-07-30(isdir, change_timestamps, change_attributes,Paul Eggert
copy_file, install_file_to_path, install_file_in_dir, install_file_in_file, strip_files, dir_arg, cp_option_init, main, change_attributes, change_timestamps): Likewise.
2004-07-30(struct dir_attr, flag_path, remove_trailing_slashes,Paul Eggert
re_protect, make_path_private, target_directory_operand, do_copy, cp_option_init, decode_preserve_arg, main): Use bool when appropriate. (target_directory_operand): Do not clear *NEW_DST if stat succeeds. It's not necessary in that case, as *NEW_DST is always false already. (do_copy): Rewrite slightly to avoid need for "unreachable" comment. (main): Use EXIT_SUCCESS, EXIT_FAILURE instead of 0, 1.
2004-07-30(remember_created): Use bool when appropriate.Paul Eggert
2004-07-30(remember_created): Use bool when appropriate.Paul Eggert
2004-07-30(copy_internal, is_ancestor, copy_dir, copy_reg,Paul Eggert
same_file_ok, seen_file, copy_internal, valid_options, copy): Use bool when appropriate.
2004-07-30(struct cp_options): Use bool when appropriate.Paul Eggert
2004-07-30(hard_LC_COLLATE, only_file_1, only_file_2, both, compare_files, main):Paul Eggert
Use bool when appropriate.
2004-07-30(cksum, main): Use bool when appropriate.Paul Eggert
2004-07-30(recurse, force_silent, process_file, process_files, main): Use boolPaul Eggert
when appropriate.
2004-07-30(OPENOPTS, have_read_stdin, status_only, warn,Paul Eggert
bsd_split_3, split_3, hex_digits, digest_file, digest_check, main): Use bool when appropriate. (digest_check): Increase limit of number of input lines to UINTMAX_MAX from INT_MAX. Diagnose any overflows of this counter. Use ngettext instead of hard-to-i18nize hardcoded stuff for plurals.
2004-07-30Don't include any files other than checksum.h.Paul Eggert
2004-07-30Don't include config.h, sys/types.h, stdio.h: not needed.Paul Eggert
(ALG_UNSPECIFIED): Remove. (ALG_MDT): Don't make it equal to CHAR_MAX + 1; this isn't necessary.
2004-07-29(exit_status): Remove. Now done by passing a booleanPaul Eggert
'ok' flag around. (simple_cat, cat): Return true if successful. All callers changed. (simple_cat, cat, main): Use bool for booleans. (simple_cat): Use size_t for sizes. (cat, main): Use the same names for parameters that we use for long options, to avoid confusion. This inverts the sense of the show_tabs (formerly output_tabs) and number_nonblank (formerly numbers_at_empty_lines) variables. (main): Don't mess up (due to integer overflow) if we are given INT_MAX - INT_MIN + 1 options. [O_BINARY]: Don't invoke isatty unless the other options require it. (main): When deciding whether to use simple_cat, don't worry about binary option; it's irrelevant.
2004-07-28Remove comments, trailing white space, and emptyPaul Eggert
lines from the output strings, to save space. Use a narrower type like 'unsigned char' for line lengths, if that will do. Make the output variables static, not extern.
2004-07-28(chown_files): Return true/false, not 0/-1, since we don't set errno.Paul Eggert
2004-07-28Include inttostr.h.Paul Eggert
(UINT_MAX_DECIMAL_DIGITS, uint_to_string): Remove. (gid_to_name, uid_to_name): Use imaxtostr/umaxtostr instead of uint_to_string). (describe_change): Instead of an int flag, use a char * auxiliary; this avoids the need for casts. Assume free (NULL) works. (change_file_owner): Return true/false, not 0/-1, since we don't set errno. All callers changed. Use bool when appropriate. (chown_files): Likewise.
2004-07-28(main): int -> bool when appropriate.Paul Eggert
2004-07-28(parse_group): Require base 10 when parsing groups as integers.Paul Eggert
(main): int -> bool when appropriate.
2004-07-28Regenerate.Paul Eggert
2004-07-28Regenerate.Paul Eggert
2004-07-28this causes Solaris 8 'make' to refuse to build "groups".Paul Eggert
(localedir.h): Don't depend on Makefile: this causes Solaris 8 'make' to build localedir.h unnecessarily. The dependence on Makefile is ineffective anyway, since $(localedir) might change even if Makefile hasn't.
2004-07-28(remove_dir): If we can't save the state of thePaul Eggert
working directory, pretend we started from "/", not ".". This avoids a bug on hosts like Solaris that don't let you remove the working directory.
2004-07-28(strtiomax, strtoumax): Declare if not alreadyPaul Eggert
declared: this fixes a portability bug with Solaris 8 + GCC. (STRTOX): Parenthesize use of macro arg as expression. (vstrtoimax, vstrtoumax, vstrtold): Remove now-unnecessary parentheses.
2004-07-28Regenerate.Paul Eggert
2004-07-28(cp_LDADD, ginstall_LDADD, mv_LDADD,Paul Eggert
pathchk_LDADD, rm_LDADD, test_LDADD): New vars, for eaccess.
2004-07-27(do_link): find_backup_file_name no longer returns NULL, so don'tPaul Eggert
bother to check for this.
2004-07-27(do_copy): find_backup_file_name no longer returns NULL, so don'tPaul Eggert
bother to check for this.
2004-07-27(copy_internal): find_backup_file_name no longerPaul Eggert
returns NULL, so don't bother to check for this.
2004-07-26Regenerate.Paul Eggert
2004-07-26(GET_NICE_VALUE): Renamed from GET_PRIORITY.Paul Eggert
All uses changed. (NZERO): New macro, if system doesn't define it already. (usage): Distinguish priorities from nice values. Don't assume NZERO is 20. (main): Use bool instead of int where appropriate. If user specifies an adjustment out of range, always truncate it to an inrange value instead of sometimes giving an error message and sometimes not. Do not assume that -1 is an error return from "nice" or "getpriority", as it might be the current nice value minus NZERO. If nice/setpriority fails with errno == EPERM, go ahead and run the command anyway; POSIX requires this.
2004-07-25Regenerate.Paul Eggert
2004-07-25(R_OK, W_OK, X_OK, FOK): Remove; system.h defines them.Paul Eggert
(eaccess): Remove. All users changed to use euidaccess instead.
2004-07-25pathchk.c: Include euidaccess.h.Paul Eggert
(dir_ok): Use euidaccess, not access.
2004-07-24(print_uptime) [defined BOOT_MSG]:Paul Eggert
Don't assume ut_line is null-terminated.
2004-07-24(print_line): New arguments USERLEN and LINELEN, since USER and LINEPaul Eggert
might not be null terminated. All callers changed.
2004-07-23Regenerate.Paul Eggert