1999-06-23 18:28:27 -04:00
|
|
|
/*
|
2015-05-23 08:21:51 -04:00
|
|
|
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
1999-06-23 18:28:27 -04:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MPL-2.0
|
2021-06-03 02:37:05 -04:00
|
|
|
*
|
1999-06-23 18:28:27 -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
|
|
|
|
|
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
|
2018-02-23 03:53:12 -05:00
|
|
|
*
|
1999-06-23 18:28:27 -04:00
|
|
|
* See the COPYRIGHT file distributed with this work for additional
|
|
|
|
|
* information regarding copyright ownership.
|
|
|
|
|
*/
|
|
|
|
|
|
2005-04-27 00:57:32 -04:00
|
|
|
/*! \file */
|
2000-06-22 18:00:42 -04:00
|
|
|
|
2023-01-16 05:12:06 -05:00
|
|
|
#include <isc/iterated_hash.h>
|
2023-01-16 03:16:35 -05:00
|
|
|
#include <isc/md.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>
|
2022-09-23 07:54:33 -04:00
|
|
|
#include <isc/uv.h>
|
2022-09-23 08:36:54 -04:00
|
|
|
#include <isc/xml.h>
|
2021-02-09 11:44:40 -05:00
|
|
|
|
2021-03-26 06:01:59 -04:00
|
|
|
#include "config.h"
|
2021-02-09 11:44:40 -05:00
|
|
|
#include "mem_p.h"
|
2022-07-13 07:19:32 -04:00
|
|
|
#include "mutex_p.h"
|
2021-12-14 15:49:53 -05:00
|
|
|
#include "os_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();
|
2022-07-13 07:19:32 -04:00
|
|
|
isc__mutex_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();
|
2022-09-23 07:54:33 -04:00
|
|
|
isc__uv_initialize();
|
2022-09-23 08:36:54 -04:00
|
|
|
isc__xml_initialize();
|
2023-01-16 03:16:35 -05:00
|
|
|
isc__md_initialize();
|
2023-01-16 05:12:06 -05:00
|
|
|
isc__iterated_hash_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) {
|
2023-01-16 05:12:06 -05:00
|
|
|
isc__iterated_hash_shutdown();
|
2023-01-16 03:16:35 -05:00
|
|
|
isc__md_shutdown();
|
2022-09-23 08:36:54 -04:00
|
|
|
isc__xml_shutdown();
|
2022-09-23 07:54:33 -04:00
|
|
|
isc__uv_shutdown();
|
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();
|
2022-07-13 07:19:32 -04:00
|
|
|
isc__mutex_shutdown();
|
2021-12-14 15:49:53 -05:00
|
|
|
isc__os_shutdown();
|
2021-02-09 11:44:40 -05:00
|
|
|
}
|