Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Nov 1998 18:23:35 +0000 (GMT)
From:      Terry Lambert <tlambert@primenet.com>
To:        marcs@znep.com (Marc Slemko)
Cc:        tlambert@primenet.com, hackers@FreeBSD.ORG
Subject:   Re: scanf in the kernel?
Message-ID:  <199811021823.LAA00418@usr05.primenet.com>
In-Reply-To: <Pine.BSF.4.03.9811020935550.277-100000@alive.znep.com> from "Marc Slemko" at Nov 2, 98 09:42:35 am

next in thread | previous in thread | raw e-mail | index | archive | help
> > > #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.

IRIX is SVR4 derived, so that's no surprise; bcopy is probably a #define
for memcpy.


					Terry Lambert
					terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.

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?199811021823.LAA00418>