[OpenAFS-devel] strings redux

tjs@psaux.com tjs@psaux.com
Wed, 8 Aug 2001 19:53:04 -0400 (EDT)


On 8 Aug 2001, Russ Allbery wrote:

> chas williams <chas@cmf.nrl.navy.mil> writes:
> 
> > there are a few spots that probably still need fixed, like memcpy being
> > defined to memcpy in the nt param files.  in afsweb they defined memmove
> > to bcopy.  i made it memcpy, but most systems should have memmove.
> 
> Does it actually need memmove?  (Everything should really have memmove;
> it's in POSIX.)

Actually making bcopy into memcpy isn't safe on all systems since bcopy
deals with overlapping strings and memcpy doesn't.  (At least the FreeBSD
bcopy manpage says that bcopy does, and memcpy maybe does but it depends
on your implementation).

Tim