Skip to contentSkip to conversation

open_by_handle_at.2: Remove unused <sys/stat.h>

PATCH In review Alejandro Colomar 2 participants 2 messages Apr 23, 2021 – May 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 open_by_handle_at.2: Remove unused <sys/stat.h>

AFAICS, all types and constants used by these functions are defined in <fcntl.h>.

---
 man2/open_by_handle_at.2 | 1 -
 1 file changed, 1 deletion(-)
man2/open_by_handle_at.2 +0 -1
index 4a4ddc34e..fa7add5cf 100644
@@ -29,7 +29,6 @@ for a pathname and open file via a handle
 .SH SYNOPSIS
 .nf
 .BR "#define _GNU_SOURCE" "         /* See feature_test_macros(7) */"
-.B #include <sys/stat.h>
 .B #include <fcntl.h>
 .PP
 .BI "int name_to_handle_at(int " dirfd ", const char *" pathname ,
Signature · 1 line
2.31.0
#1 lore raw

Hi Alex,

Quoted 2 lines · Alejandro Colomar

AFAICS, all types and constants used by these functions are defined in <fcntl.h>.

Thanks.

Patch applied.

Cheers,

Michael

Quoted 18 lines
---
 man2/open_by_handle_at.2 | 1 -
 1 file changed, 1 deletion(-)
man2/open_by_handle_at.2 +0 -1
index 4a4ddc34e..fa7add5cf 100644
@@ -29,7 +29,6 @@ for a pathname and open file via a handle
 .SH SYNOPSIS
 .nf
 .BR "#define _GNU_SOURCE" "         /* See feature_test_macros(7) */"
-.B #include <sys/stat.h>
 .B #include <fcntl.h>
 .PP
 .BI "int name_to_handle_at(int " dirfd ", const char *" pathname ,
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/