From 1dd0d7b4e4c99235f5e9a7aa8b9eb8aff266de0c Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Tue, 5 Jan 2021 13:21:30 +0100 Subject: [PATCH] Various pages: ffix: More layout consistency fixes for FTMs Signed-off-by: Michael Kerrisk --- man2/futimesat.2 | 4 +++- man2/getrlimit.2 | 4 +++- man2/nanosleep.2 | 4 +++- man2/select.2 | 4 +++- man2/semop.2 | 4 +++- man2/sigwaitinfo.2 | 4 +++- man2/timer_create.2 | 4 +++- man2/timer_delete.2 | 4 +++- man2/timer_getoverrun.2 | 4 +++- man2/timer_settime.2 | 4 +++- man3/confstr.3 | 2 +- man3/ctermid.3 | 2 +- man3/exec.3 | 4 +++- man3/ferror.3 | 4 +++- man3/fopen.3 | 4 +++- man3/ftw.3 | 4 +++- man3/getenv.3 | 4 +++- man3/getgrent_r.3 | 4 +++- man3/getlogin.3 | 4 +++- man3/group_member.3 | 4 +++- man3/memchr.3 | 4 +++- man3/psignal.3 | 6 ++++-- man3/pthread_sigqueue.3 | 4 +++- man3/sem_wait.3 | 4 +++- man3/setjmp.3 | 4 +++- man3/sigqueue.3 | 4 +++- man3/tzset.3 | 8 ++++++-- man3/wordexp.3 | 4 +++- 28 files changed, 84 insertions(+), 30 deletions(-) diff --git a/man2/futimesat.2 b/man2/futimesat.2 index 7b8144c5f..6ac9a9200 100644 --- a/man2/futimesat.2 +++ b/man2/futimesat.2 @@ -41,7 +41,9 @@ Feature Test Macro Requirements for glibc (see .RE .PP .BR futimesat (): -_GNU_SOURCE +.nf + _GNU_SOURCE +.fi .SH DESCRIPTION This system call is obsolete. Use diff --git a/man2/getrlimit.2 b/man2/getrlimit.2 index 417532ea0..c58c81129 100644 --- a/man2/getrlimit.2 +++ b/man2/getrlimit.2 @@ -82,7 +82,9 @@ Feature Test Macro Requirements for glibc (see .RE .PP .BR prlimit (): -_GNU_SOURCE +.nf + _GNU_SOURCE +.fi .SH DESCRIPTION The .BR getrlimit () diff --git a/man2/nanosleep.2 b/man2/nanosleep.2 index 248cfb157..6d62a6d45 100644 --- a/man2/nanosleep.2 +++ b/man2/nanosleep.2 @@ -47,7 +47,9 @@ Feature Test Macro Requirements for glibc (see .RE .PP .BR nanosleep (): -_POSIX_C_SOURCE\ >=\ 199309L +.nf + _POSIX_C_SOURCE\ >=\ 199309L +.fi .SH DESCRIPTION .BR nanosleep () suspends the execution of the calling thread diff --git a/man2/select.2 b/man2/select.2 index 65ddf5c41..68e5a6b59 100644 --- a/man2/select.2 +++ b/man2/select.2 @@ -64,7 +64,9 @@ Feature Test Macro Requirements for glibc (see .RE .PP .BR pselect (): -_POSIX_C_SOURCE\ >=\ 200112L +.nf + _POSIX_C_SOURCE\ >=\ 200112L +.fi .SH DESCRIPTION .BR select () allows a program to monitor multiple file descriptors, diff --git a/man2/semop.2 b/man2/semop.2 index 99de83b68..77db49f82 100644 --- a/man2/semop.2 +++ b/man2/semop.2 @@ -52,7 +52,9 @@ Feature Test Macro Requirements for glibc (see .RE .PP .BR semtimedop (): -_GNU_SOURCE +.nf + _GNU_SOURCE +.fi .SH DESCRIPTION Each semaphore in a System\ V semaphore set has the following associated values: diff --git a/man2/sigwaitinfo.2 b/man2/sigwaitinfo.2 index 87eaf39aa..a3fd0a556 100644 --- a/man2/sigwaitinfo.2 +++ b/man2/sigwaitinfo.2 @@ -42,7 +42,9 @@ Feature Test Macro Requirements for glibc (see .PP .BR sigwaitinfo (), .BR sigtimedwait (): -_POSIX_C_SOURCE\ >=\ 199309L +.nf + _POSIX_C_SOURCE\ >=\ 199309L +.fi .SH DESCRIPTION .BR sigwaitinfo () suspends execution of the calling thread until one of the signals in diff --git a/man2/timer_create.2 b/man2/timer_create.2 index 2184793cd..abd561c0e 100644 --- a/man2/timer_create.2 +++ b/man2/timer_create.2 @@ -43,7 +43,9 @@ Feature Test Macro Requirements for glibc (see .RE .PP .BR timer_create (): -_POSIX_C_SOURCE\ >=\ 199309L +.nf + _POSIX_C_SOURCE\ >=\ 199309L +.fi .SH DESCRIPTION .BR timer_create () creates a new per-process interval timer. diff --git a/man2/timer_delete.2 b/man2/timer_delete.2 index deb1cd900..1d2420da6 100644 --- a/man2/timer_delete.2 +++ b/man2/timer_delete.2 @@ -41,7 +41,9 @@ Feature Test Macro Requirements for glibc (see .RE .PP .BR timer_delete (): -_POSIX_C_SOURCE\ >=\ 199309L +.nf + _POSIX_C_SOURCE\ >=\ 199309L +.fi .SH DESCRIPTION .BR timer_delete () deletes the timer whose ID is given in diff --git a/man2/timer_getoverrun.2 b/man2/timer_getoverrun.2 index 09a83ea17..48d8b9fab 100644 --- a/man2/timer_getoverrun.2 +++ b/man2/timer_getoverrun.2 @@ -41,7 +41,9 @@ Feature Test Macro Requirements for glibc (see .RE .PP .BR timer_getoverrun (): -_POSIX_C_SOURCE\ >=\ 199309L +.nf + _POSIX_C_SOURCE\ >=\ 199309L +.fi .SH DESCRIPTION .BR timer_getoverrun () returns the "overrun count" for the timer referred to by diff --git a/man2/timer_settime.2 b/man2/timer_settime.2 index b7c20c04b..19b850920 100644 --- a/man2/timer_settime.2 +++ b/man2/timer_settime.2 @@ -46,7 +46,9 @@ Feature Test Macro Requirements for glibc (see .PP .BR timer_settime (), .BR timer_gettime (): -_POSIX_C_SOURCE\ >=\ 199309L +.nf + _POSIX_C_SOURCE\ >=\ 199309L +.fi .SH DESCRIPTION .BR timer_settime () arms or disarms the timer identified by diff --git a/man3/confstr.3 b/man3/confstr.3 index 96fb69805..73da5f067 100644 --- a/man3/confstr.3 +++ b/man3/confstr.3 @@ -46,7 +46,7 @@ Feature Test Macro Requirements for glibc (see .RE .PP .BR confstr (): -_POSIX_C_SOURCE\ >=\ 2 || _XOPEN_SOURCE + _POSIX_C_SOURCE\ >=\ 2 || _XOPEN_SOURCE .SH DESCRIPTION .BR confstr () gets the value of configuration-dependent string variables. diff --git a/man3/ctermid.3 b/man3/ctermid.3 index f928aa31e..b0f51df8e 100644 --- a/man3/ctermid.3 +++ b/man3/ctermid.3 @@ -41,7 +41,7 @@ Feature Test Macro Requirements for glibc (see .RE .PP .BR ctermid (): -_POSIX_C_SOURCE + _POSIX_C_SOURCE .SH DESCRIPTION .BR ctermid () returns a string which is the pathname for the current diff --git a/man3/exec.3 b/man3/exec.3 index d7c843a37..d9dd99f1e 100644 --- a/man3/exec.3 +++ b/man3/exec.3 @@ -65,7 +65,9 @@ Feature Test Macro Requirements for glibc (see .RE .PP .BR execvpe (): -_GNU_SOURCE +.nf + _GNU_SOURCE +.fi .SH DESCRIPTION The .BR exec () diff --git a/man3/ferror.3 b/man3/ferror.3 index 5c59fc97d..d28afd036 100644 --- a/man3/ferror.3 +++ b/man3/ferror.3 @@ -60,7 +60,9 @@ Feature Test Macro Requirements for glibc (see .RE .PP .BR fileno (): -_POSIX_C_SOURCE +.nf + _POSIX_C_SOURCE +.fi .SH DESCRIPTION The function .BR clearerr () diff --git a/man3/fopen.3 b/man3/fopen.3 index bbb4fbc39..2af5ca797 100644 --- a/man3/fopen.3 +++ b/man3/fopen.3 @@ -59,7 +59,9 @@ Feature Test Macro Requirements for glibc (see .RE .PP .BR fdopen (): -_POSIX_C_SOURCE +.nf + _POSIX_C_SOURCE +.fi .SH DESCRIPTION The .BR fopen () diff --git a/man3/ftw.3 b/man3/ftw.3 index 8f871c007..8c5bc0279 100644 --- a/man3/ftw.3 +++ b/man3/ftw.3 @@ -59,7 +59,9 @@ Feature Test Macro Requirements for glibc (see .RE .PP .BR nftw (): -_XOPEN_SOURCE >= 500 +.nf + _XOPEN_SOURCE >= 500 +.fi .SH DESCRIPTION .BR nftw () walks through the directory tree that is diff --git a/man3/getenv.3 b/man3/getenv.3 index 665278bdf..04e55406d 100644 --- a/man3/getenv.3 +++ b/man3/getenv.3 @@ -47,7 +47,9 @@ Feature Test Macro Requirements for glibc (see .RE .PP .BR secure_getenv (): -_GNU_SOURCE +.nf + _GNU_SOURCE +.fi .SH DESCRIPTION The .BR getenv () diff --git a/man3/getgrent_r.3 b/man3/getgrent_r.3 index 22c8e5266..fc8179009 100644 --- a/man3/getgrent_r.3 +++ b/man3/getgrent_r.3 @@ -40,7 +40,9 @@ Feature Test Macro Requirements for glibc (see .RE .PP .BR getgrent_r (): -_GNU_SOURCE +.nf + _GNU_SOURCE +.fi .\" FIXME . The FTM requirements seem inconsistent here. File a glibc bug? .PP .BR fgetgrent_r (): diff --git a/man3/getlogin.3 b/man3/getlogin.3 index 714e56f75..14cc89d18 100644 --- a/man3/getlogin.3 +++ b/man3/getlogin.3 @@ -46,8 +46,10 @@ Feature Test Macro Requirements for glibc (see .RE .PP .BR getlogin_r (): +.nf .\" Deprecated: _REENTRANT || -_POSIX_C_SOURCE\ >=\ 199506L + _POSIX_C_SOURCE\ >=\ 199506L +.fi .PP .BR cuserid (): .nf diff --git a/man3/group_member.3 b/man3/group_member.3 index 6647eef34..b00323167 100644 --- a/man3/group_member.3 +++ b/man3/group_member.3 @@ -38,7 +38,9 @@ Feature Test Macro Requirements for glibc (see .RE .PP .BR group_member (): -_GNU_SOURCE +.nf + _GNU_SOURCE +.fi .SH DESCRIPTION The .BR group_member () diff --git a/man3/memchr.3 b/man3/memchr.3 index d9437ceb2..c696d02e0 100644 --- a/man3/memchr.3 +++ b/man3/memchr.3 @@ -48,7 +48,9 @@ Feature Test Macro Requirements for glibc (see .PP .BR memrchr (), .BR rawmemchr (): -_GNU_SOURCE +.nf + _GNU_SOURCE +.fi .SH DESCRIPTION The .BR memchr () diff --git a/man3/psignal.3 b/man3/psignal.3 index 3140d1b60..0aef5fa80 100644 --- a/man3/psignal.3 +++ b/man3/psignal.3 @@ -45,12 +45,14 @@ Feature Test Macro Requirements for glibc (see .PP .BR psignal (): Since glibc 2.19: - _DEFAULT_SOURCE + _DEFAULT_SOURCE Glibc 2.19 and earlier: _BSD_SOURCE || _SVID_SOURCE .PP .BR psiginfo (): -_POSIX_C_SOURCE\ >=\ 200809L +.nf + _POSIX_C_SOURCE\ >=\ 200809L +.fi .SH DESCRIPTION The .BR psignal () diff --git a/man3/pthread_sigqueue.3 b/man3/pthread_sigqueue.3 index 46eb2bddb..a71be39ff 100644 --- a/man3/pthread_sigqueue.3 +++ b/man3/pthread_sigqueue.3 @@ -42,7 +42,9 @@ Feature Test Macro Requirements for glibc (see .RE .PP .BR pthread_sigqueue (): -_GNU_SOURCE +.nf + _GNU_SOURCE +.fi .SH DESCRIPTION The .BR pthread_sigqueue () diff --git a/man3/sem_wait.3 b/man3/sem_wait.3 index a098729f6..fa970b498 100644 --- a/man3/sem_wait.3 +++ b/man3/sem_wait.3 @@ -42,7 +42,9 @@ Feature Test Macro Requirements for glibc (see .RE .PP .BR sem_timedwait (): -_POSIX_C_SOURCE\ >=\ 200112L +.nf + _POSIX_C_SOURCE\ >=\ 200112L +.fi .SH DESCRIPTION .BR sem_wait () decrements (locks) the semaphore pointed to by diff --git a/man3/setjmp.3 b/man3/setjmp.3 index 1621ba4e4..50bbcc679 100644 --- a/man3/setjmp.3 +++ b/man3/setjmp.3 @@ -44,7 +44,9 @@ Feature Test Macro Requirements for glibc (see see NOTES. .PP .BR sigsetjmp (): -_POSIX_C_SOURCE +.nf + _POSIX_C_SOURCE +.fi .SH DESCRIPTION The functions described on this page are used for performing "nonlocal gotos": transferring execution from one function to a predetermined location diff --git a/man3/sigqueue.3 b/man3/sigqueue.3 index 34028bae9..3f955fa9c 100644 --- a/man3/sigqueue.3 +++ b/man3/sigqueue.3 @@ -41,7 +41,9 @@ Feature Test Macro Requirements for glibc (see .RE .PP .BR sigqueue (): -_POSIX_C_SOURCE\ >=\ 199309L +.nf + _POSIX_C_SOURCE\ >=\ 199309L +.fi .SH DESCRIPTION .BR sigqueue () sends the signal specified in diff --git a/man3/tzset.3 b/man3/tzset.3 index 3fe8289d1..afaa91255 100644 --- a/man3/tzset.3 +++ b/man3/tzset.3 @@ -50,10 +50,14 @@ Feature Test Macro Requirements for glibc (see .RE .PP .BR tzset (): -_POSIX_C_SOURCE +.nf + _POSIX_C_SOURCE +.fi .PP .IR tzname : -_POSIX_C_SOURCE +.nf + _POSIX_C_SOURCE +.fi .PP .IR timezone , .IR daylight : diff --git a/man3/wordexp.3 b/man3/wordexp.3 index 119fe10fb..7a8664785 100644 --- a/man3/wordexp.3 +++ b/man3/wordexp.3 @@ -39,7 +39,9 @@ Feature Test Macro Requirements for glibc (see .PP .BR wordexp (), .BR wordfree (): -_XOPEN_SOURCE +.nf + _XOPEN_SOURCE +.fi .SH DESCRIPTION The function .BR wordexp ()