From owner-freebsd-current Wed Dec 11 17: 3:31 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8BF3337B401 for ; Wed, 11 Dec 2002 17:03:30 -0800 (PST) Received: from espresso.q9media.com (espresso.q9media.com [65.39.129.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0D0CA43EA9 for ; Wed, 11 Dec 2002 17:03:30 -0800 (PST) (envelope-from mike@espresso.q9media.com) Received: by espresso.q9media.com (Postfix, from userid 1002) id 40DFF9C10; Wed, 11 Dec 2002 19:53:30 -0500 (EST) Date: Wed, 11 Dec 2002 19:53:30 -0500 From: Mike Barcroft To: Nate Lawson Cc: current@freebsd.org Subject: Re: __BSD_VISIBLE and u_int Message-ID: <20021211195330.A50528@espresso.q9media.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: ; from nate@root.org on Wed, Dec 11, 2002 at 04:40:40PM -0800 Organization: The FreeBSD Project Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Nate Lawson writes: > What's the proper way to get a typedef for u_int? Is there a doc > somewhere on what we expect in terms of #defines for 3rd party application > authors? will give you a typedef, provided you aren't writing a POSIX or X/Open application. If you're writing a POSIX or X/Open application (the only time __BSD_VISIBLE is false) you'll have to do the typedef manually in your application. u_int is undocumented and unportable, so it probably shouldn't be used. It's only 3 characters shorter than `unsigned' anyway. Best regards, Mike Barcroft To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message