Date: Sat, 7 May 2011 10:21:25 -0700 From: Garrett Cooper <yanegomi@gmail.com> To: mdf@freebsd.org Cc: "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, "src-committers@freebsd.org" <src-committers@freebsd.org>, Hans Petter Selasky <hselasky@c2i.net> Subject: Re: svn commit: r221604 - head/usr.sbin/usbdump Message-ID: <BANLkTikoE3D7xDzJ-Z0izX_2SzeOtq9U2g@mail.gmail.com> In-Reply-To: <BANLkTimi_Em60n9MZRTcgBDvycqH-pKL5g@mail.gmail.com> References: <201105071628.p47GSO16006145@svn.freebsd.org> <201105071836.00660.hselasky@c2i.net> <BANLkTimi_Em60n9MZRTcgBDvycqH-pKL5g@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, May 7, 2011 at 10:13 AM, <mdf@freebsd.org> wrote: > On Sat, May 7, 2011 at 9:36 AM, Hans Petter Selasky <hselasky@c2i.net> wr= ote: >> On Saturday 07 May 2011 18:28:24 Hans Petter Selasky wrote: >>> =A0 - Use memcpy() instead of bcopy(). >> >> - Use memset() instead of bzero(). > > Why? =A0It usually falls through to the same code in libc. =A0Is 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTikoE3D7xDzJ-Z0izX_2SzeOtq9U2g>