| plan 9 kernel history: overview | file list | diff list |
1992/0228/port/devcons.c (diff list | history)
| 1992/0226/sys/src/9/port/devcons.c:854,859 – 1992/0228/sys/src/9/port/devcons.c:854,861 (short | long | prev | next) | ||
| 1991/0705 | error(Egreg); memmove(buf, va, n); /* so we can NUL-terminate */ buf[n] = 0; | |
| 1992/0228 | if(buf[0]<'0' && '9'<buf[0]) error(Ebadarg); | |
| 1991/0705 | fd = strtoul(buf, 0, 0); | |
| 1991/1011 | swc = fdtochan(fd, -1, 1); | |
| 1991/0705 | setswapchan(swc); | |