maint.mk: also prohibit lower-case @var@
[gnulib.git] / ChangeLog
index f6ebd7a..acc2e4f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,223 @@
+2012-02-07  Eric Blake  <eblake@redhat.com>
+
+       maint.mk: also prohibit lower-case @var@
+       * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
+       lower case, like @top_srcdir@.
+
+2012-02-04  Eric Blake  <eblake@redhat.com>
+
+       canonicalize: avoid uninitialized memory use
+       * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
+       random '/' left in dest.
+       * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
+
+2012-02-04  Bruno Haible  <bruno@clisp.org>
+
+       isatty: Fix test failure of ptsname_r on native Windows.
+       * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
+       and don't set errno.
+       (isatty): Test first whether fd is valid. Set errno when returning 0.
+
+2012-02-04  Bruno Haible  <bruno@clisp.org>
+
+       spawn-pipe tests: Fix a NULL program name in a diagnostic.
+       * tests/test-spawn-pipe-main.c: Include progname.h.
+       (main): Invoke set_program_name.
+       * modules/spawn-pipe-tests (Depends-on): Add progname.
+
+       nonblocking-socket tests: Fix a NULL program name in a diagnostic.
+       * tests/test-nonblocking-socket-main.c: Include progname.h.
+       (main): Invoke set_program_name.
+       * modules/nonblocking-socket-tests (Depends-on): Add progname.
+
+       nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
+       * tests/test-nonblocking-pipe-main.c: Include progname.h.
+       (main): Invoke set_program_name.
+       * modules/nonblocking-pipe-tests (Depends-on): Add progname.
+
+2012-02-04  Eric Blake  <eblake@redhat.com>
+
+       canonicalize-lgpl: fix // handling
+       * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
+
+       canonicalize: fix // handling
+       * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
+       /// to //, since only // is special.
+
+2012-02-04  Bruno Haible  <bruno@clisp.org>
+
+       ioctl: Fix test failure on native Windows.
+       * lib/ioctl.c: Include msvc-nothrow.h.
+       (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
+
+2012-02-04  Bruno Haible  <bruno@clisp.org>
+
+       fsync: Avoid test failure on native Windows.
+       * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
+       read-only.
+
+2012-02-04  Bruno Haible  <bruno@clisp.org>
+
+       sys_select: Avoid syntax error on OpenBSD 5.0.
+       * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
+       currently being included, just include the system's <sys/select.h>.
+
+2012-02-04  Bruno Haible  <bruno@clisp.org>
+
+       sys_select: Avoid syntax error on OpenBSD 5.0.
+       * lib/sys_select.in.h: Include <signal.h> only after the include_next
+       <sys/select.h>, not before.
+       Reported by Jiri B <jirib@devio.us>.
+
+2012-02-04  Bruno Haible  <bruno@clisp.org>
+
+       get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
+       * tests/test-get-rusage-as.c (main): Assign the malloc() results to
+       global variables.
+       * tests/test-get-rusage-data.c (main): Likewise.
+       Reported by Jim Meyering.
+
+2012-02-04  Bruno Haible  <bruno@clisp.org>
+
+       stdioext: Fix last commit.
+       * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
+
+2012-02-03  Bruno Haible  <bruno@clisp.org>
+
+       stdioext: Add tentative support for Plan9.
+       * lib/stdio-impl.h: Include <errno.h>.
+       * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
+       * lib/freadable.c (freadable): Likewise.
+       * lib/fwritable.c (fwritable): Likewise.
+       * lib/fbufmode.c (fbufmode): Likewise.
+       * lib/freading.c (freading): Likewise.
+       * lib/fwriting.c (fwriting): Likewise.
+       * lib/freadptr.c (freadptr): Likewise.
+       * lib/freadseek.c (freadptrinc): Likewise.
+       * lib/freadahead.c (freadahead): Likewise.
+       * lib/fpurge.c (fpurge): Likewise.
+       * lib/fseeko.c (rpl_fseeko): Likewise.
+       * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
+       Reported by Jens Staal <staal1978@gmail.com>.
+
+2012-02-02  Jim Meyering  <meyering@redhat.com>
+
+       file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
+       * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
+       would evoke a new gcc warning.  Given all of the #ifdefs, it is better
+       not even to try to add the attribute.  Instead, add a pragma to suppress
+       the suggestion/warning.
+
+2012-01-31  Karl Berry  <karl@gnu.org>
+
+       setstate doc: typo.
+       * doc/posix-functions/setstate.texi (setstate): { not (.
+
+2012-01-31  Bruno Haible  <bruno@clisp.org>
+
+       popen: Make more robust on Windows.
+       * lib/popen.c: On native Windows, use the _popen based code even if
+       HAVE_POPEN is set.
+       * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
+       environment variable on native Windows.
+
+2012-01-30  Bruno Haible  <bruno@clisp.org>
+
+       pclose: Fix typo.
+       * lib/stdio.in.h (pclose): Fix typo in warning message.
+
+2012-01-30  Bruno Haible  <bruno@clisp.org>
+
+       doc about getlogin_r, setstate.
+       * doc/posix-functions/getlogin_r.texi: List the incompatible
+       declaration problem under "not fixed by gnulib".
+       * doc/posix-functions/setstate.texi: Mention incompatible declaration
+       problem on Solaris 11 and other platforms.
+
+2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
+           Bruno Haible  <bruno@clisp.org>
+
+       poll tests: Make test more robust.
+       * tests/test-poll.c: Include macros.h.
+       (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
+       return value of various I/O operations.
+       * modules/poll-tests (Files): Add tests/macros.h.
+
+2012-01-30  Bruno Haible  <bruno@clisp.org>
+
+       sys_stat: Fix support for mingw64 and MSVC.
+       * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
+       header files already do it.
+       (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
+       stat itself.
+       Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
+
+2012-01-30  Bruno Haible  <bruno@clisp.org>
+
+       wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
+       * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
+       * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
+
+2012-01-29  Bruno Haible  <bruno@clisp.org>
+
+       quotearg: Fix test failure on MacOS X 10.5.
+       * tests/test-quotearg-simple.c: Include localcharset.h.
+       (main): If the locale encoding is not ASCII, bypass the tests of
+       locale_quoting_style and clocale_quoting_style.
+       * modules/quotearg-tests (Depends-on): Add 'localcharset'.
+
+2012-01-29  Jim Meyering  <meyering@redhat.com>
+
+       maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
+       * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
+       detect uses of canonicalize_file_name.
+
+2012-01-28  Bruno Haible  <bruno@clisp.org>
+
+       test-framework-sh: Fix test failure with AIX 7.1 diff.
+       * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
+       in column 1, like 'diff -c' does.
+       * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
+       whether 'diff -u' is used. Instead, test whether the output contains
+       some '@' character.
+
+2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
+
+       strtoimax: eliminate need for stdint.h, inttypes.h checks
+       * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
+       gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
+       the prerequisites for a recently-introduced strtoimax test.
+       I guess this might cause strtoimax to be replaced when not
+       strictly necessary on older hosts, but this shouldn't introduce
+       any bugs and it should make Emacs 'configure' faster on typical
+       modern hosts.  Problem discovered when importing the latest gnulib
+       to an Emacs test version.
+       * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
+
+2012-01-28  Bruno Haible  <bruno@clisp.org>
+
+       sys_time: Override 'struct timeval' on some native Windows platforms.
+       * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
+       has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
+       (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
+       * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
+       needs to be overridden.
+       (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
+       * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
+       * tests/test-sys_select.c: Check that the tv_sec member has the same
+       size as a 'time_t'.
+       * tests/test-sys_time.c: Likewise.
+       * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
+       is set, set also REPLACE_GETTIMEOFDAY.
+       * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
+       convert the resulting 'struct timeval' before returning.
+       * lib/select.c: Include <sys/time.h>.
+       (select, timeval): Undefine at the right place.
+       * modules/select (Depends-on): Add sys_time.
+       * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
+       some Windows platforms.
+       Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
+
 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
 
        accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.