ttyname_r: Make it work on Solaris 10.
[gnulib.git] / ChangeLog
index 1571c78..9cdd83a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,46 @@
 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.