[PATCH] Improve strncpy performance further

Roland McGrath roland@hack.frob.com
Fri Jan 9 19:16:00 GMT 2015


> Btw while on the subject on namespaces, is bcopy correctly defined?
> After a lot of complex inclusion and defines, it ultimately does:
> 
> void
> bcopy ()
> {
> ...
> }

I'm not sure what kind of correctness you have in mind.  bcopy is the only
name under which that function needs to be defined.  If it's in the same
file as a standard function (presumably memmove) then it needs to be
defined as weak.  No other code anywhere in libc should call bcopy (we'd
use memmove or memcpy instead), so it doesn't need to have an __ name.




More information about the Libc-alpha mailing list