aboutsummaryrefslogtreecommitdiff
path: root/src/userspace/libc
diff options
context:
space:
mode:
authorMarvin Borner2020-05-13 21:28:03 +0200
committerMarvin Borner2020-05-13 21:28:03 +0200
commite1a6ed079303dc7d218f1d5326a13b6755781271 (patch)
treeb4fad9901c9c272d8d4b2d5588f216c9d7088f3e /src/userspace/libc
parent10be53d077c238801f328bef4d11abfec61324db (diff)
Fixed exit in unistd instead of stdlib
Diffstat (limited to 'src/userspace/libc')
-rw-r--r--src/userspace/libc/stdlib.h3
-rw-r--r--src/userspace/libc/stdlib/exit.c (renamed from src/userspace/libc/unistd/exit.c)0
-rw-r--r--src/userspace/libc/unistd.h2
3 files changed, 3 insertions, 2 deletions
diff --git a/src/userspace/libc/stdlib.h b/src/userspace/libc/stdlib.h
index 583df15..4670b8c 100644
--- a/src/userspace/libc/stdlib.h
+++ b/src/userspace/libc/stdlib.h
@@ -10,6 +10,9 @@ char *htoa(u32 n);
int htoi(char *str);
// Exit functions
+void exit(u32 code);
+#define EXIT_SUCCESS 0
+#define EXIT_FAILURE 1
// Memory management
void *malloc(u32 size);
diff --git a/src/userspace/libc/unistd/exit.c b/src/userspace/libc/stdlib/exit.c
index 03b54fe..03b54fe 100644
--- a/src/userspace/libc/unistd/exit.c
+++ b/src/userspace/libc/stdlib/exit.c
diff --git a/src/userspace/libc/unistd.h b/src/userspace/libc/unistd.h
index 7610eb5..efe25c7 100644
--- a/src/userspace/libc/unistd.h
+++ b/src/userspace/libc/unistd.h
@@ -7,8 +7,6 @@ u32 exec(char *path);
u32 spawn(char *path);
-void exit(u32 code);
-
u32 get_pid();
u32 read(char *path, u32 offset, u32 count, u8 *buf);