+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.
2010-04-21 Simon Josefsson <simon@josefsson.org>
- * tests/test-vasprintf.c: Test %08lx.
+ * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
2010-04-20 Eric Blake <eblake@redhat.com>