Subject: Re: pending/687: discrepency in includes.
To: None <root@lame.mame.mu.oz.au>
From: J.T. Conklin <jconklin@netcom.com>
List: netbsd-bugs
Date: 01/03/1995 15:41:32
> >Number:         687
> >Synopsis:       discrepency in includes.
> >Severity:       serious
> >Priority:       medium
> >State:          open
> >Class:          sw-bug
> >Submitter-Id:   net
> >Description:
> 	 FSHIFT is multiply defined in ditrib includes 
> 
> >How-To-Repeat:
> 	
> grep FSHIFT /usr/include/sys/param.h
> #define FSHIFT  11              /* bits to right of fixed binary point */
> 
> grep FSHIFT /usr/include/rpcsvc/rstat.h
> #define FSHIFT  8               /* bits to right of fixed binary point */
>         
> >Fix:
> 	pick the right one :) - I'm a little suspicious of rpcsvc/* actually 

This is not a bug.  The rstat rpc protocol uses a load average defined
in terms of a 8 bit shifts.  The NetBSD kernel uses fixed point
numbers with 11 bit shifts.

The programs that use the rstat protocol always undef FSCALE and FSHIFT
before including <rpcsvc/rstat.h>.

	--jtc