Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Jun 2013 17:56:16 -0700
From:      Garrett Cooper <yaneurabeya@gmail.com>
To:        Bruce Evans <brde@optusnet.com.au>
Cc:        src-committers <src-committers@FreeBSD.org>, svn-src-all <svn-src-all@FreeBSD.org>, Hiroki Sato <hrs@FreeBSD.org>, hiren panchasara <hiren@FreeBSD.org>, Glen Barber <gjb@FreeBSD.org>, Steven Hartland <killing@multiplay.co.uk>, svn-src-head <svn-src-head@FreeBSD.org>, Rick Macklem <rmacklem@FreeBSD.org>
Subject:   Re: svn commit: r252074 - head/sys/fs/nfsclient
Message-ID:  <DEA33CC6-3791-4D47-B685-A7A13700D031@gmail.com>
In-Reply-To: <20130623093034.A923@besplex.bde.org>
References:  <201306212246.r5LMkHBY070137@svn.freebsd.org><20130622042219.GC1888@glenbarber.us> <CALCpEUF__sJqEgzkx5v88c4FZTyOiKOEQuebWFJ09Bk8n-Y1jA@mail.gmail.com> <28B87860D4194B3DA2E6A992537142B1@multiplay.co.uk> <337C6949-87B6-442A-ADD6-9F12766E9919@gmail.com> <20130623093034.A923@besplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Jun 22, 2013, at 5:44 PM, Bruce Evans wrote:

> On Sat, 22 Jun 2013, Garrett Cooper wrote:
>=20
>> On Jun 22, 2013, at 11:22 AM, Steven Hartland wrote:
>>=20
>>> I thought the use of PRIu64  was frowned on?
>>=20
>> 	It is in FreeBSD, unlike Linux (for better or for worse). It =
should be cast with either intmax_t or uintmax_t and use %jd or %ju.
>=20
> Do you mean that this mistake is not even possible in Linux (the =
kernel)?
> Linux-2.6.10 has no references to PRI* or SCN*.  It doesn't even have
> stdint.h.  The PRI* and SCN* bugs are in inttypes.h.  In C99, =
<inttypes.h>
> is a historical wrapper for <stdint.h> that adds these bugs and =
prototypes
> for strtoimax() and friends.  In the kernel, these files really =
shouldn't
> be used.

I meant GNU/Linux, as a distribution, not just the kernel.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DEA33CC6-3791-4D47-B685-A7A13700D031>