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

Message ID 20210423095218.18425-1-alx.manpages@gmail.com
State Not applicable
Headers
Series open_by_handle_at.2: Remove unused <sys/stat.h> |

Commit Message

Alejandro Colomar April 23, 2021, 9:52 a.m. UTC
  AFAICS, all types and constants used by these functions are
defined in <fcntl.h>.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
---
 man2/open_by_handle_at.2 | 1 -
 1 file changed, 1 deletion(-)
  

Comments

Michael Kerrisk \(man-pages\) May 9, 2021, 6:10 p.m. UTC | #1
Hi Alex,

On 4/23/21 9:52 PM, Alejandro Colomar wrote:
> AFAICS, all types and constants used by these functions are
> defined in <fcntl.h>.

Thanks.

Patch applied.

Cheers,

Michael


> Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
> ---
>  man2/open_by_handle_at.2 | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/man2/open_by_handle_at.2 b/man2/open_by_handle_at.2
> index 4a4ddc34e..fa7add5cf 100644
> --- a/man2/open_by_handle_at.2
> +++ b/man2/open_by_handle_at.2
> @@ -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 ,
>
  

Patch

diff --git a/man2/open_by_handle_at.2 b/man2/open_by_handle_at.2
index 4a4ddc34e..fa7add5cf 100644
--- a/man2/open_by_handle_at.2
+++ b/man2/open_by_handle_at.2
@@ -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 ,