From 4653ec6ef21c04dee08943d0b3f106ebb085672e Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Mon, 4 Jan 2021 09:08:47 +0100 Subject: [PATCH] Various pages: Use .nf/.fi in SYNOPSIS Fix various pages missed in commit c7db92b96a3f88dc146a35d6851453e3b354f4fc. Signed-off-by: Michael Kerrisk --- man2/chroot.2 | 2 ++ man2/getdomainname.2 | 3 ++- man2/gethostname.2 | 3 ++- man2/getpagesize.2 | 2 ++ man2/setpgid.2 | 6 ++---- man2/vfork.2 | 3 ++- man2/vhangup.2 | 2 ++ man3/daemon.3 | 2 ++ man3/getdtablesize.3 | 2 ++ man3/gethostid.3 | 3 ++- man3/getlogin.3 | 3 ++- man3/getpass.3 | 2 ++ 12 files changed, 24 insertions(+), 9 deletions(-) diff --git a/man2/chroot.2 b/man2/chroot.2 index d9eb51e47..ea7deffdf 100644 --- a/man2/chroot.2 +++ b/man2/chroot.2 @@ -34,9 +34,11 @@ .SH NAME chroot \- change root directory .SH SYNOPSIS +.nf .B #include .PP .BI "int chroot(const char *" path ); +.fi .PP .RS -4 Feature Test Macro Requirements for glibc (see diff --git a/man2/getdomainname.2 b/man2/getdomainname.2 index f83ac3186..f5cb2035a 100644 --- a/man2/getdomainname.2 +++ b/man2/getdomainname.2 @@ -30,11 +30,12 @@ .SH NAME getdomainname, setdomainname \- get/set NIS domain name .SH SYNOPSIS +.nf .B #include .PP .BI "int getdomainname(char *" name ", size_t " len ); -.br .BI "int setdomainname(const char *" name ", size_t " len ); +.fi .PP .RS -4 Feature Test Macro Requirements for glibc (see diff --git a/man2/gethostname.2 b/man2/gethostname.2 index 71ac72f2b..def1f37b5 100644 --- a/man2/gethostname.2 +++ b/man2/gethostname.2 @@ -33,11 +33,12 @@ .SH NAME gethostname, sethostname \- get/set hostname .SH SYNOPSIS +.nf .B #include .PP .BI "int gethostname(char *" name ", size_t " len ); -.br .BI "int sethostname(const char *" name ", size_t " len ); +.fi .PP .RS -4 Feature Test Macro Requirements for glibc (see diff --git a/man2/getpagesize.2 b/man2/getpagesize.2 index 1bbcbd54b..3cd709a9d 100644 --- a/man2/getpagesize.2 +++ b/man2/getpagesize.2 @@ -26,9 +26,11 @@ .SH NAME getpagesize \- get memory page size .SH SYNOPSIS +.nf .B #include .PP .B int getpagesize(void); +.fi .PP .RS -4 Feature Test Macro Requirements for glibc (see diff --git a/man2/setpgid.2 b/man2/setpgid.2 index 00fd7e661..72be36f7c 100644 --- a/man2/setpgid.2 +++ b/man2/setpgid.2 @@ -49,21 +49,19 @@ .SH NAME setpgid, getpgid, setpgrp, getpgrp \- set/get process group .SH SYNOPSIS +.nf .B #include -.br .B #include .PP .BI "int setpgid(pid_t " pid ", pid_t " pgid ); -.br .BI "pid_t getpgid(pid_t " pid ); .PP .BR "pid_t getpgrp(void);" " /* POSIX.1 version */" -.br .BI "pid_t getpgrp(pid_t " pid ");\fR /* BSD version */" .PP .BR "int setpgrp(void);" " /* System V version */" -.br .BI "int setpgrp(pid_t " pid ", pid_t " pgid ");\fR /* BSD version */" +.fi .PP .RS -4 Feature Test Macro Requirements for glibc (see diff --git a/man2/vfork.2 b/man2/vfork.2 index cd25a0860..3bc2cdd57 100644 --- a/man2/vfork.2 +++ b/man2/vfork.2 @@ -30,11 +30,12 @@ .SH NAME vfork \- create a child process and block parent .SH SYNOPSIS +.nf .B #include -.br .B #include .PP .B pid_t vfork(void); +.fi .PP .RS -4 Feature Test Macro Requirements for glibc (see diff --git a/man2/vhangup.2 b/man2/vhangup.2 index d43592123..321a5e5d1 100644 --- a/man2/vhangup.2 +++ b/man2/vhangup.2 @@ -29,9 +29,11 @@ .SH NAME vhangup \- virtually hangup the current terminal .SH SYNOPSIS +.nf .B #include .PP .B int vhangup(void); +.fi .PP .RS -4 Feature Test Macro Requirements for glibc (see diff --git a/man3/daemon.3 b/man3/daemon.3 index b6f6a0f8f..6a0345bda 100644 --- a/man3/daemon.3 +++ b/man3/daemon.3 @@ -37,9 +37,11 @@ .SH NAME daemon \- run in the background .SH SYNOPSIS +.nf .B #include .PP .BI "int daemon(int " nochdir ", int " noclose ); +.fi .PP .RS -4 Feature Test Macro Requirements for glibc (see diff --git a/man3/getdtablesize.3 b/man3/getdtablesize.3 index f91531b24..41b3afe69 100644 --- a/man3/getdtablesize.3 +++ b/man3/getdtablesize.3 @@ -28,9 +28,11 @@ .SH NAME getdtablesize \- get file descriptor table size .SH SYNOPSIS +.nf .B #include .PP .B int getdtablesize(void); +.fi .PP .RS -4 Feature Test Macro Requirements for glibc (see diff --git a/man3/gethostid.3 b/man3/gethostid.3 index 8baf06869..df8e8557b 100644 --- a/man3/gethostid.3 +++ b/man3/gethostid.3 @@ -30,11 +30,12 @@ .SH NAME gethostid, sethostid \- get or set the unique identifier of the current host .SH SYNOPSIS +.nf .B #include .PP .B long gethostid(void); -.br .BI "int sethostid(long " hostid ); +.fi .PP .RS -4 Feature Test Macro Requirements for glibc (see diff --git a/man3/getlogin.3 b/man3/getlogin.3 index 40809d55b..41ab63717 100644 --- a/man3/getlogin.3 +++ b/man3/getlogin.3 @@ -29,15 +29,16 @@ .SH NAME getlogin, getlogin_r, cuserid \- get username .SH SYNOPSIS +.nf .B #include .PP .B "char *getlogin(void);" -.br .BI "int getlogin_r(char *" buf ", size_t " bufsize ); .PP .B #include .PP .BI "char *cuserid(char *" string ); +.fi .PP .RS -4 Feature Test Macro Requirements for glibc (see diff --git a/man3/getpass.3 b/man3/getpass.3 index b59fc1fce..5a6caeb89 100644 --- a/man3/getpass.3 +++ b/man3/getpass.3 @@ -25,9 +25,11 @@ .SH NAME getpass \- get a password .SH SYNOPSIS +.nf .B #include .PP .BI "char *getpass(const char *" prompt ); +.fi .PP .RS -4 Feature Test Macro Requirements for glibc (see