Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Aug 2001 17:57:43 -0700
From:      "David O'Brien" <obrien@freebsd.org>
To:        hackers@freebsd.org
Subject:   header polution
Message-ID:  <20010820175743.A33795@dragon.nuxi.com>

next in thread | raw e-mail | index | archive | help
When compiling the `dict' port, one gets:

    In file included from /usr/include/machine/signal.h:54,
                     from /usr/include/sys/signal.h:178,
                     from /usr/include/signal.h:44,
                     from dict.h:33,
                     from clientparse.y:25:
    /usr/include/machine/trap.h:105: warning: `T_USER' redefined

This seems very wrong.  Can't we rename "T_USER" in the kernel to
"_T_USER", or wrap it in _KERNEL?  The comment in machine/signal.h(x86)
says:

    #include <machine/trap.h>   /* codes for SIGILL, SIGFPE */

but does that mean we must expose the entire contents of trap.h to
userland?  The problem is T_ is very common in lex source.

-- 
-- David  (obrien@FreeBSD.org)

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




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