Date: Wed, 11 Dec 2002 19:53:30 -0500 From: Mike Barcroft <mike@FreeBSD.org> To: Nate Lawson <nate@root.org> Cc: current@freebsd.org Subject: Re: __BSD_VISIBLE and u_int Message-ID: <20021211195330.A50528@espresso.q9media.com> In-Reply-To: <Pine.BSF.4.21.0212111639210.31267-100000@root.org>; from nate@root.org on Wed, Dec 11, 2002 at 04:40:40PM -0800 References: <Pine.BSF.4.21.0212111639210.31267-100000@root.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Nate Lawson <nate@root.org> 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? <sys/types.h> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021211195330.A50528>