|
|
1.1 root 1: /* naminit.c - naminit */
2:
3: #include <conf.h>
4: #include <kernel.h>
5: #include <name.h>
6:
7: #ifndef RFILSYS
8: #define RFILSYS SYSERR
9: #endif
10:
11: struct nam Nam;
12:
13: /*------------------------------------------------------------------------
14: * naminit - initialize the syntactic namespace pseudo-device
15: *------------------------------------------------------------------------
16: */
17: naminit()
18: {
19: Nam.nnames = 0;
20:
21: /* Xinu namespace definition */
22:
23: mount("", NAMESPACE, "Xinu/storage/");
24: mount("Xinu/", RFILSYS, "/usr/Xinu/");
25: mount("h/", NAMESPACE, "Xinu/src/sys/h/");
26: mount("kernel/", NAMESPACE, "Xinu/src/sys/sys/");
27: mount("coreX", NAMESPACE, "kernel/coreX");
28: mount("a.out", NAMESPACE, "kernel/a.out");
29: mount("/dev/console", CONSOLE, NULLSTR);
30: mount("/dev/null", RFILSYS, "/dev/null");
31: mount("/dev/", SYSERR, NULLSTR);
32: mount("/", RFILSYS, "/");
33: mount("~/", NAMESPACE, "Xinu/");
34: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.