summaryrefslogtreecommitdiff
path: root/include/user/user.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/user/user.h')
-rw-r--r--include/user/user.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/include/user/user.h b/include/user/user.h
new file mode 100644
index 0000000..7ab4923
--- /dev/null
+++ b/include/user/user.h
@@ -0,0 +1,29 @@
+#pragma once
+typedef unsigned long long uint64;
+
+extern "C" {
+ int fork();
+ int exit(int status);
+ int wait(uint64 status_addr);
+ int pipe(int p[]);
+ int write(int fd, const void *buf, int n);
+ int read(int fd, void *buf, int n);
+ int close(int fd);
+ int kill(int pid);
+ int exec(char *, char **);
+ int open(const char *, int);
+ int mknod(const char *, short, short);
+ int unlink(const char *);
+ int fstat(int fd, void *st);
+ int link(const char *, const char *);
+ int mkdir(const char *);
+ int chdir(const char *);
+ int dup(int fd);
+ int getpid();
+ char *sbrk(int n);
+ int sleep(int ticks);
+ int uptime();
+
+
+ void putc(char c);
+} \ No newline at end of file