From owner-freebsd-amd64@FreeBSD.ORG Tue Jul 20 11:12:31 2010 Return-Path: Delivered-To: amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7F7A91065675 for ; Tue, 20 Jul 2010 11:12:31 +0000 (UTC) (envelope-from des@des.no) Received: from smtp.des.no (smtp.des.no [194.63.250.102]) by mx1.freebsd.org (Postfix) with ESMTP id 42F178FC32 for ; Tue, 20 Jul 2010 11:12:31 +0000 (UTC) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id 3FBDC1FFC33; Tue, 20 Jul 2010 10:54:23 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id 47E0E8457B; Tue, 20 Jul 2010 12:52:09 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Kostik Belousov References: <20100719213054.GB2381@deviant.kiev.zoral.com.ua> Date: Tue, 20 Jul 2010 12:52:09 +0200 In-Reply-To: <20100719213054.GB2381@deviant.kiev.zoral.com.ua> (Kostik Belousov's message of "Tue, 20 Jul 2010 00:30:54 +0300") Message-ID: <86eieyl92e.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: amd64@freebsd.org, arch@freebsd.org Subject: Re: uname -m/-p for compat32 binaries X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jul 2010 11:12:31 -0000 Kostik Belousov writes: > I intend to commit the following change, that makes sysctls > hw.machine_arch and hw.machine to return "i386" for 32 bit > binaries run on amd64. In particular, 32 bit uname -m and uname -p > print "i386", that is good for i386 jails on amd64 kernels. *thank you*, this trips me up every time I need to set up a 32-bit chroot or jail for some reason. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no