Dear Maintainer,
the manpages unlocked_stdio(3) and flockfile(3) indicate that
_POSIX_C_SOURCE should be defined with a value of 199309L in
order to obtain prototypes for:
- flockfile
- ftrylockfile
- funlockfile
- getc_unlocked
- getchar_unlocked
- putc_unlocked
- putchar_unlocked
"_POSIX_C_SOURCE >= 199309L" should instead be "_POSIX_C_SOURCE >=
199506L". This seems to be the case for glibc 2.24 (stretch) as well
as glibc 2.31 (bullseye).
--- manpages-5.10.orig/man3/flockfile.3
+++ manpages-5.10/man3/flockfile.3
@@ -42,7 +42,7 @@
.PP
All functions shown above:
.RS 4
-/* Since glibc 2.24: */ _POSIX_C_SOURCE\ >=\ 199309L
+/* Since glibc 2.24: */ _POSIX_C_SOURCE\ >=\ 199506L
|| /* Glibc versions <= 2.23: */ _POSIX_C_SOURCE
|| /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
.RE
--- manpages-5.10.orig/man3/unlocked_stdio.3
+++ manpages-5.10/man3/unlocked_stdio.3
@@ -73,7 +73,7 @@
.BR putc_unlocked (),
.BR putchar_unlocked ():
.RS 4
-/* Since glibc 2.24: */ _POSIX_C_SOURCE\ >=\ 199309L
+/* Since glibc 2.24: */ _POSIX_C_SOURCE\ >=\ 199506L
|| /* Glibc versions <= 2.23: */ _POSIX_C_SOURCE
|| /* Glibc versions <= 2.19: */ _SVID_SOURCE || _BSD_SOURCE
.RE