summaryrefslogtreecommitdiff
path: root/libc/stdlib
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-15 20:05:52 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-15 20:05:52 +0000
commit9d2c271f9b8da968db8622ef3e77eeec09a4e39f (patch)
tree88262bfb2dc94ee64424d439823949de4d6ee31b /libc/stdlib
parentf7c7c0e055425e0122996a91704cc12bfaeef308 (diff)
Hide exit/_exit
Diffstat (limited to 'libc/stdlib')
-rw-r--r--libc/stdlib/atexit.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libc/stdlib/atexit.c b/libc/stdlib/atexit.c
index 4cec3f320..3a8a7be14 100644
--- a/libc/stdlib/atexit.c
+++ b/libc/stdlib/atexit.c
@@ -320,7 +320,9 @@ extern void (*__rtld_fini)(void);
/*
* Normal program termination
*/
-void exit(int rv)
+#undef exit
+#undef __exit
+void attribute_hidden __exit(int rv)
{
/* Perform exit-specific cleanup (atexit and on_exit) */
LOCK;
@@ -343,6 +345,7 @@ void exit(int rv)
if (_stdio_term)
_stdio_term();
- _exit(rv);
+ _exit_internal(rv);
}
+strong_alias(__exit,exit)
#endif