copying routines, order, and overlap

Chris Torek chris at mimsy.UUCP
Sat Mar 26 04:50:39 AEST 1988


>In article <10762 at mimsy.UUCP> I said that
>>In 4.2BSD, bcopy was allowed to do the copy in any order.

In article <8803240119.AA21810 at hub.toronto.edu> thomson at hub.toronto.edu
(Brian Thomson) writes:
>I did a bit of 4.2 porting several (4) years ago, and I distinctly
>remember bcopy() checking for overlap and getting it right.
>I began with VAX "bcopy.s 4.4 9/25/83".  Is this not original 4.2 code?

Possibly not.  There were several `4.2BSD' tapes (just as there
were several `4.1BSD' tapes and several `4.3BSD' tapes, with fixes
quietly inserted).  The SCCS revision files show that rev. 4.2 was
the first one to handle transfers > 65535 bytes; that was done on
83/01/14.  The next change was on 83/09/12: `correct comment on usage';
on 83/09/25 it was changed `to insure that overlapping strings are
properly handled'.  (No substantive changes have been made since then.)
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain:	chris at mimsy.umd.edu	Path:	uunet!mimsy!chris



More information about the Comp.lang.c mailing list