Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Feb 2002 17:23:53 +0300
From:      "Andrey A. Chernov" <ache@nagual.pp.ru>
To:        Maxim Sobolev <sobomax@FreeBSD.org>
Cc:        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:  <20020225142352.GA34378@nagual.pp.ru>
In-Reply-To: <3C7A458F.427FFF8A@FreeBSD.org>
References:  <200202251355.g1PDtmb35078@freefall.freebsd.org> <20020225140030.GD33818@nagual.pp.ru> <3C7A458F.427FFF8A@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Feb 25, 2002 at 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. :)

Your initial fix was incorrect, but intention was right. <grp.h> should
declare gid_t by itself. Sample quotes included below.

From IEEE P1003.1 Draft 7:

NAME
8332 grp.h.group structure
8333 SYNOPSIS
8334 #include <grp.h>
8335 DESCRIPTION
8336 The <grp.h> header shall declare the structure group which shall 
include the following
8337 members:
8338 char *gr_name The name of the group.
8339 gid_t gr_gid Numerical group ID.
8340 char **gr_mem Pointer to a null-terminated array of character
8341 pointers to member names.
8342 The gid_t type shall be defined as described in <sys/types.h>.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

16662 NAME
16663 getgrgid, getgrgid_r.get group database entry for a group ID
16664 SYNOPSIS
16665 #include <grp.h>
16666 struct group *getgrgid(gid_t gid);
16667 TSF int getgrgid_r(gid_t gid, struct group * grp, char * buffer,
16668 size_t bufsize, struct group ** result);

-- 
Andrey A. Chernov
http://ache.pp.ru/

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?20020225142352.GA34378>