aboutsummaryrefslogtreecommitdiff
path: root/src/userspace/libc/unistd.h
diff options
context:
space:
mode:
authorMarvin Borner2020-05-02 15:44:11 +0200
committerMarvin Borner2020-05-02 15:44:11 +0200
commitaa8a8811818331cf511681327e3ba95e456f0d33 (patch)
tree852c314dae76e756863f94639ff45eff72834d5d /src/userspace/libc/unistd.h
parent2a0e810a473dea57fd1cd53ea424b61269c029ba (diff)
Added many syscalls to get better POSIX compliance
Diffstat (limited to 'src/userspace/libc/unistd.h')
-rw-r--r--src/userspace/libc/unistd.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/userspace/libc/unistd.h b/src/userspace/libc/unistd.h
new file mode 100644
index 0000000..e8b97be
--- /dev/null
+++ b/src/userspace/libc/unistd.h
@@ -0,0 +1,18 @@
+#ifndef MELVIX_UNISTD_H
+#define MELVIX_UNISTD_H
+
+#include <stdint.h>
+
+u32 exec(char *path);
+
+void exit(u32 code);
+
+u32 fork();
+
+u32 get_pid();
+
+u32 sys_read(char *path, u32 offset, u32 count, char *buf);
+
+u32 sys_write(char *path, u32 offset, u32 count, char *buf);
+
+#endif \ No newline at end of file