From owner-freebsd-arch@FreeBSD.ORG Fri Aug 22 12:35:29 2008 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 460D3106566B; Fri, 22 Aug 2008 12:35:29 +0000 (UTC) (envelope-from chris@hitnet.RWTH-Aachen.DE) Received: from mta-1.ms.rz.rwth-aachen.de (mta-1.ms.rz.RWTH-Aachen.DE [134.130.7.72]) by mx1.freebsd.org (Postfix) with ESMTP id E749A8FC1D; Fri, 22 Aug 2008 12:35:28 +0000 (UTC) (envelope-from chris@hitnet.RWTH-Aachen.DE) Received: from ironport-out-2.rz.rwth-aachen.de ([134.130.3.59]) by mta-1.ms.rz.RWTH-Aachen.de (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTP id <0K6000JBS49211D0@mta-1.ms.rz.RWTH-Aachen.de>; Fri, 22 Aug 2008 14:05:26 +0200 (CEST) Received: from smarthost-1.ms.rz.rwth-aachen.de (HELO smarthost.rwth-aachen.de) ([134.130.7.89]) by ironport-in-2.rz.rwth-aachen.de with ESMTP; Fri, 22 Aug 2008 14:05:26 +0200 Received: from bigboss.hitnet.rwth-aachen.de (bigspace.hitnet.RWTH-Aachen.DE [137.226.181.2]) by smarthost.rwth-aachen.de (8.13.8+Sun/8.13.8/1) with ESMTP id m7MC5Qcc029413; Fri, 22 Aug 2008 14:05:26 +0200 (CEST) Received: from haakonia.hitnet.rwth-aachen.de ([137.226.181.92]) by bigboss.hitnet.rwth-aachen.de with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1KWVOQ-00084w-Hn; Fri, 22 Aug 2008 14:05:26 +0200 Received: by haakonia.hitnet.rwth-aachen.de (Postfix, from userid 1001) id 3625B3F433; Fri, 22 Aug 2008 14:05:26 +0200 (CEST) Date: Fri, 22 Aug 2008 14:05:26 +0200 From: Christian Brueffer In-reply-to: To: Ivan Voras Message-id: <20080822120525.GA1366@haakonia.hitnet.RWTH-Aachen.DE> MIME-version: 1.0 Content-type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary=rwEMma7ioTxnRzrJ Content-disposition: inline X-IronPort-AV: E=Sophos;i="4.32,251,1217800800"; d="scan'208";a="52607504" X-Operating-System: FreeBSD 6.3-STABLE X-PGP-Key: http://people.FreeBSD.org/~brueffer/brueffer.key.asc X-PGP-Fingerprint: A5C8 2099 19FF AACA F41B B29B 6C76 178C A0ED 982D References: <20080822090448.GB57441@onelab2.iet.unipi.it> <48AE89DC.9080408@yandex.ru> User-Agent: Mutt/1.5.11 Cc: brooks@freebsd.org, freebsd-arch@freebsd.org Subject: Re: Magic symlinks redux 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: Fri, 22 Aug 2008 12:35:29 -0000 --rwEMma7ioTxnRzrJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Aug 22, 2008 at 12:24:41PM +0200, Ivan Voras wrote: > Andrey V. Elsukov wrote: > >Luigi Rizzo wrote: > >>interestingly simple. > >> > >>Question - is the process' ENV easily available in this part > >>of the kernel, so one could in principle use environment variables > >>as replacement strings ? >=20 > >This was so long ago.. As i remember this patch is a quick port of > >NetBSD's implementation and uses the same code. > > > >Also there was another implementation ported from DragonFlyBSD. > >David Quattlebaum is working on varsyms implementation and he sent > >fresh patch to me in this April. I attached patch. > >And sorry, i am not working on this today.. >=20 > This patch is huge. As far as I can tell DragonflyBSD has a whole=20 > framework dedicated to varsyms, spread across a fair part of the kernel= =20 > and with at least one special userland utility. It allows the operator=20 > to define his own variables that can be used in the substitutions, and I= =20 > don't see that it predefines "special" variables like "uid" and=20 > "hostname". It's not necessarily a bad solution but I consider it overkil= l. >=20 > Anyway, the syntax of DFBSD's varsyms is similar but sufficiently=20 > different from NetBSD's magicsyms implementation that both can coexist.= =20 > DFBSD uses ${var} and NetBSD uses @var or @{var} so there's no=20 > ambiguity between them. >=20 > Unless a kernel developer is interested in working the DFBSD's=20 > implementation in, I'll push the NetBSD's variant. >=20 > _______________________________________________ > freebsd-arch@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arch > To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org" >=20 Brooks has a varsym port in p4, see //depot/user/brooks/varsym/ - Christian --=20 Christian Brueffer chris@unixpages.org brueffer@FreeBSD.org GPG Key: http://people.freebsd.org/~brueffer/brueffer.key.asc GPG Fingerprint: A5C8 2099 19FF AACA F41B B29B 6C76 178C A0ED 982D --rwEMma7ioTxnRzrJ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFIrquFbHYXjKDtmC0RAnpFAJ0Se8HImQR98Ysp/ZwByDZxih1/IACg89s3 FxDpDeN6B2tFikg/JeedWbg= =aWFR -----END PGP SIGNATURE----- --rwEMma7ioTxnRzrJ--