From owner-svn-src-head@freebsd.org Thu Dec 15 20:18:52 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 E22E4C81B8B for ; Thu, 15 Dec 2016 20:18:52 +0000 (UTC) (envelope-from ed@nuxi.nl) Received: from mail-yb0-x236.google.com (mail-yb0-x236.google.com [IPv6:2607:f8b0:4002:c09::236]) (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 A16981154 for ; Thu, 15 Dec 2016 20:18:52 +0000 (UTC) (envelope-from ed@nuxi.nl) Received: by mail-yb0-x236.google.com with SMTP id d59so33186575ybi.1 for ; Thu, 15 Dec 2016 12:18:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nuxi-nl.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=mKKhEAz0hdPYHqC+wU4S7V+Atsdfb9BXngVOZv6s9iY=; b=eFjZTINRdkQgbgqWA4i1xr7ykpMxZUfjEtyoklI8u9C7TJC7FmF2TEM7KDmKlGLGGh dXU6ZJ/ZJcpmrVzWkFvH2cefLCx1ONSEaObRAxmDA/Iaw5R8XBo/Uos279t7gWxwBj7r ygPkFEOargYsXR5mHUH/e6klopDYoFh7qV2aPNTCA7OQitnYA6bAF7RsDwH1C/oxo+LW XEj5jPU4tDgd0gRwPWJfvO6EZm/Zkus3kHCv8y+iabhBIADi0KozQRdjeJ80wLMo4SNh yZG0t8LDQOBMXrRoo6L8hs68Y+jGP2M/5rm82WCRteTI4AdW5jF4PqiZFzgwTCi4Rgo2 AXDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=mKKhEAz0hdPYHqC+wU4S7V+Atsdfb9BXngVOZv6s9iY=; b=gY6NuETR4wOAfZPCiorUtrcHV9MNs19WBte+Bm/O4yLi8eosE6rtVnOCOGZfQ9QOSQ sn+fQbX13Efyo6LTNatuTRRE9gHKvZ8D6ZP/jzCIwrmAmQJ8RJqgN6V1M6c9SGWkLVth nnaaBSd4yq/hx6GecMj/wRxAaOfHNFwBh/m0q/L0485GmU5PlTYNaFlLBu6f5YyJzBIB Ises0akRn2IAmC8976mPsCi+5zM9441bWK5bViI6gEf/Z6tBy2xTU/61C8bkeDmeFEYc LwnLlrhzXr8unP5HLNh4CvtwBFcY9zUkrdQUHbF6oQlpbvDlKubdYzuAjsjNYhz30xr4 w30w== X-Gm-Message-State: AIkVDXJDDN8H1r3IO8/xiGS6uOIUr4EUxfpU2K/V7ISC2okLiwOyWGLkpuEF/jraqtabhb45ohrlsmlnD+7ZZA== X-Received: by 10.37.210.197 with SMTP id j188mr2612055ybg.168.1481833131052; Thu, 15 Dec 2016 12:18:51 -0800 (PST) MIME-Version: 1.0 Received: by 10.129.0.212 with HTTP; Thu, 15 Dec 2016 12:18:20 -0800 (PST) In-Reply-To: References: <201612151545.uBFFjBEL070679@repo.freebsd.org> From: Ed Schouten Date: Thu, 15 Dec 2016 21:18:20 +0100 Message-ID: Subject: Re: svn commit: r310116 - head/sys/kern To: "Conrad E. Meyer" Cc: Ed Schouten , src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org, Christian Schwarz Content-Type: text/plain; charset=UTF-8 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 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, 15 Dec 2016 20:18:53 -0000 Hi Conrad, [ + Christian Schwarz ] 2016-12-15 21:00 GMT+01:00 Conrad Meyer : > Can we please slap names on these numbers? Even if we keep the > existing numeric values? Christian and I exchanged some emails the other day in which we discussed the option of adding libc wrappers/bindings for all of these functions. That way these constants would only be hardcoded in two places: kern_sysctl.c and the function in libc. That said, adding numerical constants for them in sysctl.h would also be a good idea. Right now there is already CTL_UNSPEC, but I guess that should be renamed to something like CTL_INTERNAL or something. -- Ed Schouten Nuxi, 's-Hertogenbosch, the Netherlands KvK-nr.: 62051717