Re: misleading note in https://man7.org/linux/man-pages/man3/bstring.3.html

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

 




> On 30 Dec 2022, at 23:05, Alejandro Colomar <alx.manpages@xxxxxxxxx> wrote:
> 
> Hello Aaron Peter,
> 
> On 12/30/22 23:43, Aaron Peter Bachmann wrote:
>> Hello!
>> The note section in https://man7.org/linux/man-pages/man3/bstring.3.html says:
>> The functions*bcmp*(),*bcopy*(), and*bzero*() are obsolete.  Use
>>        *memcmp*(),*memcpy*(), and*memset*() instead.
>> The std-replacement replacement for bcopy() in NOT memcpy() but memmove().
>> Thus it should say:
>> The functions*bcmp*(),*bcopy*(), and*bzero*() are obsolete.  Use
>>        *memcmp*(),*memmove*(), and*memset*() instead.
> 
> Thanks!  I fixed it.  And while doing it, I also removed the text that said bzero(3) is deprecated.  I encourage its use.
> 

The man page notes it was in POSIX and then got removed in 2008. Before it was removed from POSIX,
they said memset was preferred.

I don't argue that we have to defer to POSIX always, but I'm wondering what your thinking is on such conflicts
(I'm just wondering about other cases if we hit them).

What do you think?

Best,
sam

Attachment: signature.asc
Description: Message signed with OpenPGP


[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