diff options
| author | Miguel <m.i@gmx.at> | 2018-10-05 23:41:51 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-10-05 23:41:51 +0200 |
| commit | fe8180d88540bfa96595dcc58290de5425e534e3 (patch) | |
| tree | a7a681cdcf013119d121fb17ce3b731763a4a644 /fs | |
| parent | 4dbe6a264d7a3bd38ca1ac0921248654a50f1b5e (diff) | |
drunken proggin
Diffstat (limited to 'fs')
| -rw-r--r-- | fs/fd.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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); } |
