aboutsummaryrefslogtreecommitdiffstats
path: root/man3
diff options
context:
space:
mode:
Diffstat (limited to 'man3')
-rw-r--r--man3/sinh.32
-rw-r--r--man3/sockatmark.36
-rw-r--r--man3/stdarg.36
-rw-r--r--man3/stpcpy.36
-rw-r--r--man3/syslog.310
-rw-r--r--man3/system.321
-rw-r--r--man3/tanh.32
-rw-r--r--man3/termios.325
-rw-r--r--man3/wctrans.35
-rw-r--r--man3/wctype.325
-rw-r--r--man3/wcwidth.32
-rw-r--r--man3/wordexp.34
12 files changed, 61 insertions, 53 deletions
diff --git a/man3/sinh.3 b/man3/sinh.3
index e571b3c017..7caee11666 100644
--- a/man3/sinh.3
+++ b/man3/sinh.3
@@ -68,8 +68,8 @@ These functions return the hyperbolic sine of
.IR x ,
which
is defined mathematically as:
+.PP
.nf
-
sinh(x) = (exp(x) \- exp(\-x)) / 2
.fi
.SH RETURN VALUE
diff --git a/man3/sockatmark.3 b/man3/sockatmark.3
index 4eabefc096..ff6792963e 100644
--- a/man3/sockatmark.3
+++ b/man3/sockatmark.3
@@ -113,8 +113,8 @@ The following code can be used after receipt of a
.B SIGURG
signal to read (and discard) all data up to the mark,
and then read the byte of data at the mark:
-.nf
-
+.PP
+.EX
char buf[BUF_LEN];
char oobdata;
int atmark, s;
@@ -142,7 +142,7 @@ and then read the byte of data at the mark:
...
}
}
-.fi
+.EE
.SH SEE ALSO
.BR fcntl (2),
.BR recv (2),
diff --git a/man3/stdarg.3 b/man3/stdarg.3
index f95621e63f..615a559762 100644
--- a/man3/stdarg.3
+++ b/man3/stdarg.3
@@ -310,8 +310,8 @@ The function
.I foo
takes a string of format characters and prints out the argument associated
with each format character based on the type.
-.nf
-
+.PP
+.EX
#include <stdio.h>
#include <stdarg.h>
@@ -342,4 +342,4 @@ foo(char *fmt, ...)
}
va_end(ap);
}
-.fi
+.EE
diff --git a/man3/stpcpy.3 b/man3/stpcpy.3
index 0bde185dfa..e611a84fd5 100644
--- a/man3/stpcpy.3
+++ b/man3/stpcpy.3
@@ -102,8 +102,8 @@ and
to produce
.BR foobar ,
which it then prints.
-.nf
-
+.PP
+.EX
#define _GNU_SOURCE
#include <string.h>
#include <stdio.h>
@@ -118,7 +118,7 @@ main(void)
to = stpcpy(to, "bar");
printf("%s\\n", buffer);
}
-.fi
+.EE
.SH SEE ALSO
.BR bcopy (3),
.BR memccpy (3),
diff --git a/man3/syslog.3 b/man3/syslog.3
index 82a0b1f8d7..8138d648fe 100644
--- a/man3/syslog.3
+++ b/man3/syslog.3
@@ -350,10 +350,12 @@ Most portable is to use a string constant.
.PP
Never pass a string with user-supplied data as a format,
use the following instead:
-.nf
-
- syslog(priority, "%s", string);
-.fi
+.PP
+.in +4n
+.EX
+syslog(priority, "%s", string);
+.EE
+.in
.SH SEE ALSO
.BR logger (1),
.BR journalctl (1),
diff --git a/man3/system.3 b/man3/system.3
index 36d0f99be7..bc3c27688b 100644
--- a/man3/system.3
+++ b/man3/system.3
@@ -161,17 +161,18 @@ This may make programs that call it
from a loop uninterruptible, unless they take care themselves
to check the exit status of the child.
For example:
-.br
-.nf
-
- while (something) {
- int ret = system("foo");
+.PP
+.in +4n
+.EX
+while (something) {
+ int ret = system("foo");
- if (WIFSIGNALED(ret) &&
- (WTERMSIG(ret) == SIGINT || WTERMSIG(ret) == SIGQUIT))
- break;
- }
-.fi
+ if (WIFSIGNALED(ret) &&
+ (WTERMSIG(ret) == SIGINT || WTERMSIG(ret) == SIGQUIT))
+ break;
+}
+.EE
+.in
.PP
Do not use
.BR system ()
diff --git a/man3/tanh.3 b/man3/tanh.3
index 49ccabf132..1eb4e4892c 100644
--- a/man3/tanh.3
+++ b/man3/tanh.3
@@ -67,8 +67,8 @@ These functions return the hyperbolic tangent of
.IR x ,
which
is defined mathematically as:
+.PP
.nf
-
tanh(x) = sinh(x) / cosh(x)
.fi
.SH RETURN VALUE
diff --git a/man3/termios.3 b/man3/termios.3
index 0917cb10e0..203cd9e6ab 100644
--- a/man3/termios.3
+++ b/man3/termios.3
@@ -842,15 +842,18 @@ input is available character by character,
echoing is disabled, and all special processing of
terminal input and output characters is disabled.
The terminal attributes are set as follows:
-.nf
-
- termios_p\->c_iflag &= ~(IGNBRK | BRKINT | PARMRK | ISTRIP
- | INLCR | IGNCR | ICRNL | IXON);
- termios_p\->c_oflag &= ~OPOST;
- termios_p\->c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN);
- termios_p\->c_cflag &= ~(CSIZE | PARENB);
- termios_p\->c_cflag |= CS8;
-.fi
+.PP
+.in +4n
+.EX
+termios_p\->c_iflag &= ~(IGNBRK | BRKINT | PARMRK | ISTRIP
+ | INLCR | IGNCR | ICRNL | IXON);
+termios_p\->c_oflag &= ~OPOST;
+termios_p\->c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN);
+termios_p\->c_cflag &= ~(CSIZE | PARENB);
+termios_p\->c_cflag |= CS8;
+.EE
+.in
+.\"
.SS Line control
.PP
.BR tcsendbreak ()
@@ -926,8 +929,8 @@ pointed to by
.BR cfsetospeed ()
sets the output baud rate stored in the \fItermios\fP structure pointed
to by \fItermios_p\fP to \fIspeed\fP, which must be one of these constants:
+.PP
.nf
-
.ft B
B0
B50
@@ -949,8 +952,8 @@ to by \fItermios_p\fP to \fIspeed\fP, which must be one of these constants:
B115200
B230400
.ft P
-
.fi
+.PP
The zero baud rate, \fBB0\fP,
is used to terminate the connection.
If B0 is specified, the modem control lines shall no longer be asserted.
diff --git a/man3/wctrans.3 b/man3/wctrans.3
index 8b7b946145..8ffe4f4e6f 100644
--- a/man3/wctrans.3
+++ b/man3/wctrans.3
@@ -47,9 +47,10 @@ valid names depends on the
.B LC_CTYPE
category of the current locale, but the
following names are valid in all locales.
+.PP
.nf
- "tolower" \- realizes the \fBtolower\fP(3) mapping
- "toupper" \- realizes the \fBtoupper\fP(3) mapping
+ "tolower" \- realizes the \fBtolower\fP(3) mapping
+ "toupper" \- realizes the \fBtoupper\fP(3) mapping
.fi
.SH RETURN VALUE
The
diff --git a/man3/wctype.3 b/man3/wctype.3
index f22972d110..d51c3e0afe 100644
--- a/man3/wctype.3
+++ b/man3/wctype.3
@@ -48,19 +48,20 @@ valid names depends on the
.B LC_CTYPE
category of the current locale, but the
following names are valid in all locales.
+.PP
.nf
- "alnum" \- realizes the \fBisalnum\fP(3) classification function
- "alpha" \- realizes the \fBisalpha\fP(3) classification function
- "blank" \- realizes the \fBisblank\fP(3) classification function
- "cntrl" \- realizes the \fBiscntrl\fP(3) classification function
- "digit" \- realizes the \fBisdigit\fP(3) classification function
- "graph" \- realizes the \fBisgraph\fP(3) classification function
- "lower" \- realizes the \fBislower\fP(3) classification function
- "print" \- realizes the \fBisprint\fP(3) classification function
- "punct" \- realizes the \fBispunct\fP(3) classification function
- "space" \- realizes the \fBisspace\fP(3) classification function
- "upper" \- realizes the \fBisupper\fP(3) classification function
- "xdigit" \- realizes the \fBisxdigit\fP(3) classification function
+ "alnum" \- realizes the \fBisalnum\fP(3) classification function
+ "alpha" \- realizes the \fBisalpha\fP(3) classification function
+ "blank" \- realizes the \fBisblank\fP(3) classification function
+ "cntrl" \- realizes the \fBiscntrl\fP(3) classification function
+ "digit" \- realizes the \fBisdigit\fP(3) classification function
+ "graph" \- realizes the \fBisgraph\fP(3) classification function
+ "lower" \- realizes the \fBislower\fP(3) classification function
+ "print" \- realizes the \fBisprint\fP(3) classification function
+ "punct" \- realizes the \fBispunct\fP(3) classification function
+ "space" \- realizes the \fBisspace\fP(3) classification function
+ "upper" \- realizes the \fBisupper\fP(3) classification function
+ "xdigit" \- realizes the \fBisxdigit\fP(3) classification function
.fi
.SH RETURN VALUE
The
diff --git a/man3/wcwidth.3 b/man3/wcwidth.3
index 8217589407..6c19e91096 100644
--- a/man3/wcwidth.3
+++ b/man3/wcwidth.3
@@ -58,7 +58,7 @@ T} Thread safety MT-Safe locale
POSIX.1-2001, POSIX.1-2008.
.PP
Note that glibc before 2.2.5 used the prototype
-.br
+.PP
.nf
.BI "int wcwidth(wint_t " c );
.fi
diff --git a/man3/wordexp.3 b/man3/wordexp.3
index 3df86d8532..d4f811c1a2 100644
--- a/man3/wordexp.3
+++ b/man3/wordexp.3
@@ -224,7 +224,7 @@ POSIX.1-2001, POSIX.1-2008.
The output of the following example program
is approximately that of "ls [a-c]*.c".
.PP
-.nf
+.EX
#include <stdio.h>
#include <stdlib.h>
#include <wordexp.h>
@@ -243,7 +243,7 @@ main(int argc, char **argv)
wordfree(&p);
exit(EXIT_SUCCESS);
}
-.fi
+.EE
.SH SEE ALSO
.BR fnmatch (3),
.BR glob (3)