From owner-freebsd-hackers Mon Nov 2 09:47:23 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA12797 for freebsd-hackers-outgoing; Mon, 2 Nov 1998 09:47:23 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from scanner.worldgate.com (scanner.worldgate.com [198.161.84.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA12778 for ; Mon, 2 Nov 1998 09:47:00 -0800 (PST) (envelope-from marcs@znep.com) Received: from znep.com (uucp@localhost) by scanner.worldgate.com (8.9.1a/8.9.1) with UUCP id KAA11756; Mon, 2 Nov 1998 10:46:46 -0700 (MST) Received: from localhost (marcs@localhost) by alive.znep.com (8.7.5/8.7.3) with ESMTP id JAA05631; Mon, 2 Nov 1998 09:42:35 -0800 (PST) Date: Mon, 2 Nov 1998 09:42:35 -0800 (PST) From: Marc Slemko To: Terry Lambert cc: hackers@FreeBSD.ORG Subject: Re: scanf in the kernel? In-Reply-To: <199811012142.OAA27464@usr05.primenet.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message