summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/atexit.c
diff options
context:
space:
mode:
authorrodrigc <rodrigc@FreeBSD.org>2015-09-20 03:53:08 +0000
committerrodrigc <rodrigc@FreeBSD.org>2015-09-20 03:53:08 +0000
commit08c0b3cae7201b8a0e94863e7c07d51f4ececd04 (patch)
tree6f96bbb733987159e965c6b4d0cd39ac10224543 /lib/libc/stdlib/atexit.c
parent0046fafdb2b31d1fb0ae1cda2cde904e192cfe01 (diff)
downloadFreeBSD-src-08c0b3cae7201b8a0e94863e7c07d51f4ececd04.zip
FreeBSD-src-08c0b3cae7201b8a0e94863e7c07d51f4ececd04.tar.gz
Add declarations to eliminate -Wmissing-prototypes warnings.
Diffstat (limited to 'lib/libc/stdlib/atexit.c')
-rw-r--r--lib/libc/stdlib/atexit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/stdlib/atexit.c b/lib/libc/stdlib/atexit.c
index 0a5048a..7e6b867 100644
--- a/lib/libc/stdlib/atexit.c
+++ b/lib/libc/stdlib/atexit.c
@@ -82,6 +82,9 @@ struct atexit {
static struct atexit *__atexit; /* points to head of LIFO stack */
typedef DECLARE_BLOCK(void, atexit_block, void);
+int atexit_b(atexit_block func);
+int __cxa_atexit(void (*func)(void *), void *arg, void *dso);
+
/*
* Register the function described by 'fptr' to be called at application
* exit or owning shared object unload time. This is a helper function
OpenPOWER on IntegriCloud