Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Apr 2001 12:49:26 -0500
From:      "Guy Helmer" <ghelmer@palisadesys.com>
To:        "Alfred Perlstein" <bright@wintelcom.net>, "Peter Pentchev" <roam@orbitel.bg>
Cc:        <arch@FreeBSD.ORG>
Subject:   RE: gid_t vs. plain int
Message-ID:  <IIEMKPDDELBAEMJFGFHIOEDICAAA.ghelmer@palisadesys.com>
In-Reply-To: <20010425095347.I1790@fw.wintelcom.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday, April 25, 2001 11:54 AM Alfred Perlstein wrote:
> * Peter Pentchev <roam@orbitel.bg> [010425 08:46] wrote:
> > On Wed, Apr 25, 2001 at 06:36:40PM +0300, Peter Pentchev wrote:
> > > Hi,
> > >
> > > OK.  I've (kinda) had enough.
> > >
> > > Is there a reason that struct group in <group.h> does not
> define 'gr_gid'
> >
> > of course that should read <grp.h>, not <group.h>.
> >
> > > as a gid_t value, but as a plain int?  This makes all kinds of things
> > > go berserk with gcc -Wall -W, and causes dozens of (totally unneeded)
> > > casts.
> > >
> > > Is there some standard that says pw_gid is gid_t, but gr_gid is int?
> > > If not, would anyone be interested in patches (yes, I'm
> prepared to sweep
> > > the whole source tree), making gr_gid a gid_t?
>
> It looks like a worthy task, I would ask Bruce and Wollman about it
> before taking it on if it looks like a lot of work just to make sure
> it's the right thing.

PR 22210 addresses this issue and a fix, along with comments from Garrett
Wollman about his anticipated fix.  However, the PR is over six months old
:-)

Guy

Guy Helmer, Ph.D.
http://www.palisadesys.com/~ghelmer/
Sr. Software Engineer, Palisade Systems
ghelmer@palisadesys.com


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




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