| plan 9 kernel history: overview | file list | diff list |
1999/0729/port/devroot.c (diff list | history)
| 1999/0629/sys/src/9/port/devroot.c:76,82 – 1999/0729/sys/src/9/port/devroot.c:76,101 (short | long | prev | next) | ||
| 1993/0724 | nroot++; | |
| 1991/0615 | } | |
| 1999/0729 | /* * add a root file */ | |
| 1997/0327 | static void | |
| 1999/0729 | addrootdir(char *name) { Dirtab *d; if(nroot >= Nfiles) panic("too many root files"); rootdata[nroot] = nil; d = &rootdir[nroot]; strcpy(d->name, name); d->length = 0; d->perm = 0; d->qid.path = nroot+1; nroot++; } static void | |
| 1990/0227 | rootreset(void) { | |
| 1993/0724 | addrootfile("boot", bootcode, bootlen); /* always have a boot file */ | |
| 1999/0629/sys/src/9/port/devroot.c:217,222 – 1999/0729/sys/src/9/port/devroot.c:236,255 | ||
| 1993/0501 | return 0; | |
| 1995/0108 | } | |
| 1999/0729 | static void rootcreate(Chan *c, char *name, int mode, ulong perm) { if(!iseve()) error(Eperm); if(c->qid.path != (CHDIR|Qdir)) error(Eperm); perm &= 0777|CHDIR; if((perm & CHDIR) == 0) error(Eperm); c->flag |= COPEN; c->mode = mode & ~OWRITE; } | |
| 1997/0327 | Dev rootdevtab = { | |
| 1997/0408 | '/', "root", | |
| 1999/0629/sys/src/9/port/devroot.c:228,234 – 1999/0729/sys/src/9/port/devroot.c:261,267 | ||
| 1997/0327 | rootwalk, rootstat, rootopen, | |
| 1999/0729 | rootcreate, | |
| 1997/0327 | rootclose, rootread, devbread, | |