summaryrefslogtreecommitdiff
path: root/src/kernel/syscalls.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/syscalls.h')
-rw-r--r--src/kernel/syscalls.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/kernel/syscalls.h b/src/kernel/syscalls.h
index f3e8dc0..d8ca5c3 100644
--- a/src/kernel/syscalls.h
+++ b/src/kernel/syscalls.h
@@ -14,6 +14,10 @@ enum {
_SYSCALL_FS_OPEN,
_SYSCALL_MOUNT,
+ _SYSCALL_FD_READ,
+ _SYSCALL_FD_WRITE,
+ _SYSCALL_FD_CLOSE,
+
_SYSCALL_DEBUGLOG
};
@@ -36,6 +40,10 @@ int _syscall_fork();
fd_t _syscall_fs_open(const char *path, int len);
int _syscall_mount(const char *path, int len, fd_t fd);
+int _syscall_fd_read(fd_t fd, char *buf, int len);
+int _syscall_fd_write(fd_t fd, char *buf, int len);
+int _syscall_fd_close(fd_t fd);
+
/** Prints a message to the debug console.
* @return the amount of bytes written (can be less than len)
*/