| plan 9 kernel history: overview | file list | diff list |
2003/0303/port/devroot.c (diff list | history)
| 2003/0112/sys/src/9/port/devroot.c:121,126 – 2003/0303/sys/src/9/port/devroot.c:121,130 (short | long | prev | next) | ||
| 2002/1130 | switch((int)c->qid.path){ case Qdir: | |
| 2003/0303 | if(s == DEVDOTDOT){ devdir(c, (Qid){Qdir, 0, QTDIR}, "#/", 0, eve, 0555, dp); return 1; } | |
| 2002/1130 | return devgen(c, name, rootlist.dir, rootlist.ndir, s, dp); case Qboot: if(s == DEVDOTDOT){ | |
| 2003/0112/sys/src/9/port/devroot.c:129,134 – 2003/0303/sys/src/9/port/devroot.c:133,140 | ||
| 2002/1130 | } return devgen(c, name, bootlist.dir, bootlist.ndir, s, dp); default: | |
| 2003/0303 | if(s != 0) return -1; | |
| 2002/1130 | if((int)c->qid.path < Qboot){ t = c->qid.path-1; l = &rootlist; | |
| 2003/0112/sys/src/9/port/devroot.c:138,145 – 2003/0303/sys/src/9/port/devroot.c:144,149 | ||
| 2002/1130 | } if(t >= l->ndir) return -1; | |
| 2003/0112/sys/src/9/port/devroot.c:196,203 – 2003/0303/sys/src/9/port/devroot.c:200,211 | ||
| 2002/1130 | l = &bootlist; } | |
| 2003/0303 | t--; if(t >= l->ndir) error(Egreg); d = &l->dir[t]; data = l->data[t]; | |
| 1993/0724 | if(offset >= d->length) return 0; if(offset+n > d->length) | |