aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2020-11-16 10:52:29 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2020-11-16 11:26:23 +0100
commit30dd9882b0039995ddb0c280277729d819c647eb (patch)
tree343e3f65aab786876e8a52dbac69727e5004404e
parent34de771d1fbb1394f18d19942cf850494b516f0d (diff)
downloadman-pages-30dd9882b0039995ddb0c280277729d819c647eb.tar.gz
pidfd_open.2, pidfd_send_signal.2, poll.2, semget.2: ffix: EXAMPLES: use .EX/.EE instead of .nf/.fi
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man2/pidfd_open.24
-rw-r--r--man2/pidfd_send_signal.24
-rw-r--r--man2/poll.24
-rw-r--r--man2/semget.24
4 files changed, 8 insertions, 8 deletions
diff --git a/man2/pidfd_open.2 b/man2/pidfd_open.2
index 0256d6d8cd..5b99460e16 100644
--- a/man2/pidfd_open.2
+++ b/man2/pidfd_open.2
@@ -208,7 +208,7 @@ event.
.\"
.SS Program source
\&
-.nf
+.EX
#define _GNU_SOURCE
#include <sys/types.h>
#include <sys/syscall.h>
@@ -259,7 +259,7 @@ main(int argc, char *argv[])
close(pidfd);
exit(EXIT_SUCCESS);
}
-.fi
+.EE
.SH SEE ALSO
.BR clone (2),
.BR kill (2),
diff --git a/man2/pidfd_send_signal.2 b/man2/pidfd_send_signal.2
index 3ca51c0111..ebc91f7d97 100644
--- a/man2/pidfd_send_signal.2
+++ b/man2/pidfd_send_signal.2
@@ -177,7 +177,7 @@ if that process terminates,
fails with the error
.BR ESRCH .
.SH EXAMPLES
-.nf
+.EX
#define _GNU_SOURCE
#include <limits.h>
#include <signal.h>
@@ -244,7 +244,7 @@ main(int argc, char *argv[])
exit(EXIT_SUCCESS);
}
-.fi
+.EE
.SH SEE ALSO
.BR clone (2),
.BR kill (2),
diff --git a/man2/poll.2 b/man2/poll.2
index 940c51da52..17533b22bf 100644
--- a/man2/poll.2
+++ b/man2/poll.2
@@ -569,7 +569,7 @@ at which point the file descriptor was closed and the program terminated.
.\"
.SS Program source
\&
-.nf
+.EX
/* poll_input.c
Licensed under GNU General Public License v2 or later.
@@ -655,7 +655,7 @@ main(int argc, char *argv[])
printf("All file descriptors closed; bye\en");
exit(EXIT_SUCCESS);
}
-.fi
+.EE
.SH SEE ALSO
.BR restart_syscall (2),
.BR select (2),
diff --git a/man2/semget.2 b/man2/semget.2
index 154952f341..d3d37cbaff 100644
--- a/man2/semget.2
+++ b/man2/semget.2
@@ -397,7 +397,7 @@ ID = 9
.in
.SS Program source
\&
-.nf
+.EX
/* t_semget.c
Licensed under GNU General Public License v2 or later.
@@ -456,7 +456,7 @@ main(int argc, char *argv[])
exit(EXIT_SUCCESS);
}
-.fi
+.EE
.SH SEE ALSO
.BR semctl (2),
.BR semop (2),