From 0f2704eb90ef2590c75633dc7eb695a63cf2ddf8 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Wed, 12 Aug 2020 19:50:38 -0400 Subject: clean up --- src/stdlib/exit.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/stdlib') 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) */ -- cgit v1.2.1