]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
open.2: Remove unused <sys/stat.h>
authorAlejandro Colomar <alx.manpages@gmail.com>
Mon, 24 May 2021 18:19:38 +0000 (20:19 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Wed, 9 Jun 2021 22:37:46 +0000 (10:37 +1200)
I can't see a reason to include it.  <fcntl.h> provides O_*
constants for 'flags', S_* constants for 'mode', and mode_t.

Probably a long time ago, some of those weren't defined in
<fcntl.h>, and both headers needed to be included, or maybe it's
a historical error.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/open.2

index bac1ee8063cd5f18d06c6ff13c4509c4b0be404f..1bcd995f4846cfa5eca084a014d8ba540b438a37 100644 (file)
@@ -53,7 +53,6 @@
 open, openat, creat \- open and possibly create a file
 .SH SYNOPSIS
 .nf
-.B #include <sys/stat.h>
 .B #include <fcntl.h>
 .PP
 .BI "int open(const char *" pathname ", int " flags );