Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Feb 2002 14:40:03 +0000
From:      David Malone <dwmalone@maths.tcd.ie>
To:        "Andrey A. Chernov" <ache@nagual.pp.ru>
Cc:        Sheldon Hearn <sheldonh@starjuice.net>, Maxim Sobolev <sobomax@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, hackers@FreeBSD.org
Subject:   Re: <sys/types.h> or not <sys/types.h>? [Was: cvs commit: src/include grp.h]
Message-ID:  <20020225144003.GA50785@walton.maths.tcd.ie>
In-Reply-To: <20020225143231.GC34378@nagual.pp.ru>
References:  <3C7A458F.427FFF8A@FreeBSD.org> <89936.1014647587@axl.seasidesoftware.co.za> <20020225143231.GC34378@nagual.pp.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Feb 25, 2002 at 05:32:31PM +0300, Andrey A. Chernov wrote:
> On Mon, Feb 25, 2002 at 16:33:07 +0200, Sheldon Hearn wrote:
> > However, the standard expects gid_t to be defined in <unistd.h>, so if
> > you just need gid_t, and not prototypes for getgr*(), then that's the
> > one to include.
> 
> POSIX reguire gid_t to be specified not only in <sys/types.h> but in 
> <grp.h> too.

I note that in the footnotes for getgrgid, in the section for "issue
6" of the standard:

	The requirement to include <sys/types.h> has been removed.
	Although <sys/types.h> was required for conforming
	implementations of previous POSIX specifications, it was
	not required for UNIX applications.

Curiously, this seems to say the opposit of what you actually see
in SUSv2, as it lists <sys/types.h> as a prerequisit.

	David.

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




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