From owner-cvs-all Mon Feb 25 6:24: 5 2002 Delivered-To: cvs-all@freebsd.org Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by hub.freebsd.org (Postfix) with ESMTP id 71DF037B400; Mon, 25 Feb 2002 06:23:58 -0800 (PST) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.2/8.12.2) with ESMTP id g1PENtgS034438; Mon, 25 Feb 2002 17:23:55 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.2/8.12.2/Submit) id g1PENrks034437; Mon, 25 Feb 2002 17:23:54 +0300 (MSK) Date: Mon, 25 Feb 2002 17:23:53 +0300 From: "Andrey A. Chernov" To: Maxim Sobolev Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, hackers@FreeBSD.org Subject: Re: or not ? [Was: cvs commit: src/include grp.h] Message-ID: <20020225142352.GA34378@nagual.pp.ru> References: <200202251355.g1PDtmb35078@freefall.freebsd.org> <20020225140030.GD33818@nagual.pp.ru> <3C7A458F.427FFF8A@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3C7A458F.427FFF8A@FreeBSD.org> User-Agent: Mutt/1.3.27i Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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. 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 8335 DESCRIPTION 8336 The 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 . ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16662 NAME 16663 getgrgid, getgrgid_r.get group database entry for a group ID 16664 SYNOPSIS 16665 #include 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