Date: Sun, 6 May 2007 16:41:02 -0400 From: David Schultz <das@FreeBSD.ORG> To: Maciej Sobczak <prog@msobczak.com> Cc: freebsd-standards@FreeBSD.ORG Subject: Re: Conventions for system headers Message-ID: <20070506204102.GA31204@VARK.MIT.EDU> In-Reply-To: <463C63F1.6050204@msobczak.com> References: <463C63F1.6050204@msobczak.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, May 05, 2007, Maciej Sobczak wrote: > Hi (this is my first post to this list), > > The C99 standard defines the following requirement (7.1.2/4): > > "Standard headers may be included in any order [...]" > [...] [...] > I would like to propose a campaign of bringing all FreeBSD system > headers in line with the guarantee that C99 provides for its standard > headers, for the benefit and convenience of both developers and port > maintainers. Which headers did you have in mind? This sounds like a laudable goal, but I'd try to limit it to headers where the requisite changes won't be too obscene. For example, a lot of the networking headers have sensible and standard dependencies. (POSIX says that they may include certain headers that they depend on, but we don't, often resulting in a compile-time error; maybe that should be changed.) Generally try to avoid namespace pollution unless there's a good rationale for it. For instance, if you need <sys/types.h>, we have a <sys/_types.h> that provides the same definitions, but with internal names that won't conflict with application names.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070506204102.GA31204>