aboutsummaryrefslogtreecommitdiffstats
path: root/man3
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2021-01-04 09:08:47 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2021-01-04 09:34:08 +0100
commit4653ec6ef21c04dee08943d0b3f106ebb085672e (patch)
tree7b667519622a598bd6b10d9f05b182675354a3e8 /man3
parente3528453c0dd6a32677efef932ddc54a35dbd02f (diff)
downloadman-pages-4653ec6ef21c04dee08943d0b3f106ebb085672e.tar.gz
Various pages: Use .nf/.fi in SYNOPSIS
Fix various pages missed in commit c7db92b96a3f88dc146a35d6851453e3b354f4fc. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man3')
-rw-r--r--man3/daemon.32
-rw-r--r--man3/getdtablesize.32
-rw-r--r--man3/gethostid.33
-rw-r--r--man3/getlogin.33
-rw-r--r--man3/getpass.32
5 files changed, 10 insertions, 2 deletions
diff --git a/man3/daemon.3 b/man3/daemon.3
index b6f6a0f8f7..6a0345bda4 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 <unistd.h>
.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 f91531b244..41b3afe694 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 <unistd.h>
.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 8baf06869c..df8e8557bc 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 <unistd.h>
.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 40809d55b1..41ab637177 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 <unistd.h>
.PP
.B "char *getlogin(void);"
-.br
.BI "int getlogin_r(char *" buf ", size_t " bufsize );
.PP
.B #include <stdio.h>
.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 b59fc1fce4..5a6caeb89e 100644
--- a/man3/getpass.3
+++ b/man3/getpass.3
@@ -25,9 +25,11 @@
.SH NAME
getpass \- get a password
.SH SYNOPSIS
+.nf
.B #include <unistd.h>
.PP
.BI "char *getpass(const char *" prompt );
+.fi
.PP
.RS -4
Feature Test Macro Requirements for glibc (see