mirror of https://github.com/mkerrisk/man-pages
open.2: Remove unused <sys/stat.h>
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>
This commit is contained in:
parent
0ba6b2966c
commit
5e9623f3b9
|
@ -53,7 +53,6 @@
|
||||||
open, openat, creat \- open and possibly create a file
|
open, openat, creat \- open and possibly create a file
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.nf
|
.nf
|
||||||
.B #include <sys/stat.h>
|
|
||||||
.B #include <fcntl.h>
|
.B #include <fcntl.h>
|
||||||
.PP
|
.PP
|
||||||
.BI "int open(const char *" pathname ", int " flags );
|
.BI "int open(const char *" pathname ", int " flags );
|
||||||
|
|
Loading…
Reference in New Issue