| plan 9 kernel history: overview | file list | diff list |
1995/0804/port/devsrv.c (diff list | history)
| 1995/0108/sys/src/9/port/devsrv.c:23,34 – 1995/0804/sys/src/9/port/devsrv.c:23,32 (short | long | prev | next) | ||
| 1993/0501 | static int qidpath; | |
| 1991/1219 | ||
| 1991/0828 | int | |
| 1995/0804 | srvgen(Chan *c, Dirtab*, int, int s, Dir *dp) | |
| 1991/0828 | { | |
| 1991/1219 | Srv *sp; | |
| 1992/0711 |
| |
| 1992/0622 | qlock(&srvlk); for(sp = srv; sp && s; sp = sp->link) s--; | |
| 1995/0108/sys/src/9/port/devsrv.c:213,227 – 1995/0804/sys/src/9/port/devsrv.c:211,223 | ||
| 1990/0227 | } void | |
| 1995/0804 | srvclose(Chan*) | |
| 1990/0227 | { | |
| 1991/1115 |
| |
| 1990/0227 | } long | |
| 1991/0411 |
| |
| 1995/0804 | srvread(Chan *c, void *va, long n, ulong) | |
| 1990/0227 | { | |
| 1992/0711 |
| |
| 1990/1002 | isdir(c); | |
| 1991/0828 | return devdirread(c, va, n, 0, 0, srvgen); | |
| 1990/0227 | } | |
| 1995/0108/sys/src/9/port/devsrv.c:233,239 – 1995/0804/sys/src/9/port/devsrv.c:229,235 | ||
| 1995/0108 | } | |
| 1990/0227 | long | |
| 1991/0411 |
| |
| 1995/0804 | srvwrite(Chan *c, void *va, long n, ulong) | |
| 1990/0227 | { | |
| 1992/0622 | Srv *sp; Chan *c1; | |
| 1995/0108/sys/src/9/port/devsrv.c:240,246 – 1995/0804/sys/src/9/port/devsrv.c:236,241 | ||
| 1992/0711 | int fd; | |
| 1990/0227 | char buf[32]; | |
| 1992/0711 |
| |
| 1990/1110 | if(n >= sizeof buf) | |
| 1990/11211 | error(Egreg); | |
| 1991/0318 | memmove(buf, va, n); /* so we can NUL-terminate */ | |