Date: Wed, 12 Mar 2003 19:39:52 -0500 From: John <jwd@bsdwins.com> To: Hackers List <freebsd-hackers@freebsd.org> Subject: magic symbolic links (ideas/patches?) Message-ID: <20030313003952.GA1800@BSDWins.Com>
next in thread | raw e-mail | index | archive | help
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 majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030313003952.GA1800>