1999-06-23 18:28:27 -04:00
|
|
|
/*
|
2018-02-23 03:53:12 -05:00
|
|
|
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
2000-07-31 21:33:37 -04:00
|
|
|
*
|
2021-06-03 02:37:05 -04:00
|
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
*
|
2016-06-27 00:56:38 -04:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
2020-09-14 19:20:40 -04:00
|
|
|
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
|
2018-02-23 03:53:12 -05:00
|
|
|
*
|
|
|
|
|
* See the COPYRIGHT file distributed with this work for additional
|
|
|
|
|
* information regarding copyright ownership.
|
1999-06-23 18:28:27 -04:00
|
|
|
*/
|
|
|
|
|
|
2005-04-27 00:57:32 -04:00
|
|
|
/*! \file */
|
2000-06-22 18:00:42 -04:00
|
|
|
|
2018-11-23 15:35:01 -05:00
|
|
|
#include <isc/bind9.h>
|
2021-02-09 11:44:40 -05:00
|
|
|
#include <isc/mem.h>
|
2021-07-12 08:21:21 -04:00
|
|
|
#include <isc/os.h>
|
2021-02-09 11:44:40 -05:00
|
|
|
#include <isc/tls.h>
|
|
|
|
|
#include <isc/util.h>
|
|
|
|
|
|
2021-03-26 06:01:59 -04:00
|
|
|
#include "config.h"
|
2021-02-09 11:44:40 -05:00
|
|
|
#include "mem_p.h"
|
2021-12-14 15:49:53 -05:00
|
|
|
#include "os_p.h"
|
2021-02-09 11:44:40 -05:00
|
|
|
#include "tls_p.h"
|
2021-02-16 09:57:39 -05:00
|
|
|
#include "trampoline_p.h"
|
1999-06-23 18:28:27 -04:00
|
|
|
|
2021-03-26 06:01:59 -04:00
|
|
|
#ifndef ISC_CONSTRUCTOR
|
|
|
|
|
#error Either __attribute__((constructor|destructor))__ or DllMain support needed to compile BIND 9.
|
|
|
|
|
#endif
|
|
|
|
|
|
1999-06-23 18:28:27 -04:00
|
|
|
/***
|
|
|
|
|
*** Functions
|
|
|
|
|
***/
|
|
|
|
|
|
2021-02-09 11:44:40 -05:00
|
|
|
void
|
2021-05-19 02:38:33 -04:00
|
|
|
isc__initialize(void) ISC_CONSTRUCTOR;
|
2021-02-09 11:44:40 -05:00
|
|
|
void
|
2021-05-19 02:38:33 -04:00
|
|
|
isc__shutdown(void) ISC_DESTRUCTOR;
|
2021-02-09 11:44:40 -05:00
|
|
|
|
|
|
|
|
void
|
|
|
|
|
isc__initialize(void) {
|
2021-12-14 15:49:53 -05:00
|
|
|
isc__os_initialize();
|
2021-02-09 11:44:40 -05:00
|
|
|
isc__mem_initialize();
|
|
|
|
|
isc__tls_initialize();
|
2021-02-16 09:57:39 -05:00
|
|
|
isc__trampoline_initialize();
|
2021-07-12 08:21:21 -04:00
|
|
|
(void)isc_os_ncpus();
|
2021-02-09 11:44:40 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
isc__shutdown(void) {
|
2021-02-16 09:57:39 -05:00
|
|
|
isc__trampoline_shutdown();
|
2021-02-09 11:44:40 -05:00
|
|
|
isc__tls_shutdown();
|
|
|
|
|
isc__mem_shutdown();
|
2021-12-14 15:49:53 -05:00
|
|
|
isc__os_shutdown();
|
2021-02-09 11:44:40 -05:00
|
|
|
}
|