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:
Michael Kerrisk 2019-09-23 21:13:11 +02:00
parent 4654d63c35
commit 465f610c4c
1 changed files with 3 additions and 0 deletions

View File

@ -27,6 +27,8 @@
pidfd_open \- obtain a file descriptor that refers to a process
.SH SYNOPSIS
.nf
.B #include <sys/types.h>
.PP
.BI "int pidfd_open(pid_t " pid ", unsigned int " flags );
.fi
.SH DESCRIPTION
@ -120,6 +122,7 @@ returns, and indicates that the file descriptor is readable.
\&
.nf
#define _GNU_SOURCE
#include <sys/types.h>
#include <sys/syscall.h>
#include <unistd.h>
#include <poll.h>