svn commit: r221604 - head/usr.sbin/usbdump

Garrett Cooper yanegomi at gmail.com
Sat May 7 17:21:26 UTC 2011


On Sat, May 7, 2011 at 10:13 AM,  <mdf at freebsd.org> wrote:
> On Sat, May 7, 2011 at 9:36 AM, Hans Petter Selasky <hselasky at c2i.net> wrote:
>> On Saturday 07 May 2011 18:28:24 Hans Petter Selasky wrote:
>>>   - Use memcpy() instead of bcopy().
>>
>> - Use memset() instead of bzero().
>
> Why?  It usually falls through to the same code in libc.  Is there
> some standardization on memfoo versus bfoo here?

    bfoo is marked legacy per POSIX 2001.1; example:
http://pubs.opengroup.org/onlinepubs/009695399/functions/bcopy.html .
A lot of folks (Linux leading the charge) are actively working to
deprecate the APIs.
Thanks,
-Garrett


More information about the svn-src-all mailing list