This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Should we remove all internal usages of bcopy/bzero?
On Sun, Sep 16, 2001 at 08:36:25PM -0400, Roland McGrath wrote:
> > There are a few internal usages of bcopy/bzero. Should we replace them
> > with memmove/memset?
>
> I can't see a reason to care one way or the other. But if you do care,
> I can't see any harm in changing them.
In that case, should I send a patch? There are some bcopy and quite
a few __bzero/bzero. bzero may be a little faster than memset. If we
don't want to replace them with memset, should I do
#if USE_BZERO
#define __libc_bzero(p,l) __bzero ((p), (l))
#else
#define __libc_bzero(p,l) memset ((p), 0, (l))
#endif
in include/string.h.
H.J.