Re: [PATCH] stat.2: Remove <unistd.h> from synopsis

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/9/21 1:01 PM, Alejandro Colomar wrote:
> From: Jonathan Wakely <jwakely@xxxxxxxxxx>
> 
> There seems to be no reason <unistd.h> is shown here, so remove it.
> 
> Signed-off-by: Jonathan Wakely <jwakely@xxxxxxxxxx>
> Signed-off-by: Alejandro Colomar <alx.manpages@xxxxxxxxx>

Thanks. Patch applied.

Cheers,

Michael

> ---
>  man2/stat.2 | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/man2/stat.2 b/man2/stat.2
> index 734c74b04..fed926715 100644
> --- a/man2/stat.2
> +++ b/man2/stat.2
> @@ -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 );
> 


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux