From owner-freebsd-hackers Mon Nov 3 18:00:42 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA24248 for hackers-outgoing; Mon, 3 Nov 1997 18:00:42 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id SAA24237 for ; Mon, 3 Nov 1997 18:00:33 -0800 (PST) (envelope-from julian@whistle.com) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id RAA11007; Mon, 3 Nov 1997 17:52:19 -0800 (PST) Received: from current1.whistle.com(207.76.205.22) via SMTP by alpo.whistle.com, id smtpd011004; Tue Nov 4 01:52:16 1997 Message-ID: <345E7F61.52BFA1D7@whistle.com> Date: Mon, 03 Nov 1997 17:50:25 -0800 From: Julian Elischer Organization: Whistle Communications X-Mailer: Mozilla 3.0Gold (X11; I; FreeBSD 2.2-CURRENT i386) MIME-Version: 1.0 To: Darren Reed CC: hackers@FreeBSD.ORG Subject: Re: the kernel API... References: <199711030212.SAA27203@hub.freebsd.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Darren Reed wrote: > > Now I guess the question is, which API or include file is right ? If you look at these two files, you will discover that /usr/include/machine is derived on 386 based BSD from /usr/src/i86/include looking in that directory you will see that spl.h is n longer present. therefore you have a left-over file.. these were felt to be machine independent defines and moved elsewhere. (i.e. systm.h) I hope that solves the mystery :) julian (who was caught by surprise by the move a little while ago) > > /usr/include/machine/spl.h:122: conflicting types for `splbio' > /usr/include/sys/systm.h:187: previous declaration of `splbio' > /usr/include/machine/spl.h:123: conflicting types for `splclock' > /usr/include/sys/systm.h:188: previous declaration of `splclock' > /usr/include/machine/spl.h: In function `splclock': > /usr/include/machine/spl.h:123: `HWI_MASK' undeclared (first use this > function) > /usr/include/machine/spl.h:123: (Each undeclared identifier is reported only > onc > e > /usr/include/machine/spl.h:123: for each function it appears in.) > /usr/include/machine/spl.h: At top level: > /usr/include/machine/spl.h:124: conflicting types for `splhigh' > /usr/include/sys/systm.h:189: previous declaration of `splhigh' > /usr/include/machine/spl.h: In function `splhigh': > /usr/include/machine/spl.h:124: `HWI_MASK' undeclared (first use this > function) > /usr/include/machine/spl.h: At top level: > /usr/include/machine/spl.h:125: conflicting types for `splimp' > /usr/include/sys/systm.h:190: previous declaration of `splimp' > /usr/include/machine/spl.h:126: conflicting types for `splnet' > /usr/include/sys/systm.h:191: previous declaration of `splnet' > /usr/include/machine/spl.h: In function `splnet': > /usr/include/machine/spl.h:126: `NHWI' undeclared (first use this function) > /usr/include/machine/spl.h: At top level: > /usr/include/machine/spl.h:127: conflicting types for `splsoftclock' > /usr/include/sys/systm.h:199: previous declaration of `splsoftclock' > /usr/include/machine/spl.h:128: conflicting types for `splsofttty' > /usr/include/sys/systm.h:200: previous declaration of `splsofttty' > /usr/include/machine/spl.h: In function `splsofttty': > /usr/include/machine/spl.h:128: `NHWI' undeclared (first use this function) > /usr/include/machine/spl.h: At top level: > /usr/include/machine/spl.h:129: conflicting types for `splstatclock' > /usr/include/sys/systm.h:201: previous declaration of `splstatclock' > /usr/include/machine/spl.h:130: conflicting types for `spltty' > /usr/include/sys/systm.h:202: previous declaration of `spltty' > /usr/include/machine/spl.h:131: conflicting types for `splvm' > /usr/include/sys/systm.h:203: previous declaration of `splvm' > /usr/include/sys/systm.h:203: previous declaration of `splvm' > /usr/include/machine/spl.h:135: warning: static declaration for `spl0' > > (from -current, I believe) Are you sure you guys aren't trying to turn > FreeBSD into Linux ?