]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
md5, sha1 cleanups; getugroups change.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 28 Jul 2004 20:11:45 +0000 (20:11 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 28 Jul 2004 20:11:45 +0000 (20:11 +0000)
lib/ChangeLog

index a3b5e953cc348b12ce463eae92f95b529007a046..bfcc4d095e80c88d8da4731f7f10260ef0c029f5 100644 (file)
@@ -1,3 +1,21 @@
+2004-07-28  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * md5.h: Include <stdint.h> if HAVE_STDINT_H || _LIBC, not
+       ifdef _LIBC.
+       (md5_uint32): Use uint32_t if available.  Simplify fallback ifdefs.
+       * md5.c: Don't include <sys/types.h> or <stdlib.h>; <stddef.h>
+       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.
+       * sha1.c: Likewise.
+
+       * getugroups.c: Include <errno.h>.
+       (EOVERFLOW): Define if not defined.
+       (getgroups): Return -1 with errno=EOVERFLOW if an integer overflow
+       occurs.
+
 2004-07-27  Paul Eggert  <eggert@cs.ucla.edu>
 
        * euidaccess.c [HAVE_LIBGEN_H]: Include <libgen.h>, for