Re: [PATCH] bcmp: note that this function is no longer legacy due to LLVM 9

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

 



Hi,

On Sat, Jan 11, 2020 at 06:50:49PM +0400, Shawn Landden wrote:
> Signed-off-by: Shawn Landden <shawn@xxxxxxx>
> ---
>  man3/bcmp.3 | 12 +++++++++---
>  1 file changed, 9 insertions(+), 3 deletions(-)
> 
> diff --git a/man3/bcmp.3 b/man3/bcmp.3
> index ba9838019..18d238720 100644
> --- a/man3/bcmp.3
> +++ b/man3/bcmp.3
> @@ -70,15 +70,21 @@ T{
>  .BR bcmp ()
>  T}	Thread safety	MT-Safe
>  .TE
>  .SH CONFORMING TO
>  4.3BSD.
> -This function is deprecated (marked as LEGACY in POSIX.1-2001): use
> -.BR memcmp (3)
> -in new programs.
> +This function was deprecated (marked as LEGACY) by POSIX.1-2001).
>  POSIX.1-2008 removes the specification of
>  .BR bcmp ().
> +LLVM 9, released in 2019, revived
> +.BR bcmp ()
> +and generates calls to it instead of
> +.BR memcmp (3)
> +as appropiate as an optimization (as
> +.BR bcmp ()
> +need not traverse memory in-order).
> +.\" http://releases.llvm.org/9.0.0/docs/ReleaseNotes.html#noteworthy-optimizations

I believe the "CONFORMING TO" is about conformance and therefore
shall not be changed.

Any notes about llvm-specific implementation details should go
to a different section, e.g. "NOTES".


-- 
ldv



[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