From 309fac666a372897d6ffd18b624684cd64bb4f3c Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 25 Apr 2010 23:08:38 +0200 Subject: [PATCH] Use the 'extensions' module for some more functions on Solaris. --- ChangeLog | 15 +++++++++++++++ doc/posix-functions/asctime_r.texi | 8 ++++---- doc/posix-functions/ctime_r.texi | 8 ++++---- doc/posix-functions/getgrgid_r.texi | 8 ++++---- doc/posix-functions/getgrnam_r.texi | 8 ++++---- doc/posix-functions/getlogin_r.texi | 6 +++--- doc/posix-functions/getpwnam_r.texi | 8 ++++---- doc/posix-functions/getpwuid_r.texi | 8 ++++---- doc/posix-functions/readdir_r.texi | 8 ++++---- doc/posix-functions/sigwait.texi | 8 ++++---- m4/getlogin_r.m4 | 4 +++- 11 files changed, 53 insertions(+), 36 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2726d7b12..6260fd3f2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,20 @@ 2010-04-25 Bruno Haible + 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 + 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. diff --git a/doc/posix-functions/asctime_r.texi b/doc/posix-functions/asctime_r.texi index c3464f2d9..bae8a1a04 100644 --- a/doc/posix-functions/asctime_r.texi +++ b/doc/posix-functions/asctime_r.texi @@ -4,10 +4,13 @@ POSIX specification: @url{http://www.opengroup.org/onlinepubs/9699919799/functions/asctime_r.html} -Gnulib module: --- +Gnulib module: extensions Portability problems fixed by Gnulib: @itemize +@item +This function has an incompatible declaration on some platforms: +Solaris 10 (when @code{_POSIX_PTHREAD_SEMANTICS} is not defined). @end itemize Portability problems not fixed by Gnulib: @@ -16,9 +19,6 @@ Portability problems not fixed by Gnulib: This function is missing on some platforms: mingw. @item -This function has an incompatible declaration on some platforms: -Solaris 10 (when @code{_POSIX_PTHREAD_SEMANTICS} is not defined). -@item This function may put more than 26 bytes into the argument buffer if an invalid year is passed. @end itemize diff --git a/doc/posix-functions/ctime_r.texi b/doc/posix-functions/ctime_r.texi index 4e186b6d6..3a0508322 100644 --- a/doc/posix-functions/ctime_r.texi +++ b/doc/posix-functions/ctime_r.texi @@ -4,10 +4,13 @@ POSIX specification: @url{http://www.opengroup.org/onlinepubs/9699919799/functions/ctime_r.html} -Gnulib module: --- +Gnulib module: extensions Portability problems fixed by Gnulib: @itemize +@item +This function has an incompatible declaration on some platforms: +Solaris 10 (when @code{_POSIX_PTHREAD_SEMANTICS} is not defined). @end itemize Portability problems not fixed by Gnulib: @@ -16,9 +19,6 @@ Portability problems not fixed by Gnulib: This function is missing on some platforms: mingw. @item -This function has an incompatible declaration on some platforms: -Solaris 10 (when @code{_POSIX_PTHREAD_SEMANTICS} is not defined). -@item This function may put more than 26 bytes into the argument buffer if an invalid year is passed. @end itemize diff --git a/doc/posix-functions/getgrgid_r.texi b/doc/posix-functions/getgrgid_r.texi index f5d40fea0..2f1c5c849 100644 --- a/doc/posix-functions/getgrgid_r.texi +++ b/doc/posix-functions/getgrgid_r.texi @@ -4,10 +4,13 @@ POSIX specification: @url{http://www.opengroup.org/onlinepubs/9699919799/functions/getgrgid_r.html} -Gnulib module: --- +Gnulib module: extensions Portability problems fixed by Gnulib: @itemize +@item +This function has an incompatible declaration on some platforms: +Solaris 10 (when @code{_POSIX_PTHREAD_SEMANTICS} is not defined). @end itemize Portability problems not fixed by Gnulib: @@ -15,7 +18,4 @@ Portability problems not fixed by Gnulib: @item This function is missing on some platforms: mingw, BeOS. -@item -This function has an incompatible declaration on some platforms: -Solaris 10 (when @code{_POSIX_PTHREAD_SEMANTICS} is not defined). @end itemize diff --git a/doc/posix-functions/getgrnam_r.texi b/doc/posix-functions/getgrnam_r.texi index 04dd2cfe6..02d31448a 100644 --- a/doc/posix-functions/getgrnam_r.texi +++ b/doc/posix-functions/getgrnam_r.texi @@ -4,10 +4,13 @@ POSIX specification: @url{http://www.opengroup.org/onlinepubs/9699919799/functions/getgrnam_r.html} -Gnulib module: --- +Gnulib module: extensions Portability problems fixed by Gnulib: @itemize +@item +This function has an incompatible declaration on some platforms: +Solaris 10 (when @code{_POSIX_PTHREAD_SEMANTICS} is not defined). @end itemize Portability problems not fixed by Gnulib: @@ -15,7 +18,4 @@ Portability problems not fixed by Gnulib: @item This function is missing on some platforms: mingw, BeOS. -@item -This function has an incompatible declaration on some platforms: -Solaris 10 (when @code{_POSIX_PTHREAD_SEMANTICS} is not defined). @end itemize diff --git a/doc/posix-functions/getlogin_r.texi b/doc/posix-functions/getlogin_r.texi index ba8f52416..aaecea611 100644 --- a/doc/posix-functions/getlogin_r.texi +++ b/doc/posix-functions/getlogin_r.texi @@ -11,11 +11,11 @@ Portability problems fixed by Gnulib: @item This function is missing on some platforms: NetBSD 3.0, mingw. +@item +This function has an incompatible declaration on some platforms: +Solaris 10 (when @code{_POSIX_PTHREAD_SEMANTICS} is not defined). @end itemize Portability problems not fixed by Gnulib: @itemize -@item -This function has an incompatible declaration on some platforms: -Solaris 10 (when @code{_POSIX_PTHREAD_SEMANTICS} is not defined). @end itemize diff --git a/doc/posix-functions/getpwnam_r.texi b/doc/posix-functions/getpwnam_r.texi index 66616d58f..91b6ca215 100644 --- a/doc/posix-functions/getpwnam_r.texi +++ b/doc/posix-functions/getpwnam_r.texi @@ -4,10 +4,13 @@ POSIX specification: @url{http://www.opengroup.org/onlinepubs/9699919799/functions/getpwnam_r.html} -Gnulib module: --- +Gnulib module: extensions Portability problems fixed by Gnulib: @itemize +@item +This function has an incompatible declaration on some platforms: +Solaris 10 (when @code{_POSIX_PTHREAD_SEMANTICS} is not defined). @end itemize Portability problems not fixed by Gnulib: @@ -15,7 +18,4 @@ Portability problems not fixed by Gnulib: @item This function is missing on some platforms: OpenBSD 3.8, mingw, BeOS. -@item -This function has an incompatible declaration on some platforms: -Solaris 10 (when @code{_POSIX_PTHREAD_SEMANTICS} is not defined). @end itemize diff --git a/doc/posix-functions/getpwuid_r.texi b/doc/posix-functions/getpwuid_r.texi index d38541ca3..8e90a779c 100644 --- a/doc/posix-functions/getpwuid_r.texi +++ b/doc/posix-functions/getpwuid_r.texi @@ -4,10 +4,13 @@ POSIX specification: @url{http://www.opengroup.org/onlinepubs/9699919799/functions/getpwuid_r.html} -Gnulib module: --- +Gnulib module: extensions Portability problems fixed by Gnulib: @itemize +@item +This function has an incompatible declaration on some platforms: +Solaris 10 (when @code{_POSIX_PTHREAD_SEMANTICS} is not defined). @end itemize Portability problems not fixed by Gnulib: @@ -15,7 +18,4 @@ Portability problems not fixed by Gnulib: @item This function is missing on some platforms: OpenBSD 3.8, mingw, BeOS. -@item -This function has an incompatible declaration on some platforms: -Solaris 10 (when @code{_POSIX_PTHREAD_SEMANTICS} is not defined). @end itemize diff --git a/doc/posix-functions/readdir_r.texi b/doc/posix-functions/readdir_r.texi index bb90c2edf..a0f7f789a 100644 --- a/doc/posix-functions/readdir_r.texi +++ b/doc/posix-functions/readdir_r.texi @@ -4,10 +4,13 @@ POSIX specification: @url{http://www.opengroup.org/onlinepubs/9699919799/functions/readdir_r.html} -Gnulib module: --- +Gnulib module: extensions Portability problems fixed by Gnulib: @itemize +@item +This function has an incompatible declaration on some platforms: +Solaris 10 (when @code{_POSIX_PTHREAD_SEMANTICS} is not defined). @end itemize Portability problems not fixed by Gnulib: @@ -15,7 +18,4 @@ Portability problems not fixed by Gnulib: @item This function is missing on some platforms: mingw, BeOS. -@item -This function has an incompatible declaration on some platforms: -Solaris 10 (when @code{_POSIX_PTHREAD_SEMANTICS} is not defined). @end itemize diff --git a/doc/posix-functions/sigwait.texi b/doc/posix-functions/sigwait.texi index 21fb89d30..15bc4002e 100644 --- a/doc/posix-functions/sigwait.texi +++ b/doc/posix-functions/sigwait.texi @@ -4,10 +4,13 @@ POSIX specification: @url{http://www.opengroup.org/onlinepubs/9699919799/functions/sigwait.html} -Gnulib module: --- +Gnulib module: extensions Portability problems fixed by Gnulib: @itemize +@item +This function has an incompatible declaration on some platforms: +Solaris 10 (when @code{_POSIX_PTHREAD_SEMANTICS} is not defined). @end itemize Portability problems not fixed by Gnulib: @@ -16,9 +19,6 @@ Portability problems not fixed by Gnulib: This function is missing on some platforms: mingw, BeOS. @item -This function has an incompatible declaration on some platforms: -Solaris 10 (when @code{_POSIX_PTHREAD_SEMANTICS} is not defined). -@item On Linux/glibc platforms before the advent of NPTL, signals could only be sent to one particular thread. In POSIX, signals are sent to the entire process and executed by any thread of the process that happens to have the diff --git a/m4/getlogin_r.m4 b/m4/getlogin_r.m4 index 236872c96..5d6f1b2e7 100644 --- a/m4/getlogin_r.m4 +++ b/m4/getlogin_r.m4 @@ -1,4 +1,4 @@ -#serial 6 +#serial 7 # Copyright (C) 2005-2007, 2009-2010 Free Software Foundation, Inc. # @@ -16,6 +16,8 @@ AC_DEFUN([gl_FUNC_GETLOGIN_R], AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) dnl Persuade glibc to declare getlogin_r(). + dnl Persuade Solaris to provide the POSIX compliant declaration of + dnl getlogin_r(). AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) AC_CHECK_FUNCS_ONCE([getlogin_r]) -- 2.11.0