From owner-freebsd-arch@FreeBSD.ORG Thu May 2 16:39:36 2013 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 8D3C3133; Thu, 2 May 2013 16:39:36 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) by mx1.freebsd.org (Postfix) with ESMTP id 689261810; Thu, 2 May 2013 16:39:36 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id D1A62B911; Thu, 2 May 2013 12:39:34 -0400 (EDT) From: John Baldwin To: freebsd-arch@freebsd.org Subject: Re: A General or Miscellaneous Binary Image Activator Date: Thu, 2 May 2013 11:38:36 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p25; KDE/4.5.5; amd64; ; ) References: <71BF89C0-13F9-41CA-9F7E-A3FDE11C2346@FreeBSD.org> In-Reply-To: <71BF89C0-13F9-41CA-9F7E-A3FDE11C2346@FreeBSD.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201305021138.36554.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Thu, 02 May 2013 12:39:34 -0400 (EDT) Cc: Stacey Son X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 May 2013 16:39:36 -0000 On Wednesday, May 01, 2013 7:02:49 pm Stacey Son wrote: > Of course, comments, questions, concerns, etc. are welcome. Certainly the ability to cross-build ports in this way is a huge win. I just have a few comments on the kern.binmisc sysctl: It seems to be a bit overloaded and not used like a typical sysctl. A better match would seem to be a /dev/binmisc that you perform ioctl's on. A sysctl might still make better sense for enumerating the interperter entries, but the more typical way to do that would either be to have kern.binmisc. be a sysctl that returns item in the list, or to have the kern.binmisc sysctl that just returns an array of xbe entries (rather than having separate list/lookup operations) similar to how the kern.proc sysctls work. If you were to do this, I would probably prefer the second approach (one sysctl that returns a consistent snapshot). -- John Baldwin