diff options
Diffstat (limited to 'fs/fd.c')
| -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); } |
