mirror of https://github.com/mkerrisk/man-pages
pidfd_open.2: Add <sys/types.h> to SYNOPSIS
Reported-by: Florian Weimer <fw@deneb.enyo.de> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
4654d63c35
commit
465f610c4c
|
@ -27,6 +27,8 @@
|
||||||
pidfd_open \- obtain a file descriptor that refers to a process
|
pidfd_open \- obtain a file descriptor that refers to a process
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.nf
|
.nf
|
||||||
|
.B #include <sys/types.h>
|
||||||
|
.PP
|
||||||
.BI "int pidfd_open(pid_t " pid ", unsigned int " flags );
|
.BI "int pidfd_open(pid_t " pid ", unsigned int " flags );
|
||||||
.fi
|
.fi
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
|
@ -120,6 +122,7 @@ returns, and indicates that the file descriptor is readable.
|
||||||
\&
|
\&
|
||||||
.nf
|
.nf
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
|
#include <sys/types.h>
|
||||||
#include <sys/syscall.h>
|
#include <sys/syscall.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
|
|
Loading…
Reference in New Issue