From owner-svn-src-head@freebsd.org Thu May 26 21:37:18 2016 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 1D6BCB4C330; Thu, 26 May 2016 21:37:18 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebi.us (glebi.us [96.95.210.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "cell.glebi.us", Issuer "cell.glebi.us" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 04392101F; Thu, 26 May 2016 21:37:17 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebi.us (localhost [127.0.0.1]) by cell.glebi.us (8.15.2/8.15.2) with ESMTPS id u4QLbG8j009463 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 26 May 2016 14:37:16 -0700 (PDT) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebi.us (8.15.2/8.15.2/Submit) id u4QLbGvo009462; Thu, 26 May 2016 14:37:16 -0700 (PDT) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebi.us: glebius set sender to glebius@FreeBSD.org using -f Date: Thu, 26 May 2016 14:37:16 -0700 From: Gleb Smirnoff To: Hans Petter Selasky Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r300718 - in head/sys: kern sys Message-ID: <20160526213716.GK58287@FreeBSD.org> References: <201605260841.u4Q8ft9r045564@repo.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201605260841.u4Q8ft9r045564@repo.freebsd.org> User-Agent: Mutt/1.6.1 (2016-04-27) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.22 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: Thu, 26 May 2016 21:37:18 -0000 Hans, On Thu, May 26, 2016 at 08:41:55AM +0000, Hans Petter Selasky wrote: H> Author: hselasky H> Date: Thu May 26 08:41:55 2016 H> New Revision: 300718 H> URL: https://svnweb.freebsd.org/changeset/base/300718 H> H> Log: H> Add support for boolean sysctl's. H> H> Because the size of bool can be implementation defined, make a bool H> sysctl handler which handle bools. Userspace sees the bools like H> unsigned 8-bit integers. Values are filtered to either 1 or 0 upon H> read and write, similar to what a compiler would do. H> H> Requested by: kmacy @ H> Sponsored by: Mellanox Technologies Would be nice if sysctl(8) would explicitly display them as "true" or "false" instead of 0 and 1. Now the userland can't differ them from uint8_t oids. -- Totus tuus, Glebius.