Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Feb 2002 16:33:07 +0200
From:      Sheldon Hearn <sheldonh@starjuice.net>
To:        Maxim Sobolev <sobomax@FreeBSD.org>
Cc:        "Andrey A. Chernov" <ache@nagual.pp.ru>, 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:  <89936.1014647587@axl.seasidesoftware.co.za>
In-Reply-To: Your message of "Mon, 25 Feb 2002 16:09:19 %2B0200." <3C7A458F.427FFF8A@FreeBSD.org> 

next in thread | previous in thread | raw e-mail | index | archive | help


On Mon, 25 Feb 2002 16:09:19 +0200, Maxim Sobolev wrote:

> Are you sure? I've just heard so many opinions about that and want to
> get some clarity before backouting the backout to avoid backouting the
> backouted backout later. :)
> 
> Please, could anyone confirm or reject assertion that POSIX doesn't
> require <sys/types.h> before <gpr.h>?

I just checked on the OpenGroup web site, and it looks like Andrey's
right -- getgr*() rely on <grp.h> only.

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.

Sorry about the confusion.  For what it's worth, I just asked a
question.  I didn't make any assertions originally.

Ciao,
Sheldon.

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?89936.1014647587>