From owner-cvs-all Mon Feb 1 21:23:24 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA12511 for cvs-all-outgoing; Mon, 1 Feb 1999 21:23:24 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from feral.com (feral.com [192.67.166.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA12506 for ; Mon, 1 Feb 1999 21:23:20 -0800 (PST) (envelope-from mjacob@feral.com) Received: from localhost (mjacob@localhost) by feral.com (8.8.7/8.8.7) with ESMTP id VAA15748; Mon, 1 Feb 1999 21:23:12 -0800 Date: Mon, 1 Feb 1999 21:23:12 -0800 (PST) From: Matthew Jacob X-Sender: mjacob@feral-gw Reply-To: mjacob@feral.com To: Garrett Wollman cc: cvs-commiters@FreeBSD.ORG Subject: Re: sizeof (ptr) != sizeof (unsigned) In-Reply-To: <199902020418.XAA19148@khavrinen.lcs.mit.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk > < said: > > > bcopy(&p1->p_procsig->ps_begincopy, &p2->p_procsig->ps_begincopy, > > (unsigned)&p1->p_procsig->ps_endcopy - > > (unsigned)&p1->p_procsig->ps_begincopy); > > > What's this for? > > This copies just the part of the proc struct that's supposed to be > copied. It would be cleaner if the operands were cast to `char *', > but it should work either way on any processor architecture the kernel Not if the cast to unsigned truncates the top 32 bits on an alpha prior to (re)promoting it to caddr_t for the call to bcopy... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message