From owner-svn-src-head@freebsd.org Sat Nov 7 20:13:35 2015 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 455DDA2866A; Sat, 7 Nov 2015 20:13:35 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-io0-x22c.google.com (mail-io0-x22c.google.com [IPv6:2607:f8b0:4001:c06::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 07E0A1DC7; Sat, 7 Nov 2015 20:13:35 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by iody8 with SMTP id y8so153108703iod.1; Sat, 07 Nov 2015 12:13:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=M4B3mkeVfuQpHd6Zg0c6yHQ4KxHxYckZzhCIbKkaX3U=; b=r90Lt8eKsGtH2pFnn8CrGvEo2x94Cuqyk41IfWlWUd0MrU8eDQLvCiPKdMbDcXTfu6 mslG7gqkwhC42DTLYMgMeF/qL2s72TfWUR3Zy9luapttvPkxQL8qPKtU4Re1MI3/7gIp +sONLTkn4SBjzE40PSSs8i9Cta1FTF3Mc8wNDLwyz+bZKDmE62LjCLjFUt6Fv+MfnAWI boMLbEfX+hqRyWfWQfpmGnkmkuO+ej59lAbRyHq3EVwN+UeMWCqXyQCv4l+tOqjVrNLJ 8sM9w50ItKHqR69TDcguxV5d4IRSnJXd43ErGveKKgoh/yNrd2OLECMjdZiv5cg1SZXw D6wg== X-Received: by 10.107.133.101 with SMTP id h98mr11945725iod.16.1446927214500; Sat, 07 Nov 2015 12:13:34 -0800 (PST) Received: from ?IPv6:2601:601:800:126d:1912:5f6f:1b43:3eed? ([2601:601:800:126d:1912:5f6f:1b43:3eed]) by smtp.gmail.com with ESMTPSA id 184sm2671610ioe.21.2015.11.07.12.13.33 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 07 Nov 2015 12:13:33 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: svn commit: r290505 - in head/sys: kern sys From: NGie Cooper In-Reply-To: <20151108054659.D5096@besplex.bde.org> Date: Sat, 7 Nov 2015 12:13:32 -0800 Cc: "Conrad E. Meyer" , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <201511071826.tA7IQWNR035920@repo.freebsd.org> <20151108054659.D5096@besplex.bde.org> To: Bruce Evans X-Mailer: Apple Mail (2.2104) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Nov 2015 20:13:35 -0000 > On Nov 7, 2015, at 11:14, Bruce Evans wrote: >=20 > On Sat, 7 Nov 2015, Conrad E. Meyer wrote: >=20 >> Log: >> Flesh out sysctl types further (follow-up of r290475) >>=20 >> Use the right intmax_t type instead of intptr_t in a few remaining >> places. >>=20 >> Add support for CTLFLAG_TUN for the new fixed with types. Bruce will = be >> upset that the new handlers silently truncate tuned quad-sized = inputs, >> but so do all of the existing handlers. >=20 > I think I have complained about the getenv_*() integer functions = before. > All of them truncate or otherwise corrupt the value. getenv_quad() > does non-blind clamping using strtoq() followed by blind scaling in > the suffix case. All others use getenv_quad() with blind truncation, > except on 64-bit arches long =3D=3D quad so getenv_long() only has the = same > errors as getenv_quad(). Yes. I can=E2=80=99t find the exact thread (it was 3-5 years ago), but I = was involved and I proposed a patch which didn=E2=80=99t make it into = the tree. Thanks, -NGie=