summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-10-05 23:41:51 +0200
committerMiguel <m.i@gmx.at>2018-10-05 23:41:51 +0200
commitfe8180d88540bfa96595dcc58290de5425e534e3 (patch)
treea7a681cdcf013119d121fb17ce3b731763a4a644 /fs
parent4dbe6a264d7a3bd38ca1ac0921248654a50f1b5e (diff)
drunken proggin
Diffstat (limited to 'fs')
-rw-r--r--fs/fd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/fd.c b/fs/fd.c
index 1215679..2964883 100644
--- a/fs/fd.c
+++ b/fs/fd.c
@@ -10,31 +10,37 @@
bool fd_write(fd* f,uint8_t c)
{
+ if(!f->write)kpanic("no write func")
return f->write(f->data,c);
}
uint8_t fd_read(fd* f)
{
+ if(!f->read)kpanic("no read func")
return f->read(f->data);
}
bool fd_has(fd* f)
{
+ if(!f->has)kpanic("no has func")
return f->has(f->data);
}
bool fd_eof(fd* f)
{
+ if(!f->eof)kpanic("no eof func")
return f->eof(f->data);
}
bool fd_close(fd* f)
{
+ if(!f->close)kpanic("no close func")
return f->close(f->data);
}
fd fd_dupl(fd* f)
{
+ if(!f->dupl)kpanic("no dupl func")
return f->dupl(f);
}