| plan 9 kernel history: overview | file list | diff list |
1992/0620/port/devsrv.c (diff list | history)
| 1992/0607/sys/src/9/port/devsrv.c:7,13 – 1992/0620/sys/src/9/port/devsrv.c:7,13 (short | long | prev | next) | ||
| 1991/0828 | ||
| 1990/0227 | #include "devtab.h" | |
| 1991/0828 |
| |
| 1992/0620 | typedef struct Srv Srv; | |
| 1991/0828 | struct Srv{ | |
| 1991/1219 | char name[NAMELEN]; char owner[NAMELEN]; | |
| 1992/0607/sys/src/9/port/devsrv.c:196,203 – 1992/0620/sys/src/9/port/devsrv.c:196,203 | ||
| 1991/0318 | memmove(buf, va, n); /* so we can NUL-terminate */ | |
| 1990/0227 | buf[n] = 0; fd = strtoul(buf, 0, 0); | |
| 1991/1127 |
| |
| 1992/0520 | ||
| 1992/0620 | f = u->p->fgrp; | |
| 1991/1127 | lock(f); | |
| 1992/0226 | if(waserror()){ unlock(f); | |
| 1992/0607/sys/src/9/port/devsrv.c:218,223 – 1992/0620/sys/src/9/port/devsrv.c:218,224 | ||
| 1992/0520 | i = c->qid.path; if(srv[i].chan != c) /* already been written to */ error(Egreg); | |
| 1992/0620 | ||
| 1992/0520 | srv[i].chan = c1; unlock(&srvlk); | |
| 1992/0226 | poperror(); | |