Subject: included from userland unnecessarily.
To: None <tech-userlevel@netbsd.org>
From: Simon Burge <simonb@wasabisystems.com>
List: tech-userlevel
Date: 10/12/2001 23:42:43
Folks,

A number of architectures (i386, m68k, pc532, sh3 & x86_64) include
<machine/trap.h> from <machine/signal.h>, and of these, only the
pc532 wraps all the trap types in an "#ifdef _KERNEL".  As far as
I can tell, there's no requirement to include <machine/trap.h> in
<machine/signal.h>, except that there maybe some residual fallout in
some MD parts of the kernel.  Is there any opposition to removing that
#include from <machine/signal.h>?

The particular problem I saw was that a user program that defined T_USER
and also included <signal.h> got some sort of cpp error/warning.

Simon.
--
Simon Burge                            <simonb@wasabisystems.com>
NetBSD CDs, Support and Service:    http://www.wasabisystems.com/