From owner-freebsd-current Fri Dec 13 14:26:17 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 74B4337B401 for ; Fri, 13 Dec 2002 14:26:12 -0800 (PST) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 9480D43ED4 for ; Fri, 13 Dec 2002 14:26:11 -0800 (PST) (envelope-from nate@rootlabs.com) Received: (qmail 37395 invoked by uid 1000); 13 Dec 2002 22:26:12 -0000 Date: Fri, 13 Dec 2002 14:26:12 -0800 (PST) From: Nate Lawson To: Mike Barcroft Cc: current@freebsd.org Subject: Re: __BSD_VISIBLE and u_int In-Reply-To: <20021211195330.A50528@espresso.q9media.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Wed, 11 Dec 2002, Mike Barcroft wrote: > 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. Hmm, which of these defines claims posix src? -D_ANSI_SOURCE ? cc -O -c -O -pipe -mcpu=pentiumpro -mcpu=pentiumpro -I./../include -I./.. -DDIRENT=1 -DDIRENT=1 -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_FCNTL_H=1 -DHAVE_ST_RDEV=1 -DHAVE_TM_ZONE=1 -DHAVE_LONG_FILE_NAMES=1 -DHAVE_RESTARTABLE_SYSCALLS=1 -D_ANSI_SOURCE -DHAVE_DEV_CONSOLE=1 os.c In file included from os.c:25: /usr/include/sys/file.h:130: syntax error before "u_int" > u_int is undocumented and unportable, so it probably shouldn't be > used. It's only 3 characters shorter than `unsigned' anyway. It's for ports. -Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message