| plan 9 kernel history: overview | file list | diff list |
1992/0812/port/streboot.c (diff list | history)
| port/streboot.c on 1992/0303 | ||
| 1992/0303 | #include "u.h" | |
| 1992/0321 | #include "../port/lib.h" | |
| 1992/0303 | #include "mem.h" #include "dat.h" #include "fns.h" #include "../port/error.h" /* * reboot stream module definition */ static void rebootopen(Queue*, Stream*); static void rebootiput(Queue*, Block*); static void rebootoput(Queue*, Block*); static void rebootreset(void); Qinfo rebootinfo = { rebootiput, rebootoput, rebootopen, 0, "reboot", 0 }; static void rebootopen(Queue *q, Stream *s) { USED(q); | |
| 1992/0711 | USED(s); | |
| 1992/0303 | if(strcmp(u->p->user, eve) != 0) error(Eperm); } void rebootoput(Queue *q, Block *bp) { PUTNEXT(q, bp); } static void rebootiput(Queue *q, Block *bp) { if(bp->type == M_HANGUP){ print("lost connection to fs, rebooting"); | |
| 1992/0812 | exit(0); | |
| 1992/0303 | } PUTNEXT(q, bp); } | |