summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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-30Update copyright.Paul Eggert
2004-07-30Include <stdbool.h>.Paul Eggert
(mode_compile): Use bool when appropriate.
2004-07-30md5sum, sha1sum integer cleanups.Paul Eggert
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-30md5sum and sha1sum overflow detection.Paul Eggert
2004-07-30Fix copyright year.Paul Eggert
2004-07-29Use sizeof, not alignof, in memchr and memrchr.Paul Eggert
2004-07-29(UNALIGNED_P): Use sizeof, not alignof.Paul Eggert
2004-07-29(UNALIGNED_P): Use sizeof, not alignof.Paul Eggert
2004-07-29'int' cleanup for "cat".Paul Eggert
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-28dcgen cleanup.Paul Eggert
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-28chown/chgrp cleanup.Paul Eggert
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-28userspec.c cleanup, e.g. for "chown 010 file".Paul Eggert
2004-07-28Include <stdbool.h>, "inttostr.h".Paul Eggert
(V_STRDUP): Don't assume the string's length fits in int. (ISDIGIT): unsigned -> unsigned int (is_number): Define only ifdef __DJGPP__; not needed elsewhere. Use bool instead of int where appropriate. Do not allow empty strings. (parse_user_spec): Parse numbers as decimal integers, even if they have a leading 0. Don't assume uids and gids fit in int.
2004-07-28Test for "chown 010 file".Paul Eggert
2004-07-28Test for proper handling of uids likePaul Eggert
"010", which must be parsed as decimal.
2004-07-28Regenerate.Paul Eggert
2004-07-28memchr and memrchr portability fixes.Paul Eggert
2004-07-28Include <stddef.h>, not <stdlib.h> and <sys/types.h>.Paul Eggert
(LONG_MAX_32_BITS): Remove. Include <inttypes.h> and <stdint.h> if available. (alignof, UNALIGNEDP): New macro, portable to all C89 hosts. (__memrchr): Don't assume unsigned long int is either 4 or 8 bytes; let it be any number of bytes greater than or equal to 4.
2004-07-28Include <stddef.h>, not <stdlib.h> and <sys/types.h>.Paul Eggert
(LONG_MAX_32_BITS): Remove. Include <inttypes.h> and <stdint.h> if available. (alignof, UNALIGNEDP): New macro, portable to all C89 hosts. (__memchr): Don't assume unsigned long int is either 4 or 8 bytes; let it be any number of bytes greater than or equal to 4. * memrchr.c: Likewise, with __memrchr.
2004-07-28md5, sha1 cleanups; getugroups change.Paul Eggert
2004-07-28md5, sha1 cleanups.Paul Eggert
2004-07-28(gl_SHA): Require AC_C_BIGENDIAN.Paul Eggert
2004-07-28(gl_MD5): Do not require AC_C_INLINE, since it doesn'tPaul Eggert
use inline any more. Require AC_C_BIGENDIAN, though.
2004-07-28Don't include <sys/types.h> or <stdlib.h>; <stddef.h>Paul Eggert
suffices with C89 or better. (alignof): New macro, portable to all C89 hosts. (UNALIGNED): Use it. Use uintptr_t if available, and assume everything is unaligned otherwise; this is more portable than assuming 'unsigned long int' will always work.
2004-07-28Include <stdint.h> if HAVE_STDINT_H || _LIBC, notPaul Eggert
ifdef _LIBC. (md5_uint32): Use uint32_t if available. Simplify fallback ifdefs.
2004-07-28Include <errno.h>.Paul Eggert
(EOVERFLOW): Define if not defined. (getgroups): Return -1 with errno=EOVERFLOW if an integer overflow occurs.
2004-07-28Regenerate.Paul Eggert
2004-07-28Don't assume that Perl's getpwd agrees with ours.Paul Eggert
2004-07-28Don't assume that Perl's getpwd agrees with ourPaul Eggert
pwd when there are multiple names for the working directory (which can happen with an automounter, sigh).
2004-07-28In src/Makefile.am, don't have 'groups' or 'localedir.h' depend on Makefile.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* src/remove.c (remove_dir): If we can't save the state of thePaul Eggert
working directory, pretend we started from "/", not ".".
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-28In src/printf.c, declare strtoimax and strtoumax if not already declared.Paul Eggert