Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Feb 1999 21:23:12 -0800 (PST)
From:      Matthew Jacob <mjacob@feral.com>
To:        Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
Cc:        cvs-commiters@FreeBSD.ORG
Subject:   Re: sizeof (ptr) != sizeof (unsigned)
Message-ID:  <Pine.LNX.4.04.9902012122260.15724-100000@feral-gw>
In-Reply-To: <199902020418.XAA19148@khavrinen.lcs.mit.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
> <<On Mon, 1 Feb 1999 19:11:28 -0800 (PST), Matthew Jacob <mjacob@feral.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.04.9902012122260.15724-100000>