From owner-svn-src-all@freebsd.org Thu Dec 15 20:18:52 2016 Return-Path: Delivered-To: svn-src-all@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 C9629C81B8A for ; Thu, 15 Dec 2016 20:18:52 +0000 (UTC) (envelope-from ed@nuxi.nl) Received: from mail-yb0-x22f.google.com (mail-yb0-x22f.google.com [IPv6:2607:f8b0:4002:c09::22f]) (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 88C9E1152 for ; Thu, 15 Dec 2016 20:18:52 +0000 (UTC) (envelope-from ed@nuxi.nl) Received: by mail-yb0-x22f.google.com with SMTP id v132so33232681yba.0 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=FUXCq4S/o1N5tGBePiUFdByNEaiufGcQKjqN0dwuMQZdmYqjjI29bENCUA1CD1QN6D s9wGdGp675xmdows1NRzkrBSGMekR/tyqhSxfex5nzpO0AZSl4l7hrTuFAZMB9gkpS9X 73F+2zuef/LxxVL74PlvGLsRsWtomEjmRclc4foXE+foGXMVk4k3QPE+ImRRFPi0lmYA Y7eK/sAX7i/wQPwcnZF0UPQKbww53zv1lhPTSXlu8isdJE1/sL2AsijhzMLT8d/M+iyM EPVWJ6Or9KY1p2ClpuSU5BTEpX+trOG3Q2f1VNzDgj2uaqhtcr2qc44Dh88QhPj7GmGt dqnA== X-Gm-Message-State: AIkVDXJMd5xR41cdY/l/AkYAnlXTHWlg5Li8uyO2adz0t9NUggjpQmOHyUDjJw1KHI6MtyLSCmu7BWwDGsnzww== 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-all@freebsd.org X-Mailman-Version: 2.1.23 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: Thu, 15 Dec 2016 20:18:52 -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