summaryrefslogtreecommitdiff
path: root/include/unistd.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/unistd.h')
-rw-r--r--include/unistd.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/unistd.h b/include/unistd.h
index ae46b16..6925541 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -1,8 +1,14 @@
#ifndef _UNISTD_H
#define _UNISTD_H
+#include <stdint.h>
+
+typedef uint16_t pid_t;
+
#define __SYS_puts 0
#define __SYS_time 1
+#define __SYS_getpid 2
+#define __SYS_getpdir 3
#define _syscall0(type, name) \
type name(void) { \
@@ -26,4 +32,7 @@
return __res; \
}
+pid_t getpid(void);
+void *getpdir(void);
+
#endif