Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Mar 2000 17:13:55 -0500 (EST)
From:      Brian Fundakowski Feldman <green@FreeBSD.org>
To:        Steve Kiernan <stevek@tislabs.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: breakage still in sys/systm.h
Message-ID:  <Pine.BSF.4.21.0003241712380.1223-100000@green.dyndns.org>
In-Reply-To: <Pine.BSF.4.10.10003241706260.13885-100000@mufasa.va.tislabs.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 24 Mar 2000, Steve Kiernan wrote:

> The definitions of major() and minor() in sys/systm.h break usage of the
> header.  Since sys/types.h defines major() and minor() as macros which
> compute the major and minor numbers, this creates an order dependency on
> sys/systm.h and sys/types.h.  Is this not a bad thing?

The sys/types.h header is meant to be included in userland code; the
sys/systm.h header is not to be included from outside of kernel code.
What possible reason would you have for systm.h in userland code?

> --
> Stephen Kiernan
> stevek@tislabs.com
> NAI Labs, A Division of Network Associates, Inc.

--
 Brian Fundakowski Feldman           \  FreeBSD: The Power to Serve!  /
 green@FreeBSD.org                    `------------------------------'



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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0003241712380.1223-100000>