diff options
author | Jakob Kaivo <jkk@ung.org> | 2020-08-12 19:50:38 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2020-08-12 19:50:38 -0400 |
commit | 0f2704eb90ef2590c75633dc7eb695a63cf2ddf8 (patch) | |
tree | 35be802033dd9c1ca89e39a2a96310a353adc74b /src/stdlib | |
parent | 5f81af65bc63a310dc3c26c2ee954e2972e7753b (diff) |
clean up
Diffstat (limited to 'src/stdlib')
-rw-r--r-- | src/stdlib/exit.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/stdlib/exit.c b/src/stdlib/exit.c index 5fc1f2fc..64b627eb 100644 --- a/src/stdlib/exit.c +++ b/src/stdlib/exit.c @@ -19,14 +19,8 @@ _Noreturn void exit(int status) ae = ae->prev; } - /* close all open files */ - /* - while (__libc.stdio.lastfile) { - fclose(__libc.stdio.lastfile); - } - */ + /* TODO: close all open files */ - (void)status; for (;;) { __syscall(scno, status); } @@ -48,6 +42,7 @@ removed. IMPLEMENTATION(The successful termination value returned to the host environment when ARGUMENT(status) is 0 or CONSTANT(EXIT_SUCESS)) IMPLEMENTATION(The unsuccessful termination value returned to the host environment when ARGUMENT(status) is CONSTANT(EXIT_FAILURE)) */ + /* STDC(1) */ |