From owner-freebsd-stable@FreeBSD.ORG Wed Jun 15 14:50:28 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D3EE1065673 for ; Wed, 15 Jun 2011 14:50:28 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 770D48FC18 for ; Wed, 15 Jun 2011 14:50:26 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id p5FEoI1v005923 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 15 Jun 2011 17:50:18 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4) with ESMTP id p5FEoIPI083260; Wed, 15 Jun 2011 17:50:18 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4/Submit) id p5FEoI8T083259; Wed, 15 Jun 2011 17:50:18 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 15 Jun 2011 17:50:18 +0300 From: Kostik Belousov To: Joerg Wunsch Message-ID: <20110615145018.GM48734@deviant.kiev.zoral.com.ua> References: <20110615135704.GQ23206@uriah.heep.sax.de> <20110615140051.GL48734@deviant.kiev.zoral.com.ua> <20110615144455.GS23206@uriah.heep.sax.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YRwqFeLBE20lHcU+" Content-Disposition: inline In-Reply-To: <20110615144455.GS23206@uriah.heep.sax.de> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-3.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-stable@freebsd.org Subject: Re: doscmd under 8-stable, anyone? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jun 2011 14:50:28 -0000 --YRwqFeLBE20lHcU+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 15, 2011 at 04:44:55PM +0200, Joerg Wunsch wrote: > As Kostik Belousov wrote: >=20 > > Do sysctl security.bsd.map_at_zero=3D1 >=20 > Just for the record, this sysctl also makes my really really old utree > binary work again. The binary dates back to 386BSD 0.0, and I'm only > keeping it out of curiosity: >=20 > j@uriah 66% ls -l /usr/local/bin/utree > -rwxr-xr-x 1 bin bin 179639 Apr 30 1992 /usr/local/bin/utree* >=20 > The only thing to make it run is to use a termcap entry that is > smaller than 1024 byte, as this used to be a hard-coded limitation in > the termcap library of those days, and the binary is statically > linked. TERM=3Dvt100 works, xterm no longer does. >=20 > The ability to run this binary only serves as a proof that no backward > compatibility has ever been broken in FreeBSD. ;-) (Obviously, all > the various COMPAT_* options must be present in the kernel config.) Yes, doscmd and N-magic a.out binaries were the arguments to implement the sysctl instead of outright disable of the mapping at address 0. You are the first documented case of the wiseness of the decision :). BTW, I semi-jokingly committed the support for FreeBSD-1.0/i386 ABI on amd64 on April 1. Would be interesting to see how does your binary behaves. --YRwqFeLBE20lHcU+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEARECAAYFAk34xqoACgkQC3+MBN1Mb4i7sACeNeWAJVwSrOVNYrsX41gY8sr7 3vMAoOTqVAx8e43vD5WprvQKsrx+aRBs =CiPn -----END PGP SIGNATURE----- --YRwqFeLBE20lHcU+--