IIRC Willem-Jan Withagen has done this years ago. I Cc ed him.
-Guido On Wed, Mar 12, 2003 at 07:39:52PM -0500, John wrote: > Hi Folks, > > I have a need to implement a highly specific variant usage of > what are commonly referred to as magic symlinks, ie: > > /src -> /.src/$ARCH/src > > where $ARCH needs to come from the user environment. > > A related patchset from NetBSD (1995) can be seen here: > > http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=1781 > > In my specific implementation, the value of $ARCH will ALWAYS > be 3 characters (Not having implemented anything yet, and to > avoid possibly playing the userland game, I was thinking of > adding a field to the proc structure and having the setenv/putenv > functions place the value there via a sysctl, thus allowing a > very simple interface... short sighted?). > > If anyone has any comments, or patches hanging around for > this type of implementation, I would appreciate a pointer to them. > > Many, Many Thanks, > John > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-hackers" in the body of the message -- Guido van Rooij | Phone: ++31 653 994 773 Madison Gurkha, Technology Think-Tank | [EMAIL PROTECTED] | FreeBSD committer To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message