POSIX:2024 added qsort_r with the same signature as glibc has (unlike the FreeBSD < 14 one). This patch updates the documentation accordingly.
2024-12-29 Bruno Haible <br...@clisp.org> qsort_r: Update documentation. * modules/qsort_r (Description): Say "POSIX signature". * doc/posix-functions/qsort_r.texi: Mention the qsort_r module. diff --git a/doc/posix-functions/qsort_r.texi b/doc/posix-functions/qsort_r.texi index a26c817be0..98248ec233 100644 --- a/doc/posix-functions/qsort_r.texi +++ b/doc/posix-functions/qsort_r.texi @@ -6,7 +6,8 @@ Documentation:@* @uref{https://www.kernel.org/doc/man-pages/online/pages/man3/qsort_r.3.html,,man qsort_r} -Gnulib module: --- +Gnulib module: qsort_r +@mindex qsort_r Portability problems fixed by Gnulib: @itemize @@ -15,7 +16,7 @@ glibc 2.7, NetBSD 10.0, OpenBSD 7.5, Minix 3.1.8, AIX 7.1, HP-UX 11.31, Solaris 11.4, Cygwin 1.7.x, mingw, MSVC 14, Android 9.0. @item This function has an incompatible API on some platforms: -FreeBSD 13.2. +FreeBSD 13.4. @end itemize Portability problems not fixed by Gnulib: diff --git a/modules/qsort_r b/modules/qsort_r index 22f51f895f..4516ac4e17 100644 --- a/modules/qsort_r +++ b/modules/qsort_r @@ -1,5 +1,5 @@ Description: -Reentrant sort function with GNU signature +Reentrant sort function with POSIX signature Files: lib/qsort.c @@ -14,7 +14,7 @@ configure.ac: gl_FUNC_QSORT_R dnl If the function is missing from the system or has an unknown signature: gl_CONDITIONAL([GL_COND_OBJ_QSORT], [test $HAVE_QSORT_R = 0]) -dnl If the function exists, but it has the BSD signature: +dnl If the function exists, but it has the FreeBSD signature: gl_CONDITIONAL([GL_COND_OBJ_QSORT_R], [test $HAVE_QSORT_R = 1 && test $REPLACE_QSORT_R = 1]) gl_STDLIB_MODULE_INDICATOR([qsort_r])