From owner-freebsd-arch@FreeBSD.ORG Sat Apr 7 21:42:11 2007 Return-Path: X-Original-To: freebsd-arch@freebsd.org Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CC5E416A400; Sat, 7 Apr 2007 21:42:11 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-3-125.belrs4.nsw.optusnet.com.au [220.239.3.125]) by mx1.freebsd.org (Postfix) with ESMTP id 586FA13C4BD; Sat, 7 Apr 2007 21:42:11 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.8/8.13.8) with ESMTP id l37LKMBT084457; Sun, 8 Apr 2007 07:20:22 +1000 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.8/8.13.8/Submit) id l37LKMpN084456; Sun, 8 Apr 2007 07:20:22 +1000 (EST) (envelope-from peter) Date: Sun, 8 Apr 2007 07:20:22 +1000 From: Peter Jeremy To: Andrew Pantyukhin Message-ID: <20070407212022.GH71995@turion.vk2pj.dyndns.org> References: <20070407120656.GD63916@garage.freebsd.pl> <20070407145154.GG63916@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IU5/I01NYhRvwH70" Content-Disposition: inline In-Reply-To: X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.14 (2007-02-12) Cc: Pawel Jakub Dawidek , freebsd-arch@freebsd.org Subject: Re: Host ID. X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Apr 2007 21:42:11 -0000 --IU5/I01NYhRvwH70 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2007-Apr-07 19:08:18 +0400, Andrew Pantyukhin w= rote: >Anyway, other systems also have a notion of hostid. It >appears from this linux manpage that hostid was there >in 4.2BSD, but got removed in 4.4BSD: > >http://www.die.net/doc/linux/man/man2/gethostid.2.html Actually, the concept of hostid remained present. 4.4BSD changed the preferred access mechanism from a syscall to a sysctl. FreeBSD has o{g,s}ethostid under COMPAT_43 and kern.hostid. Note that the 4.4BSD, Lite1, Lite2 and final include code to extract the hostid out of a SPARC ID prom. I don't know if this is still relevant to UltraSPARC machines. --=20 Peter Jeremy --IU5/I01NYhRvwH70 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGGAsW/opHv/APuIcRArJUAJ9uLvuTFQEd/j+kHhfCxYeqLCvPGACcCWAh wKHbwxSaCn+YKC8iX+IeDk0= =z1tz -----END PGP SIGNATURE----- --IU5/I01NYhRvwH70--