From owner-cvs-all Sun Jun 9 18:15:24 2002 Delivered-To: cvs-all@freebsd.org Received: from espresso.q9media.com (espresso.q9media.com [216.254.138.122]) by hub.freebsd.org (Postfix) with ESMTP id 2E04E37B40D; Sun, 9 Jun 2002 18:15:18 -0700 (PDT) Received: (from mike@localhost) by espresso.q9media.com (8.11.6/8.11.6) id g5A1Chc71055; Sun, 9 Jun 2002 21:12:43 -0400 (EDT) (envelope-from mike) Date: Sun, 9 Jun 2002 21:12:43 -0400 From: Mike Barcroft To: Matthew Dillon Cc: "Greg 'groggy' Lehey" , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/include pwd.h Message-ID: <20020609211243.C51371@espresso.q9media.com> References: <200206091939.g59JdJC05285@freefall.freebsd.org> <20020610004026.GD61036@wantadilla.lemis.com> <200206100049.g5A0nr1P004846@apollo.backplane.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200206100049.g5A0nr1P004846@apollo.backplane.com>; from dillon@apollo.backplane.com on Sun, Jun 09, 2002 at 05:49:53PM -0700 Organization: The FreeBSD Project 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 Matthew Dillon writes: > And why is it conditional on _BSD_XXX_T being defined? Either > pwd.h and password related routines need these types or they don't. > If they don't need them then the typedefs do not belong in pwd.h. > If they do need them then either the users must #include the properly > header file, or must #include the proper header file. You > don't want a 'some times it does this, sometimes it does that' type > of situation. I guess you don't understand how _BSD_FOO_T_ works. It provides a means to typedef the same type in multiple headers. Recommended reading: and . Why typedef things in multiple headers? The standards require them. > The manual pages seem fairly clear. If you look at something like > 'man getgid' it clearly states that must be included > before . > > For password related calls, the manual page also quite clearly states > that must be included before Yes, this was how old BSD/POSIX worked. It's very different in new standards. My changes won't affect any BSD software and only help portability. See my reply to Greg for more details. > For these reasons I would strongly recommend either reverting this change > and leaving at as it was, or removing from > and *NOT* adding weird #ifdef's for gid_t, uid_t, etc, as the manual > page implies. I don't hear you complaining about those weird #ifdef's in :). But seriously, Bruce's designed replacement will get rid of those once I've implemented it. Best regards, Mike Barcroft To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message