mirror of https://github.com/mkerrisk/man-pages
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>
This commit is contained in:
parent
34de771d1f
commit
30dd9882b0
|
@ -208,7 +208,7 @@ event.
|
||||||
.\"
|
.\"
|
||||||
.SS Program source
|
.SS Program source
|
||||||
\&
|
\&
|
||||||
.nf
|
.EX
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/syscall.h>
|
#include <sys/syscall.h>
|
||||||
|
@ -259,7 +259,7 @@ main(int argc, char *argv[])
|
||||||
close(pidfd);
|
close(pidfd);
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
.fi
|
.EE
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
.BR clone (2),
|
.BR clone (2),
|
||||||
.BR kill (2),
|
.BR kill (2),
|
||||||
|
|
|
@ -177,7 +177,7 @@ if that process terminates,
|
||||||
fails with the error
|
fails with the error
|
||||||
.BR ESRCH .
|
.BR ESRCH .
|
||||||
.SH EXAMPLES
|
.SH EXAMPLES
|
||||||
.nf
|
.EX
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
@ -244,7 +244,7 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
.fi
|
.EE
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
.BR clone (2),
|
.BR clone (2),
|
||||||
.BR kill (2),
|
.BR kill (2),
|
||||||
|
|
|
@ -569,7 +569,7 @@ at which point the file descriptor was closed and the program terminated.
|
||||||
.\"
|
.\"
|
||||||
.SS Program source
|
.SS Program source
|
||||||
\&
|
\&
|
||||||
.nf
|
.EX
|
||||||
/* poll_input.c
|
/* poll_input.c
|
||||||
|
|
||||||
Licensed under GNU General Public License v2 or later.
|
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");
|
printf("All file descriptors closed; bye\en");
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
.fi
|
.EE
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
.BR restart_syscall (2),
|
.BR restart_syscall (2),
|
||||||
.BR select (2),
|
.BR select (2),
|
||||||
|
|
|
@ -397,7 +397,7 @@ ID = 9
|
||||||
.in
|
.in
|
||||||
.SS Program source
|
.SS Program source
|
||||||
\&
|
\&
|
||||||
.nf
|
.EX
|
||||||
/* t_semget.c
|
/* t_semget.c
|
||||||
|
|
||||||
Licensed under GNU General Public License v2 or later.
|
Licensed under GNU General Public License v2 or later.
|
||||||
|
@ -456,7 +456,7 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
.fi
|
.EE
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
.BR semctl (2),
|
.BR semctl (2),
|
||||||
.BR semop (2),
|
.BR semop (2),
|
||||||
|
|
Loading…
Reference in New Issue