/usr/include/stxxl/bits/common/exithandler.h is in libstxxl-dev 1.3.1-5ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | /***************************************************************************
* include/stxxl/bits/common/exithandler.h
*
* Part of the STXXL. See http://stxxl.sourceforge.net
*
* Copyright (C) 2009 Andreas Beckmann <beckmann@cs.uni-frankfurt.de>
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
**************************************************************************/
#ifndef STXXL_EXITHANDLER_HEADER
#define STXXL_EXITHANDLER_HEADER
#include <stxxl/bits/namespace.h>
__STXXL_BEGIN_NAMESPACE
// There are several possibilities for the exit handlers.
// To use the default implementation (which uses atexit()), nothing special has to be done.
//
// To work around problems with atexit() being used in a dll you may #define STXXL_NON_DEFAULT_EXIT_HANDLER at library compilation time.
// In this case the library/application should call stxxl::run_exit_handlers() during shutdown.
//
// To provide your own exit handler implementation, #define STXXL_EXTERNAL_EXIT_HANDLER and implement
// stxxl::register_exit_handler(void (*)(void)) and stxxl::run_exit_handlers() in your application.
int register_exit_handler(void (* function)(void));
void run_exit_handlers();
__STXXL_END_NAMESPACE
#endif // !STXXL_EXITHANDLER_HEADER
// vim: et:ts=4:sw=4
|