ttyname_r: Make it work on Solaris 10.
[gnulib.git] / ChangeLog
index 7098e41..9cdd83a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,246 @@
+2010-04-25  Bruno Haible  <bruno@clisp.org>
+
+       ttyname_r: Make it work on Solaris 10.
+       * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
+       if the system function has the POSIX declaration. Test whether the
+       function fails if the buffer is less than 128 bytes large.
+       * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
+       system's ttyname_r function. Provide a reasonably large buffer.
+       * modules/ttyname_r (Depends-on): Add extensions.
+       * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
+
+2010-04-25  Bruno Haible  <bruno@clisp.org>
+
+       Use the 'extensions' module for some more functions on Solaris.
+       * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
+       module.
+       * doc/posix-functions/ctime_r.texi: Likewise.
+       * doc/posix-functions/getgrgid_r.texi: Likewise.
+       * doc/posix-functions/getgrnam_r.texi: Likewise.
+       * doc/posix-functions/getpwnam_r.texi: Likewise.
+       * doc/posix-functions/getpwuid_r.texi: Likewise.
+       * doc/posix-functions/readdir_r.texi: Likewise.
+       * doc/posix-functions/sigwait.texi: Likewise.
+       * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
+       * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
+
+2010-04-25  Bruno Haible  <bruno@clisp.org>
+
+       ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
+       * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
+       has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
+       * lib/ttyname_r.c: Include <limits.h>.
+       (ttyname_r): Define using the system's ttyname_r function, if it exists
+       and not on Solaris.
+       * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
+       set.
+       * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
+       * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
+       * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
+       Reported by Simon Josefsson.
+
+2010-04-25  Bruno Haible  <bruno@clisp.org>
+
+       Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
+       * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
+       * doc/posix-functions/ctime_r.texi: Likewise.
+       * doc/posix-functions/getgrgid_r.texi: Likewise.
+       * doc/posix-functions/getgrnam_r.texi: Likewise.
+       * doc/posix-functions/getlogin_r.texi: Likewise.
+       * doc/posix-functions/getpwnam_r.texi: Likewise.
+       * doc/posix-functions/getpwuid_r.texi: Likewise.
+       * doc/posix-functions/readdir_r.texi: Likewise.
+       * doc/posix-functions/sigwait.texi: Likewise.
+       * doc/posix-functions/ttyname_r.texi: Likewise.
+       Reported by Simon Josefsson.
+
+2010-04-25  Bruno Haible  <bruno@clisp.org>
+
+       gnulib-tool: Don't include hairy tests of dependencies in testdirs.
+       * gnulib-tool (func_usage): Document that --with-*-tests options apply
+       also to --create-testdir.
+       (func_acceptable): Don't consider the status of *-tests modules here.
+       (func_modules_transitive_closure): Consider it here, before including a
+       test module.
+       (func_import, func_create_testdir): Set inc_all_direct_tests,
+       inc_all_indirect_tests.
+       * doc/gnulib.texi (Extra tests modules): Document new behaviour of
+       --create-testdir and --create-megatestdir.
+
+2010-04-25  Bruno Haible  <bruno@clisp.org>
+
+       gnulib-tool: Add --without-*-tests options.
+       * gnulib-tool (func_usage): Document the --without-*-tests options.
+       (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
+       excl_unportable_tests): New variables.
+       Fail if they are specified with --import or --update.
+       (func_acceptable): Respect the excl_*_tests variables.
+       (func_import): Set the excl_*_tests variables to empty.
+
+2010-04-25  Simon Josefsson  <simon@josefsson.org>
+            Bruno Haible  <bruno@clisp.org>
+
+       Work around a MacOS X 10.4 bug with openpty.
+       * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
+       * tests/test-openpty.c (main): Close the master side explicitly.
+
+2010-04-25  Bruno Haible  <bruno@clisp.org>
+
+       strnlen: Fix a C++ test error on MacOS X and Solaris.
+       * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
+       the function is not declared.
+       Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
+       Simon Josefsson.
+
+2010-04-24  Bruno Haible  <bruno@clisp.org>
+
+       Avoid a gcc warning.
+       * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
+       of correct type for %08lx directive.
+       Reported by Eric Blake.
+
+2010-04-24  Bruno Haible  <bruno@clisp.org>
+
+       vasnprintf: Correct errno value in case of out-of-memory.
+       * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
+       or sprintf. Use the errno value from SNPRINTF or sprintf.
+       Reported by Ian Beckwith <ianb@erislabs.net>.
+
+2010-04-24  Bruno Haible  <bruno@clisp.org>
+
+       ansi-c++-opt: Find correct compiler when cross-compiling.
+       * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
+       AC_CHECK_PROGS.
+       Reported by Simon Josefsson.
+
+2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
+
+       vc-list-files: Add support for subversion
+       * build-aux/vc-list-files: Use "svn list" to generate the list of
+       files controlled by subversion.
+
+2010-04-23  Jim Meyering  <meyering@redhat.com>
+
+       vc-list-files tests: convert to use init.sh
+       * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
+       path_prepend_.
+       Use Exit, not exit.
+       Use skip_ rather than open coding it.
+       Remove trap set-up and compare definitions.
+       * tests/test-vc-list-files-git.sh: Likewise.
+       * modules/vc-list-files-tests (Files): Add tests/init.sh.
+
+2010-04-22  Simon Josefsson  <simon@josefsson.org>
+
+       * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
+       backup files.
+
+2010-04-21  Simon Josefsson  <simon@josefsson.org>
+
+       * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
+
+2010-04-20  Eric Blake  <eblake@redhat.com>
+
+       tests: be robust to ignored SIGPIPE
+       * tests/test-select-in.sh: Consume all output.
+       * tests/test-lseek.sh: Check correct exit status, while avoiding
+       EPIPE.
+
+2010-04-20  Simon Josefsson  <simon@josefsson.org>
+            Bruno Haible  <bruno@clisp.org>
+
+       visibility: Don't use -fvisibility if it leads to a warning.
+       * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
+       yes, don't pretend that visibility works if it leads to a warning.
+       Reported by Mike Gran <spk121@yahoo.com>.
+
+2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
+
+       * build-aux/bootstrap: Use "git -h" for testing for supported options
+       instead of "git --help".  The short-form option only shows a summary,
+       and doesn't layout the full man page.  Grep for the full option name
+       in the summary, too.
+
+2010-04-19  Bruno Haible  <bruno@clisp.org>
+
+       relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
+       * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
+       * doc/relocatable-maint.texi (Supporting Relocation): Remove the
+       mention of RELOCATABLE_STRIP.
+       Reported by Sylvain Beucler <beuc@beuc.net>.
+
+2010-04-19  Bruno Haible  <bruno@clisp.org>
+
+       * lib/diffseq.h: Fix typo in comment.
+       Reported by Eric Blake.
+
+2010-04-19  Bruno Haible  <bruno@clisp.org>
+
+       ioctl: Move autoconf macro to a .m4 file.
+       * m4/ioctl.m4: New file, extracted from modules/ioctl.
+       * modules/ioctl (Files): Add it.
+       (configure.ac): Simply invoke gl_FUNC_IOCTL.
+       Reported by Ian Beckwith <ianb@erislabs.net>.
+
+2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
+            Bruno Haible  <bruno@clisp.org>
+
+       diffseq: Accommodate use-case with abstract arrays.
+       * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
+       is not defined.
+       (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
+       defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
+
+2010-04-18  Bruno Haible  <bruno@clisp.org>
+
+       * doc/posix-headers/stdbool.texi: More precise wording.
+
+2010-04-17  Jim Meyering  <meyering@redhat.com>
+
+       maint.mk: use gnu-style indentation in an embedded perl script
+       * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
+       Rename variable: s/two/last_two_bytes/
+
+2010-04-16  Eric Blake  <eblake@redhat.com>
+
+       test-stdbool: skip test that fails with Solaris CC
+       * tests/test-stdbool.c (f): Skip test that causes compilation
+       error under buggy C++ compiler.
+       * lib/stdbool.in.h: Document the limitation.
+       * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
+
+       setenv: allow compilation with C++
+       * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
+       register keyword.
+
+       stdint: allow test to pass with C++
+       * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
+
+       getopt: allow compilation with C++
+       * lib/getopt_int.h (__ordering): Hoist enum declaration outside
+       struct.
+       * lib/getopt.c (_getopt_internal_r): Use correct type.
+       Reported by Dagobert Michelson, via Joel E. Denny.
+
+2010-04-16  Bruno Haible  <bruno@clisp.org>
+
+       Override netdb.h always.
+       * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
+       * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
+       Reported by Ludovic Courtès <ludo@gnu.org>.
+
+2010-04-15  Bruno Haible  <bruno@clisp.org>
+
+       openpty: Fix mistake from 2010-03-21.
+       * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
+       Reported by Simon Josefsson.
+
+2010-04-15  Eric Blake  <eblake@redhat.com>
+
+       test-forkpty: fix expected signature
+       * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
+       Reported by Simon Josefsson.
+
 2010-04-15  Jim Meyering  <meyering@redhat.com>
 
        maint.mk: texinfo_suffix_re_: correct the default regexp