Tests for module 'ptsname'.
[gnulib.git] / ChangeLog
index 3b8e0cd..60f1da7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,148 @@
+2010-03-21  Bruno Haible  <bruno@clisp.org>
+
+       Tests for module 'ptsname'.
+       * modules/ptsname-tests: New file.
+       * tests/test-ptsname.c: New file.
+
+       New module 'ptsname'.
+       * lib/ptsname.c: New file, from glibc with modifications.
+       * m4/ptsname.m4: New file.
+       * modules/ptsname: New file.
+       * lib/stdlib.in.h (ptsname): New declaration.
+       * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
+       (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
+       * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
+       HAVE_PTSNAME.
+       * doc/posix-functions/ptsname.texi: Mention the new module.
+       * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
+       * config/srclist.txt: Add ptsname.c (commented).
+
+2010-03-21  Bruno Haible  <bruno@clisp.org>
+
+       Tests for module 'ttyname_r'.
+       * modules/ttyname_r-tests: New file.
+       * tests/test-ttyname_r.c: New file.
+
+       New module 'ttyname_r'.
+       * lib/ttyname_r.c: New file.
+       * m4/ttyname_r.m4: New file.
+       * modules/ttyname_r: New file.
+       * lib/unistd.in.h (ttyname_r): New declaration.
+       * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
+       (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
+       * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
+       HAVE_TTYNAME_R.
+       * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
+       * doc/posix-functions/ttyname_r.texi: Mention the new module.
+
+2010-03-20  Bruno Haible  <bruno@clisp.org>
+
+       signal: Undefine macro definitions in C++ mode.
+       * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
+       sigfillset): Undefine macro definitions from the system header in C++
+       mode.
+       Reported by John W. Eaton <jwe@gnu.org>.
+
+2010-03-20  Bruno Haible  <bruno@clisp.org>
+
+       Ensure no #include statements inside extern "C" { ... }.
+       * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
+       contain #include statements.
+       * lib/time.in.h: Likewise.
+
+2010-03-20  Bruno Haible  <bruno@clisp.org>
+
+       Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
+       * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
+       (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
+       Reported by John W. Eaton <jwe@gnu.org>.
+
+2010-03-20  Bruno Haible  <bruno@clisp.org>
+
+       * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
+       Reported by Jim Meyering.
+
+2010-03-20  Bruno Haible  <bruno@clisp.org>
+
+       pipe: Set errno upon failure.
+       * lib/pipe.h: Specify that when -1 is returned, errno is set.
+       * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
+       errno value in error message.
+
+2010-03-20  Bruno Haible  <bruno@clisp.org>
+            Jim Meyering  <meyering@redhat.com>
+
+       lchown: Avoid "unused variable" warning.
+       * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
+
+2010-03-20  Bruno Haible  <bruno@clisp.org>
+
+       Work around unlink() bug on MacOS X 10.5.6.
+       * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
+       attempting to unlink a parent directory.
+       * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
+       MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
+       activate for the replacement function.
+       * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
+
+2010-03-20  Bruno Haible  <bruno@clisp.org>
+
+       Fix link errors on Solaris 8.
+       * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
+       * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
+
+2010-03-19  Jim Meyering  <meyering@redhat.com>
+
+       regcomp.c: make non-_LIBC implementation of build_range_exp consistent
+       The _LIBC implementation of build_range_exp correctly honors the
+       RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
+       However, the non-_LIBC implementation would ignore that syntax-bit
+       flag and return REG_ERANGE unconditionally.
+       This change makes it honor that flag.
+       * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
+       Make two pointer parameters "const".
+       Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
+       (parse_bracket_exp): Update caller.
+
+       regex.m4: correct the reversed range endpoint ([b-a]) test
+       * m4/regex.m4: When requiring that [b-a] evoke failure,
+       use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
+       test pass once again for x86-based systems.
+
+2010-03-19  Bruno Haible  <bruno@clisp.org>
+
+       scandir: Fix link error on Solaris 8.
+       * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
+       macros.
+
+2010-03-19  Bruno Haible  <bruno@clisp.org>
+
+       getusershell: Fix documentation.
+       * doc/glibc-functions/endusershell.texi: Refer to the getusershell
+       module.
+       * doc/glibc-functions/setusershell.texi: Likewise.
+
+       getusershell: Provide declaration, missing on Solaris 9.
+       * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
+       also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
+       * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
+       check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
+       * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
+       HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
+       * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
+       HAVE_GETUSERSHELL.
+       * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
+
+2010-03-19  Bruno Haible  <bruno@clisp.org>
+
+       wctype: Provide iswblank function.
+       * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
+       exists and is fine.
+       * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
+       * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
+       * tests/test-wctype.c (main): Re-enable the iswblank tests.
+       * doc/posix-functions/iswblank.texi: Update.
+
 2010-03-19  Bruno Haible  <bruno@clisp.org>
 
        Tests of module 'pty' in C++ mode.