Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Nov 1998 14:33:41 +1030
From:      Greg Lehey <grog@lemis.com>
To:        Marc Slemko <marcs@znep.com>, Terry Lambert <tlambert@primenet.com>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: scanf in the kernel?
Message-ID:  <19981103143341.X354@freebie.lemis.com>
In-Reply-To: <Pine.BSF.4.03.9811020935550.277-100000@alive.znep.com>; from Marc Slemko on Mon, Nov 02, 1998 at 09:42:35AM -0800
References:  <199811012142.OAA27464@usr05.primenet.com> <Pine.BSF.4.03.9811020935550.277-100000@alive.znep.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday,  2 November 1998 at  9:42:35 -0800, Marc Slemko wrote:
> On Sun, 1 Nov 1998, Terry Lambert wrote:
>
>>> #define memcpy(d,s,n) bcopy(s,d,n)
>>>
>>> not exactly rocket science :-)
>>
>> Actually, bcopy is closer to memmove, since it supports overlapping
>> ranges as its arguments.
>
> bcopy doesn't support overlapping ranges on all systems.
>
> eg. IRIX 6.2 man page:
>
> NOTE
>      The use of overlapping buffers with bcopy is not guaranteed to work.  Use
>      the memmove(3C) function if the buffers might overlap.

The bcopy that allows no overlap is not the true bcopy.  Must be a
System Vism.

Greg
--
See complete headers for address, home page and phone numbers
finger grog@lemis.com for PGP public key

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19981103143341.X354>