From owner-cvs-all Tue Jun 11 14:46:14 2002 Delivered-To: cvs-all@freebsd.org Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by hub.freebsd.org (Postfix) with ESMTP id 386C937B400; Tue, 11 Jun 2002 14:46:07 -0700 (PDT) Received: from apollo.backplane.com (localhost [127.0.0.1]) by apollo.backplane.com (8.12.3/8.12.3) with ESMTP id g5BLk6CV008253; Tue, 11 Jun 2002 14:46:06 -0700 (PDT) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.12.3/8.12.3/Submit) id g5BLk6oN008252; Tue, 11 Jun 2002 14:46:06 -0700 (PDT) (envelope-from dillon) Date: Tue, 11 Jun 2002 14:46:06 -0700 (PDT) From: Matthew Dillon Message-Id: <200206112146.g5BLk6oN008252@apollo.backplane.com> To: Sergey Babkin Cc: Mike Barcroft , "Greg 'groggy' Lehey" , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/include pwd.h References: <200206091939.g59JdJC05285@freefall.freebsd.org> <20020610004026.GD61036@wantadilla.lemis.com> <200206100049.g5A0nr1P004846@apollo.backplane.com> <20020609211243.C51371@espresso.q9media.com> <200206100314.g5A3EjTt005317@apollo.backplane.com> <20020609232020.F51371@espresso.q9media.com> <3D05364A.469A44A5@bellatlantic.net> 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 In thinking about this further I can see both solutions (including sys/types in standard includes, and using an architectural-type typedef and only including the architectural includes). I think the typedef idea is doable but I still worry that it will result in a lot of mess in the include files. #include creates more namespace pollution but seems to be a whole lot cleaner otherwise. I don't think the typedef idea will completely solve the namespace pollution issue because, again, a good chunk of application C code out there needs sys/types.h anyway. I wonder if there is a way to test its effectiveness in regards to reducing ports patches and such (improving portability). For the record, I do not think we will hit up against the problem of multiple incompatible typedefs, because the typedefs are based on architectural types (e.g. like _BSD_TIME_T), not core C types. -Matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message