Re: [PATCH v5 09/35] arch_prctl.2: SYNOPSIS: Remove unused includes

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

 



Hi Alex,

On 4/4/21 1:58 PM, Alejandro Colomar wrote:
> AFAICS, there's no reason to include that.
> All of the macros that this function uses
> are already defined in the other headers.

I suspect it was a case of cut-and-paste (from prctl.2) long ago 
when the page was written. Patch applied.

Thanks,

Michael


> Cc: glibc <libc-alpha@xxxxxxxxxxxxxx>
> Signed-off-by: Alejandro Colomar <alx.manpages@xxxxxxxxx>
> ---
>  man2/arch_prctl.2 | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/man2/arch_prctl.2 b/man2/arch_prctl.2
> index f8073d625..7ae5b350c 100644
> --- a/man2/arch_prctl.2
> +++ b/man2/arch_prctl.2
> @@ -28,7 +28,6 @@ arch_prctl \- set architecture-specific thread state
>  .SH SYNOPSIS
>  .nf
>  .BR "#include <asm/prctl.h>" "        /* Definition of " ARCH_* " constants */"
> -.B #include <sys/prctl.h>
>  .BR "#include <sys/syscall.h>" "      /* Definition of " SYS_* " constants */"
>  .B #include <unistd.h>
>  .PP
> 


-- 
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