> Should we define _POSIX_PTHREAD_SEMANTICS? > > Should we document in the INSTALL file that on Solaris, > _POSIX_PTHREAD_SEMANTICS > should be defined? (Like we do for _XOPEN_SOURCE on HP-UX.)
Actually, the gnulib 'extensions' module already ensures that _POSIX_PTHREAD_SEMANTICS gets defined (and likewise _XOPEN_SOURCE on HP-UX). This patch updates the doc accordingly. 2010-04-25 Bruno Haible <[email protected]> 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. --- doc/posix-functions/asctime_r.texi.orig Sun Apr 25 23:00:22 2010 +++ doc/posix-functions/asctime_r.texi Sun Apr 25 22:36:03 2010 @@ -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 @@ 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 --- doc/posix-functions/ctime_r.texi.orig Sun Apr 25 23:00:22 2010 +++ doc/posix-functions/ctime_r.texi Sun Apr 25 22:36:09 2010 @@ -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 @@ 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 --- doc/posix-functions/getgrgid_r.texi.orig Sun Apr 25 23:00:22 2010 +++ doc/posix-functions/getgrgid_r.texi Sun Apr 25 22:36:17 2010 @@ -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 @@ @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 --- doc/posix-functions/getgrnam_r.texi.orig Sun Apr 25 23:00:22 2010 +++ doc/posix-functions/getgrnam_r.texi Sun Apr 25 22:36:23 2010 @@ -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 @@ @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 --- doc/posix-functions/getlogin_r.texi.orig Sun Apr 25 23:00:22 2010 +++ doc/posix-functions/getlogin_r.texi Sun Apr 25 22:39:40 2010 @@ -11,11 +11,11 @@ @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 --- doc/posix-functions/getpwnam_r.texi.orig Sun Apr 25 23:00:22 2010 +++ doc/posix-functions/getpwnam_r.texi Sun Apr 25 22:36:31 2010 @@ -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 @@ @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 --- doc/posix-functions/getpwuid_r.texi.orig Sun Apr 25 23:00:22 2010 +++ doc/posix-functions/getpwuid_r.texi Sun Apr 25 22:36:52 2010 @@ -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 @@ @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 --- doc/posix-functions/readdir_r.texi.orig Sun Apr 25 23:00:22 2010 +++ doc/posix-functions/readdir_r.texi Sun Apr 25 22:36:48 2010 @@ -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 @@ @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 --- doc/posix-functions/sigwait.texi.orig Sun Apr 25 23:00:22 2010 +++ doc/posix-functions/sigwait.texi Sun Apr 25 22:36:41 2010 @@ -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 @@ 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 --- m4/getlogin_r.m4.orig Sun Apr 25 23:00:22 2010 +++ m4/getlogin_r.m4 Sun Apr 25 22:39:29 2010 @@ -1,4 +1,4 @@ -#serial 6 +#serial 7 # Copyright (C) 2005-2007, 2009-2010 Free Software Foundation, Inc. # @@ -16,6 +16,8 @@ AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) dnl Persuade glibc <unistd.h> to declare getlogin_r(). + dnl Persuade Solaris <unistd.h> to provide the POSIX compliant declaration of + dnl getlogin_r(). AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) AC_CHECK_FUNCS_ONCE([getlogin_r])
