aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMagnus Lundin <lundin@mlu.mine.nu>2013-05-02 11:37:32 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2013-05-02 11:39:24 -0400
commit51846e0df6a4eaa26db928a3722d92e351ee385a (patch)
tree235d24d4a2ef49f72f6b6d19ad247b3796e715e5
parentf14c612decc9edda55c91df9f678b547c81e976a (diff)
downloadlibrambutan-51846e0df6a4eaa26db928a3722d92e351ee385a.tar.gz
librambutan-51846e0df6a4eaa26db928a3722d92e351ee385a.zip
wirish/syscalls.c: add weak exit function.
For toolchains which require an exit function. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
-rw-r--r--wirish/syscalls.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/wirish/syscalls.c b/wirish/syscalls.c
index 1e62d51..a3b6d2c 100644
--- a/wirish/syscalls.c
+++ b/wirish/syscalls.c
@@ -168,3 +168,8 @@ __weak char *fgets(char *s, int bufsize, void *f) {
cgets(s, bufsize);
return s;
}
+
+__weak void _exit(int exitcode) {
+ while (1)
+ ;
+}