Skip to contentSkip to conversation

stat.2: Remove <unistd.h> from synopsis

PATCH In review Alejandro Colomar 2 participants 2 messages Feb 9, 2021 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 stat.2: Remove <unistd.h> from synopsis

From: Jonathan Wakely <[email protected]>

There seems to be no reason <unistd.h> is shown here, so remove it.

---
 man2/stat.2 | 1 -
 1 file changed, 1 deletion(-)
man2/stat.2 +0 -1
index 734c74b04..fed926715 100644
@@ -43,7 +43,6 @@ stat, fstat, lstat, fstatat \- get file status
 .nf
 .B #include <sys/types.h>
 .B #include <sys/stat.h>
-.B #include <unistd.h>
 .PP
 .BI "int stat(const char *" pathname ", struct stat *" statbuf );
 .BI "int fstat(int " fd ", struct stat *" statbuf );
Signature · 1 line
2.30.0
#1 lore raw
Quoted 6 lines · Alejandro Colomar

From: Jonathan Wakely <[email protected]>

There seems to be no reason <unistd.h> is shown here, so remove it.

Thanks. Patch applied.

Cheers,

Michael

Quoted 17 lines
---
 man2/stat.2 | 1 -
 1 file changed, 1 deletion(-)
man2/stat.2 +0 -1
index 734c74b04..fed926715 100644
@@ -43,7 +43,6 @@ stat, fstat, lstat, fstatat \- get file status
 .nf
 .B #include <sys/types.h>
 .B #include <sys/stat.h>
-.B #include <unistd.h>
 .PP
 .BI "int stat(const char *" pathname ", struct stat *" statbuf );
 .BI "int fstat(int " fd ", struct stat *" statbuf );
Signature · 3 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/