Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Nov 1995 18:09:00 +0100 (MET)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        freebsd-hackers@freebsd.org (FreeBSD hackers)
Cc:        dfr@freebsd.org
Subject:   Re: RPC oddities
Message-ID:  <199511051709.SAA00830@uriah.heep.sax.de>
In-Reply-To: <199511051233.NAA12443@allegro.lemis.de> from "Greg Lehey" at Nov 5, 95 01:33:19 pm

next in thread | previous in thread | raw e-mail | index | archive | help
As Greg Lehey wrote:
> 
> > <rpc/rpc.h> includes definitions for several constants that are inside
> > enum's.  To the contrary, <nfs/rpcv2.h> #define's just the very same
> > constants.  The result is that the compiler sees something like:

> How about a series of:
> 
> /* Authentication failures */
> #undef	AUTH_BADCRED	1
> #undef	AUTH_REJECTCRED	2
> #undef	AUTH_BADVERF	3
> #undef	AUTH_REJECTVERF	4
> #undef	AUTH_TOOWEAK	5		/* Give em wheaties */

Yikes!  That's exactly what i'm doing now.  But this is a first class
mess.  Leave alone the poor appearance of the source code, but it does
also make me nervous that the enum's and the #define's sometimes even
disagree in their values!

Somethin's stinkin' badly here!

(I was in hope for the NFS wizards to shed some light on this.)

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199511051709.SAA00830>