From owner-svn-src-all@FreeBSD.ORG Sun Jun 23 00:56:20 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 6B7EAB79; Sun, 23 Jun 2013 00:56:20 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-pa0-x22a.google.com (mail-pa0-x22a.google.com [IPv6:2607:f8b0:400e:c03::22a]) by mx1.freebsd.org (Postfix) with ESMTP id 225B81729; Sun, 23 Jun 2013 00:56:20 +0000 (UTC) Received: by mail-pa0-f42.google.com with SMTP id rl6so9475689pac.1 for ; Sat, 22 Jun 2013 17:56:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=eFLAaNxP6Z7RavqAmDNVBDfso8HaGNueVn315mdXGq4=; b=JESrSD+aosCoqBBncBeBU3DveOPQfTxqR8comRAIgWlvGYSJEWEvDhfpSPDZr8Kv4h sB2FtF5lbP9e1cp/pvWFlUiPTcTdf/iWRIEkJTlMM3Nz+j5qWLlIKVjbRJshLc9HtFXS vB752ccP2PKi4Kc+E99FRF932oNIXhcP4mVVvSaI0m54xMfT2RpTXieQFnzTGpT2xZx/ 3AyCSu25yOX6inp0PxjRnQQI9sOlAhF70nPDf0s5tMwB1Gkd0luTtxnr9oD03k0RH/JM FCFGieuMbogP45cqN1/37f324BNqOZYw5x4ji1N8/BKjPRjreewkjPp6305txMeOTBpN hYeQ== X-Received: by 10.66.122.5 with SMTP id lo5mr6265994pab.175.1371948979980; Sat, 22 Jun 2013 17:56:19 -0700 (PDT) Received: from [192.168.20.5] (c-98-203-241-95.hsd1.wa.comcast.net. [98.203.241.95]) by mx.google.com with ESMTPSA id iq6sm11243699pbc.1.2013.06.22.17.56.18 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 22 Jun 2013 17:56:19 -0700 (PDT) Subject: Re: svn commit: r252074 - head/sys/fs/nfsclient Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset=us-ascii From: Garrett Cooper In-Reply-To: <20130623093034.A923@besplex.bde.org> Date: Sat, 22 Jun 2013 17:56:16 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: <201306212246.r5LMkHBY070137@svn.freebsd.org><20130622042219.GC1888@glenbarber.us> <28B87860D4194B3DA2E6A992537142B1@multiplay.co.uk> <337C6949-87B6-442A-ADD6-9F12766E9919@gmail.com> <20130623093034.A923@besplex.bde.org> To: Bruce Evans X-Mailer: Apple Mail (2.1283) Cc: src-committers , svn-src-all , Hiroki Sato , hiren panchasara , Glen Barber , Steven Hartland , svn-src-head , Rick Macklem X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Jun 2013 00:56:20 -0000 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, = > is a historical wrapper for 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.=