summaryrefslogtreecommitdiffstats
path: root/lib/libc/include
diff options
context:
space:
mode:
authorstefanf <stefanf@FreeBSD.org>2005-09-12 13:46:32 +0000
committerstefanf <stefanf@FreeBSD.org>2005-09-12 13:46:32 +0000
commit56b9efc0f3f0ebf8a9c7f70d3c9c3fb47f86c1d6 (patch)
tree1802ab3510e718e6985f6769048767b9b8cf797a /lib/libc/include
parenta4b72ef0403c67e2d88c69ed60306bcc7406dd76 (diff)
downloadFreeBSD-src-56b9efc0f3f0ebf8a9c7f70d3c9c3fb47f86c1d6.zip
FreeBSD-src-56b9efc0f3f0ebf8a9c7f70d3c9c3fb47f86c1d6.tar.gz
Move the declaration of __cleanup to libc_private.h as it is used in both
stdio/ and stdlib/. Don't define __cleanup twice.
Diffstat (limited to 'lib/libc/include')
-rw-r--r--lib/libc/include/libc_private.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libc/include/libc_private.h b/lib/libc/include/libc_private.h
index 0f170db..8dca7a0 100644
--- a/lib/libc/include/libc_private.h
+++ b/lib/libc/include/libc_private.h
@@ -135,4 +135,9 @@ extern const char *__progname;
*/
extern struct _spinlock *__malloc_lock;
+/*
+ * Function to clean up streams, called from abort() and exit().
+ */
+extern void (*__cleanup)(void);
+
#endif /* _LIBC_PRIVATE_H_ */
OpenPOWER on IntegriCloud