summaryrefslogtreecommitdiff
path: root/libc/stdlib
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-02-09 06:40:46 +0000
committerEric Andersen <andersen@codepoet.org>2001-02-09 06:40:46 +0000
commit411597d4f47de6b37275ee4fdf9fc45cc2a30fcb (patch)
tree6f42b12d32aec4804c99d6733ac0c22e3bcbc88e /libc/stdlib
parent69b2edf81ec8955b59fba03b2a553bd8b5995b58 (diff)
Revert stdio to initializing itself. Not quite a pretty but that ensures that
we don't blow up by using too much stack space, and simplifies the job of supporting new architectures, since they don't have to mess with calling foo init functions in crt0 and cleaning up the resulting damage. -Erik
Diffstat (limited to 'libc/stdlib')
-rw-r--r--libc/stdlib/atexit.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libc/stdlib/atexit.c b/libc/stdlib/atexit.c
index a7ec0fb1f..c720d4e90 100644
--- a/libc/stdlib/atexit.c
+++ b/libc/stdlib/atexit.c
@@ -50,15 +50,12 @@ int atexit(vfuncp ptr)
#endif
#ifdef L_exit
-void __stdio_close_all(void); /* note: see _start.S - could be faked */
-
vfuncp __cleanup = 0;
void exit(int rv)
{
if (__cleanup)
__cleanup();
- __stdio_close_all();
_exit(rv);
}
#endif