NetBSD/include
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
..
arpa Add newer constants from FreeBSD and constify. 2005-02-19 21:57:19 +00:00
heimdal Only #define HAVE_IPV6 if ${USE_INET6} != "no". 2005-01-10 03:11:17 +00:00
protocols Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:44:09 +00:00
rpc Remove "register" from a comment. Kind of silly for it to have been 2005-02-06 04:40:51 +00:00
rpcsvc de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
Makefile Add FreeBSD's strfmon(3). From Rui Paulo. No bump this time. Take advantage 2005-04-03 20:09:29 +00:00
a.out.h Modify the licences of code written by Theo De Raadt from a 4-clause 2003-12-10 12:06:25 +00:00
ar.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:44:09 +00:00
assert.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
bitstring.h remove obsolete "register" declarations 2005-02-06 04:38:18 +00:00
bm.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
cpio.h
ctype.h Replaced the macro name "notyet" with a 0. There's always the possibility 2005-04-15 23:46:07 +00:00
db.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
dirent.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
disktab.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
dlfcn.h Add restrict qualifiers to dlsym() (XSI) and dladdr() arguments. 2005-03-21 13:25:22 +00:00
err.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
errno.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
fmtmsg.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
fnmatch.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
fstab.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
fts.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
getopt.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
glob.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
grp.h Make namespace protection feature tests for reentrant functions more 2005-05-24 17:36:29 +00:00
hesiod.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
iconv.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
ieeefp.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
ifaddrs.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
inttypes.h Instead of pulling in all of <wchar.h>, just define wchar_t here. 2005-04-18 19:47:51 +00:00
iso646.h
kvm.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
langinfo.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
libgen.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
limits.h Implement sysconf(3) _SC_GETGR_R_SIZE_MAX and _SC_GETPW_R_SIZE_MAX for 2004-11-10 04:02:52 +00:00
link.h
link_aout.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
link_elf.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
locale.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
login_cap.h Sprinkle const. 2004-12-11 06:41:57 +00:00
lwp.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
malloc.h
math.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
md2.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
memory.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:44:09 +00:00
mntopts.h Implement expansion of special "magic" strings in symlinks into 2005-06-23 00:30:28 +00:00
monetary.h Add FreeBSD's strfmon(3). From Rui Paulo. No bump this time. Take advantage 2005-04-03 20:09:29 +00:00
mpool.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
ndbm.h XPG4.2: Change member `dsize' of struct datum from int to size_t. 2004-04-28 00:10:52 +00:00
netconfig.h Make the arg to getnetconfigent const char * to match the man page (and 2005-05-15 20:54:41 +00:00
netdb.h Move the (at this time private) get{proto,serv}ent_r() prototypes and 2005-04-18 19:39:45 +00:00
netgroup.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
nl_types.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
nlist.h Change __aconst to const so I can compile systat and vmstat with WARNS=3 2005-02-26 21:16:35 +00:00
nsswitch.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
paths.h Add _PATH_FTPUSERS; sort. 2004-12-11 06:01:33 +00:00
pwd.h Make namespace protection feature tests for reentrant functions more 2005-05-24 17:36:29 +00:00
randomid.h add randomid(3). 2003-09-09 22:10:33 +00:00
ranlib.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:44:09 +00:00
re_comp.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
regex.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
regexp.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
res_update.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
resolv.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
rmd160.h
rmt.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
sa.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
sched.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
search.h * Add restrict qualifiers to tdelete() function arguments. 2005-03-22 20:13:42 +00:00
semaphore.h
setjmp.h Add no-return attribute to all longjmp flavors. Approved by kleink. 2005-04-15 16:58:13 +00:00
sgtty.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
signal.h Add restrict qualifiers to remaining <signal.h> function arguments. 2005-03-22 20:25:31 +00:00
stab.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:44:09 +00:00
stdbool.h Make it possible to use <stdbool.h> in C++ applications. 2004-05-20 17:49:32 +00:00
stddef.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:44:09 +00:00
stdio.h Include <sys/ansi.h> after <sys/cdefs.h>; from Neil Booth in PR lib/30072. 2005-05-25 20:45:38 +00:00
stdlib.h Add a macro __MKTEMP_OK__ that renames mktemp() to _mktemp() for uses that 2005-06-11 22:58:42 +00:00
string.h Add prototype for memmem(3). It is API compatible with the version in Linux. 2005-03-13 15:09:50 +00:00
stringlist.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
strings.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
struct.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:44:09 +00:00
sysexits.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:44:09 +00:00
tar.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:44:09 +00:00
time.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
ttyent.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
tzfile.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:44:09 +00:00
ucontext.h
ulimit.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
unistd.h PR/30503: Nicolas Joly: swapctl(2) prototype does not match corresponding 2005-06-11 22:54:43 +00:00
util.h Make disklabel(8) and fdisk(8) into "host tools " last step: build 2005-06-12 19:46:15 +00:00
utime.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
utmp.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
utmpx.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
uuid.h DCE 1.1 RPC compatible UUID routines for libc, adapted from FreeBSD. 2004-09-13 21:44:54 +00:00
varargs.h add $NetBSD$ 2004-06-06 06:58:50 +00:00
vis.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
wchar.h add t_putws 2005-05-15 21:10:52 +00:00
wctype.h de-__P -- the hack is long since useless. Discussed with christos, 2005-02-03 04:39:32 +00:00
wordexp.h Add wordexp(3). The wordexp function performs shell-style word expansions. 2004-07-13 15:42:03 +00:00