summaryrefslogtreecommitdiff
path: root/libc/stdlib/atexit.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-02-18 10:12:45 +0000
committerEric Andersen <andersen@codepoet.org>2002-02-18 10:12:45 +0000
commita7941d4f375573864334e1002aed2880ae47fa6a (patch)
treed2222e9f68dc627ea4418148f79d67406b967de4 /libc/stdlib/atexit.c
parent623b520a8115c6a2bd1af9c13c9e1ace924cf7e6 (diff)
Rename __stdio_close_all to __stdio_flush_buffers. Eliminate an
unnecessary variable
Diffstat (limited to 'libc/stdlib/atexit.c')
-rw-r--r--libc/stdlib/atexit.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/libc/stdlib/atexit.c b/libc/stdlib/atexit.c
index 6c55e60ea..9164b2ac6 100644
--- a/libc/stdlib/atexit.c
+++ b/libc/stdlib/atexit.c
@@ -17,7 +17,7 @@
* Changed name of __cleanup to __uClibc_cleanup.
* Moved declaration of __uClibc_cleanup to __uClibc_main
* where it is initialized with (possibly weak alias)
- * __stdio_close_all.
+ * __stdio_flush_buffers.
*
* Jul 2001 Steve Thayer
*
@@ -44,7 +44,7 @@ typedef enum {
ef_on_exit
} ef_type; /* exit function types */
-extern void __stdio_close_all(void);
+extern void __stdio_flush_buffers(void);
/* this is in the L_exit object */
extern void (*__exit_cleanup) (int);
@@ -139,13 +139,11 @@ void __exit_handler(int status)
break;
}
}
- if (__stdio_close_all)
- __stdio_close_all();
}
#endif
#ifdef L_exit
-extern void (*__uClibc_cleanup) (void);
+extern void __stdio_flush_buffers(void);
void (*__exit_cleanup) (int) = 0;
/*
@@ -159,8 +157,8 @@ void exit(int rv)
}
/* Clean up everything else */
- if (__uClibc_cleanup)
- __uClibc_cleanup();
+ if (__stdio_flush_buffers)
+ __stdio_flush_buffers();
_exit(rv);
}