aboutsummaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
Diffstat (limited to 'sys/include')
-rw-r--r--sys/include/sys/filedesc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/include/sys/filedesc.h b/sys/include/sys/filedesc.h
index dbac349..f5f24db 100644
--- a/sys/include/sys/filedesc.h
+++ b/sys/include/sys/filedesc.h
@@ -43,4 +43,11 @@ struct filedesc {
struct spinlock lock;
};
+int fd_close(unsigned int fd);
+int fd_read(unsigned int fd, void *buf, size_t count);
+
+int fd_alloc(struct filedesc **fd_out);
+int fd_open(const char *pathname, int flags);
+struct filedesc *fd_get(unsigned int fdno);
+
#endif /* !_SYS_FILEDESC_H_ */