Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!sdd.hp.com!zaphod.mps.ohio-state.edu!uwm.edu!lll-winken!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.unix.wizards Subject: Re: fastest way to copy hunks of memory Message-ID: <3296@auspex.auspex.com> Date: 3 May 90 21:01:54 GMT References: <5531@helios.ee.lbl.gov> <1990May2.200732.11851@eci386.uucp> Organization: Auspex Systems, Santa Clara Lines: 18 >Who wrote it.... memcpy is a Unix System V routine (introduced in SIII >I think), Nope, introduced in S5; which release, I don't remember. >and bcopy is a routine that first appeared as a generally >available function in BSD (it may have been in V7, I disremember), It wasn't in V7. I don't think it was in 4.1BSD, either; as I remember, it first showed up in 4.2BSD. >but since that time, most newer versions of UNIX have both.... I don't think S5 has "bcopy()" until, possibly, S5R4. 4.2BSD has only "bcopy()"; 4.3BSD has a "memcpy()", but for some unfathomable reason they whipped up a quick-and-dirty C version that copies a byte at a time, rather than just tweaking the assembler-language "bcopy()" to flip the first two arguments.