kernel: move nsec to libc

This commit is contained in:
2017-01-06 00:45:35 +01:00
parent 2508de40ea
commit 4676c65a3d
7 changed files with 59 additions and 29 deletions

View File

@ -1039,6 +1039,17 @@ consread(Chan *c, void *buf, long n, int64_t off)
return -1; /* never reached */
}
static void
consremove(Chan* c)
{
switch((uint32_t)c->qid.path){
default:
error(Eperm);
case Qtime:
errorl("fugit irreparabile tempus", todget(nil));
}
}
static long
conswrite(Chan *c, void *va, long n, int64_t off)
{
@ -1198,7 +1209,7 @@ Dev consdevtab = {
devbread,
conswrite,
devbwrite,
devremove,
consremove,
devwstat,
};