getdelim: Use SIZE_MAX from stdint.h.
[gnulib.git] / ChangeLog
index 065bdf1..2c13295 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,335 @@
+2009-05-20  Simon Josefsson  <simon@josefsson.org>
+
+       * modules/getdelim (Depends-on): Add explicit stdint, although it
+       was implicitly already pulled in via realloc-posix.
+       * lib/getdelim.c: Get SIZE_MAX from stdint.h.
+
+2009-05-20  Simon Josefsson  <simon@josefsson.org>
+
+       MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
+       G. Christensen" <tgc@jupiterrise.com>.
+       * m4/sys_socket_h.m4: Check for sa_family_t.
+       * lib/sys_socket.in.h: Typedef sa_family_t when needed.
+       * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
+       * tests/test-sys_socket.c: Check that sa_family_t works.
+
+2009-05-18  Eric Blake  <ebb9@byu.net>
+
+       maint.mk: allow gnulib_dir in VPATH build
+       * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
+
+2009-05-15  Jim Meyering  <meyering@redhat.com>
+
+       maint.mk: Give gnulib_dir a default definition.
+       * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
+       Thus, most packages no longer need to specify this variable in cfg.mk
+
+2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
+
+       rename.m4: fix typos that would make non-mingw cross-configure fail
+       * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
+
+2009-05-13  Eric Blake  <ebb9@byu.net>
+
+       mmap-anon: avoid out-of-order autoconf expansion
+       * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
+       SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
+       * modules/memchr-tests (Depends-on): Add extensions.
+       * modules/memchr2-tests (Depends-on): Add extensions.
+       * modules/memcmp-tests (Depends-on): Add extensions.
+       * modules/memmem-tests (Depends-on): Add extensions.
+       * modules/memrchr-tests (Depends-on): Add extensions.
+
+2009-05-13  Bruno Haible  <bruno@clisp.org>
+
+       Make some tests ISO C 99 compliant.
+       * tests/zerosize-ptr.h: New file.
+       * tests/test-memchr.c: Include zerosize-ptr.h.
+       (main): Use a zero-size object pointer instead of NULL.
+       * tests/test-memchr2.c: Include zerosize-ptr.h.
+       (main): Use a zero-size object pointer instead of NULL.
+       * tests/test-memcmp.c: Include zerosize-ptr.h.
+       (main): Use a zero-size object pointer instead of NULL.
+       * tests/test-memmem.c: Include zerosize-ptr.h.
+       (main): Use a zero-size object pointer instead of NULL.
+       * tests/test-memrchr.c: Include zerosize-ptr.h.
+       (main): Use a zero-size object pointer instead of NULL.
+       * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
+       m4/mmap-anon.m4.
+       (Depends-on): Add getpagesize.
+       (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
+       * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
+       m4/mmap-anon.m4.
+       (Depends-on): Add getpagesize.
+       (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
+       * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
+       m4/mmap-anon.m4.
+       (Depends-on): Add getpagesize.
+       (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
+       * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
+       m4/mmap-anon.m4.
+       (Depends-on): Add getpagesize.
+       (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
+       * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
+       m4/mmap-anon.m4.
+       (Depends-on): Add getpagesize.
+       (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
+
+2009-05-12  Bruno Haible  <bruno@clisp.org>
+
+       Tests for module 'alignof'.
+       * modules/alignof-tests: New file.
+       * tests/test-alignof.c: New file.
+
+2009-05-12  Bruno Haible  <bruno@clisp.org>
+
+       Fix alignof macro.
+       * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
+       vendor compilers that are always correct.
+
+2009-05-12  Bruno Haible  <bruno@clisp.org>
+
+       Make the MAP_ANONYMOUS detection work on HP-UX 11.
+       * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
+       not whether its fully works.
+
+2009-05-12  Bruno Haible  <bruno@clisp.org>
+
+       * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
+
+2009-05-12  Jim Meyering  <meyering@redhat.com>
+
+       * top/maint.mk: Adjust backslash alignment.
+
+2009-05-11  Simon Josefsson  <simon@josefsson.org>
+
+       * top/maint.mk: Make $(srcdir)/build-aux configurable.
+
+2009-05-11  Eric Blake  <ebb9@byu.net>
+
+       argp: avoid undefined behavior
+       * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
+       macros.
+
+2009-05-08  Simon Josefsson  <simon@josefsson.org>
+
+       * tests/test-vc-list-files-git.sh: Do git config of user.email and
+       user.name to prevent git commit from complaining.
+
+2009-05-10  Bruno Haible  <bruno@clisp.org>
+
+       * gnulib-tool (func_import, func_create_testdir, copy-file): Change
+       sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
+       it rewrites every file name only once.
+       Reported by Simon Josefsson. Helped by Ralf Wildenhues.
+
+2009-05-08  Bruno Haible  <bruno@clisp.org>
+
+       * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
+       instead of 'max'.
+
+2009-05-08  Simon Josefsson  <simon@josefsson.org>
+
+       * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
+       sockaddr_storage test.
+
+2009-05-07  Simon Josefsson  <simon@josefsson.org>
+
+       * modules/sys_socket (Makefile.am): Substitute
+       HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
+       * m4/sys_socket_h.m4: Check for sockaddr_storage.
+       * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
+       * tests/test-sys_socket.c: Check sockaddr_storage.
+
+2009-05-08  Bruno Haible  <bruno@clisp.org>
+
+       New module 'alignof'.
+       * lib/alignof.h: New file.
+       * modules/alignof: New file.
+
+2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
+           Bruno Haible  <bruno@clisp.org>
+
+       Fix test-file-has-acl on FreeBSD.
+       * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
+       mask is implicitly added.
+       * tests/test-file-has-acl.c: Include <signal.h>.
+       (main): Terminate the test after 5 seconds.
+       * modules/acl-tests (configure.ac): Check for alarm function.
+
+2009-05-04  Bruno Haible  <bruno@clisp.org>
+
+       Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
+       * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
+       * modules/errno (configure.ac): Drop AC_REQUIRE.
+       * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
+       * modules/multiarch (configure.ac): Drop AC_REQUIRE.
+
+2009-05-04  Simon Josefsson  <simon@josefsson.org>
+
+       * modules/glob-tests: New module.
+       * tests/test-glob.c: Add.
+
+2009-05-04  Simon Josefsson  <simon@josefsson.org>
+
+       * modules/fnmatch-tests: New module.
+       * tests/test-fnmatch.c: Add.
+
+2009-05-04  Eric Blake  <ebb9@byu.net>
+
+       maint: make the new no-submodule-changes rule VPATH-safe
+       * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
+
+2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
+           Bruno Haible  <bruno@clisp.org>
+
+       acl: Fix infinite loop on FreeBSD.
+       * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
+       of return value from acl_get_entry.
+       * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
+       Likewise.
+
+2009-05-03  Bruno Haible  <bruno@clisp.org>
+
+       * lib/acl-internal.h (acl_entries): Clarify return value.
+       * lib/acl_entries.c (acl_entries): Likewise.
+
+2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
+
+       Bug fix in acl module.
+       * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
+
+2009-05-03  Bruno Haible  <bruno@clisp.org>
+
+       Create gperf-generated file in the source dir, not in the build dir.
+       * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
+       iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
+       * modules/unicase/locale-language (unicase/locale-languages.h):
+       Likewise.
+       * modules/unicase/special-casing (unicase/special-casing-table.h):
+       Likewise.
+       * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
+       * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
+       * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
+       Reported by Ralf Wildenhues.
+
+2009-05-03  Bruno Haible  <bruno@clisp.org>
+
+       * modules/fnmatch (Description, configure.ac): Taken from
+       fnmatch-posix.
+       * modules/fnmatch-posix: Turn into a symbolic reference to the
+       'fnmatch' module, and deprecate.
+       * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
+
+2009-05-03  Bruno Haible  <bruno@clisp.org>
+
+       * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
+       gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
+       Reported by Ralf Wildenhues.
+
+2009-05-04  Simon Josefsson  <simon@josefsson.org>
+
+       * m4/fnmatch.m4: Fix fnmatch re-define.
+
+2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
+
+       priv-set: new module and tests; adapt write-any-file
+       * lib/priv-set.c: New file.
+       * lib/priv-set.h: New file.
+       * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
+       * lib/write-any-file.c: Simplify by using priv-set module.
+       * m4/priv-set.m4: New file.
+       * modules/priv-set: New file.
+       * modules/unlinkdir: Add dependency on priv-set module.
+       * modules/write-any-file: Likewise.
+
+       Tests for module 'priv-set'.
+       * modules/priv-set-tests: New file.
+       * tests/test-priv-set.c: New file.
+
+2009-05-03  Jim Meyering  <meyering@redhat.com>
+           Bruno Haible  <bruno@clisp.org>
+
+       * lib/propername.c (proper_name_utf8): Ignore no-op translations;
+       use the converted UTF-8 variant of the name instead.
+
+2009-05-03  Jim Meyering  <meyering@redhat.com>
+
+       tests: tighten some getdate tests
+       * tests/test-getdate.c (main): Tighten tests: require equality,
+       not just greater than.  Set TZ envvar to UTC0.
+
+2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
+
+       getdate: correctly interpret "next monday" when run on a Monday
+       * lib/getdate.y (get_date): Correct the calculation of tm_mday so
+       that e.g., "next tues" (when run on a tuesday) results in a date
+       that is one week in the future, and not today's date.
+       I.e., add a week when the wday is the same as the current one.
+       Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
+       and earlier by Martin Bernreuther and Jan Minář.
+       * tests/test-getdate.c (main): Check that "next DAY" is always in
+       the future and that "last DAY" is always in the past.
+
+2009-05-02  Jim Meyering  <meyering@redhat.com>
+
+       build: ensure that a release build fails when a submodule is unclean
+       * top/maint.mk (no-submodule-changes): New rule.
+       (alpha beta major): Depend on it.
+
+2009-05-02  Bruno Haible  <bruno@clisp.org>
+
+       Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
+       * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
+       shell variable gl_fnmatch_required to detect which variant is
+       requested.
+       (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
+       gl_FUNC_FNMATCH_POSIX.
+       * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
+       exclude fnmatch-posix.
+
+2009-05-02  Bruno Haible  <bruno@clisp.org>
+
+       Relicense mbsrtowcs and strnlen1 under LGPLv2+.
+       * modules/mbsrtowcs (License): Change to LGPLv2+.
+       * modules/strnlen1 (License): Likewise.
+       Reported by Simon Josefsson.
+
+2009-05-02  Bruno Haible  <bruno@clisp.org>
+
+       * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
+       "cross".
+       (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
+       gnulib-tool was called with option --source-base=lib.
+
+2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       Use automake *-local hooks without commands, for extensibility.
+       * modules/localcharset (Makefile.am): Rename install-exec-local
+       rule to install-exec-localcharset, and make it a prerequisite of
+       install-exec-local.  Likewise, rename the uninstall-local rule to
+       uninstall-localcharset, and make it a prerequisite of the former.
+
+2009-05-01  Bruno Haible  <bruno@clisp.org>
+
+       * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
+       * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
+       set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
+       * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
+       * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
+       * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
+       m4/locale-zh.m4, m4/codeset.m4.
+
+       * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
+       set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
+       * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
+       m4/locale-zh.m4.
+
+       * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
+       REPLACE_WCRTOMB if mbstate_t must be replaced.
+       * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
+       Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
+
 2009-05-01  Bruno Haible  <bruno@clisp.org>
 
        Avoid compiler warnings when redefining macros defined by <libintl.h>.