NetBSD/lib/libc
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
..
arch Add missing __RCSID() 2005-06-12 05:21:25 +00:00
citrus * add some comments. 2005-05-14 17:55:42 +00:00
compat-43
db Ensure dbp is initialized to NULL before trying to use it in an error codepath. 2005-06-01 05:39:17 +00:00
dlfcn
gen Fix the toolification of disklabel by using the nbinclude namespace 2005-06-22 21:35:28 +00:00
gmon The __used__ change doesn't work on 2.95/vax. Put an #ifdef back in for vax and 2005-05-06 19:32:30 +00:00
hash Add missing __RCSID() 2005-06-12 05:21:25 +00:00
iconv make sure to set errno to EINVAL if _citrus_iconv_open() returns ENOENT. 2005-04-25 13:42:04 +00:00
include add fgetwln. 2005-05-15 13:09:13 +00:00
inet Add missing __RCSID() 2005-06-12 05:21:25 +00:00
isc
locale Add missing __RCSID() 2005-06-12 05:21:25 +00:00
md Add missing __RCSID() 2005-06-12 05:34:34 +00:00
nameser
net Move the test for "more strict reverse lookup handling" to the correct 2005-06-01 05:19:21 +00:00
nls Add missing __RCSID() 2005-06-12 05:21:25 +00:00
quad
regex
resolv Add missing __RCSID() 2005-06-12 05:21:25 +00:00
rpc use malloc rather than mem_alloc (which is implemented using calloc) 2005-06-09 22:13:17 +00:00
softfloat
stdio If the string to be printed is NULL substitute "(null)". Approved by core. 2005-06-22 19:45:22 +00:00
stdlib Add missing __RCSID() 2005-06-12 05:21:25 +00:00
string Add missing __RCSID() 2005-06-12 05:21:25 +00:00
sys Implement expansion of special "magic" strings in symlinks into 2005-06-23 00:30:28 +00:00
termios
thread-stub Add missing __RCSID() 2005-06-12 05:21:25 +00:00
time Add missing __RCSID() 2005-06-12 05:21:25 +00:00
uuid A little libc namespace housekeeping exercise: 2005-02-09 21:35:46 +00:00
yp
Makefile Use TOOL_GENASSYM. Part of PR toolchain/30350 2005-05-30 16:02:56 +00:00
shlib_version bump for wide stdio functions. 2005-05-14 23:51:16 +00:00