aboutsummaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
Diffstat (limited to 'sys/include')
-rw-r--r--sys/include/sys/filedesc.h3
-rw-r--r--sys/include/sys/syscall.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/include/sys/filedesc.h b/sys/include/sys/filedesc.h
index ef74fb1..df30c69 100644
--- a/sys/include/sys/filedesc.h
+++ b/sys/include/sys/filedesc.h
@@ -32,6 +32,7 @@
#include <sys/vnode.h>
#include <sys/spinlock.h>
+#include <sys/syscall.h>
#include <sys/types.h>
struct proc;
@@ -48,6 +49,8 @@ struct filedesc {
struct filedesc *fd_alloc(struct proc *td);
struct filedesc *fd_from_fdnum(const struct proc *td, int fdno);
void fd_close_fdnum(struct proc *td, int fdno);
+ssize_t write(int fd, const void *buf, size_t count);
+uint64_t sys_write(struct syscall_args *args);
#endif
#endif
diff --git a/sys/include/sys/syscall.h b/sys/include/sys/syscall.h
index b78e2ad..e75b193 100644
--- a/sys/include/sys/syscall.h
+++ b/sys/include/sys/syscall.h
@@ -38,6 +38,7 @@
/* Do not reorder */
enum {
SYS_exit = 1,
+ SYS_write,
__MAX_SYSCALLS
};