Subject: Re: lib/2843
To: None <gnats-bugs@NetBSD.ORG>
From: der Mouse <mouse@Holo.Rodents.Montreal.QC.CA>
List: netbsd-bugs
Date: 12/03/1996 12:23:32
> Regarding <grp.h> not including <sys/types.h> ... since the
> getgrent(3) manual page explicitly says:

> SYNOPSIS
>      #include <sys/types.h>
>      #include <grp.h>

> ...is this really a bug?

Depends on your definition of "bug".  In my opinion, _any_ include file
depending on any other without pulling in that other, is a bug.
<sys/types.h> is probably the single most frequent "other", but the
problem is rampant elsewhere.  I have a whole shadow tree of include
files that read like

% cat sys/user.h
#ifndef _USER_H_61f87167_
#define _USER_H_61f87167_

#include <sys/param.h>

#include "/usr/include/sys/user.h"

#endif
% 

(for example)...shall I package them up into a PR? :-7

					der Mouse

			       mouse@rodents.montreal.qc.ca
		     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B