NetBSD/share
thorpej 65412a2710 Implement expansion of special "magic" strings in symlinks into
system-specific values.  Submitted by Chris Demetriou in Nov 1995 (!)
in PR kern/1781, modified only slighly by me.

This is enabled on a per-mount basis with the MNT_MAGICLINKS mount
flag.  It can be enabled at mountroot() time by building the kernel
with the ROOTFS_MAGICLINKS option.

The following magic strings are supported by the implementation:

	@machine	value of MACHINE for the system
	@machine_arch	value of MACHINE_ARCH for the system
	@hostname	the system host name, as set with sethostname()
	@domainname	the system domain name, as set with setdomainname()
	@kernel_ident	the kernel config file name
	@osrelease	the releaes number of the OS
	@ostype		the name of the OS (always "NetBSD" for NetBSD)

Example usage:

	mkdir /arch/i386/bin
	mkdir /arch/sparc/bin
	ln -s /arch/@machine_arch/bin /bin
2005-06-23 00:30:28 +00:00
..
dict Add antidisestablishmentarianism. 2004-09-28 00:49:52 +00:00
doc Allow docs elsewhere in tree to be built with "make" after installation. 2004-08-06 16:35:41 +00:00
examples Take into account file removal 2005-05-10 10:23:13 +00:00
i18n add csmapper:CNS11643-1,2 and esdb:ISO-2022-CN, 2005-03-27 22:30:05 +00:00
locale add csmapper:CNS11643-1,2 and esdb:ISO-2022-CN, 2005-03-27 22:30:05 +00:00
man Implement expansion of special "magic" strings in symlinks into 2005-06-23 00:30:28 +00:00
me Don't remove ${.TARGET} - thanks Alexander for pointing it out. 2004-03-20 20:41:33 +00:00
misc Add FOS to the acronyms list, from PR/21549. 2005-06-14 12:26:32 +00:00
mk Add definitions for the new "host tools " disklabel and fdisk. 2005-06-12 19:31:25 +00:00
nls Add slovak language libc message catalog. 2003-04-14 05:21:47 +00:00
sushi Write IPv4 and IPv6 with a small 'v'. 2005-02-22 16:53:11 +00:00
tabset minor makefile delint 2002-09-18 07:50:31 +00:00
termcap Add `can backspace with ^H' (bs) entry to Eterm. 2005-03-07 18:18:41 +00:00
tmac Improve .An support: recognize -nosplit. 2005-06-11 23:46:57 +00:00
wscons Install the new "pckbd.br.abnt2" keymap. 2005-03-19 17:11:27 +00:00
zoneinfo Import tzdata2005i. 2005-04-23 22:19:33 +00:00
Makefile Citrus iconv support(5) 2003-06-27 08:39:59 +00:00
Makefile.inc