Skip to content

Commit

Permalink
wirish/syscalls.c: add weak exit function.
Browse files Browse the repository at this point in the history
For toolchains which require an exit function.

Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
  • Loading branch information
mlu authored and Marti Bolivar committed May 2, 2013
1 parent 0fca062 commit f66451d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions wirish/syscalls.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
;
}

0 comments on commit f66451d

Please sign in to comment.