1d915a14eSPedro F. Giffuni /*-
2*4d846d26SWarner Losh * SPDX-License-Identifier: BSD-2-Clause
3d915a14eSPedro F. Giffuni *
4d201fe46SDaniel Eischen * Copyright (c) 2001 Daniel Eischen <deischen@FreeBSD.org>
5d201fe46SDaniel Eischen * All rights reserved.
6d201fe46SDaniel Eischen *
7d201fe46SDaniel Eischen * Redistribution and use in source and binary forms, with or without
8d201fe46SDaniel Eischen * modification, are permitted provided that the following conditions
9d201fe46SDaniel Eischen * are met:
10d201fe46SDaniel Eischen * 1. Redistributions of source code must retain the above copyright
11d201fe46SDaniel Eischen * notice, this list of conditions and the following disclaimer.
12d201fe46SDaniel Eischen * 2. Neither the name of the author nor the names of any co-contributors
13d201fe46SDaniel Eischen * may be used to endorse or promote products derived from this software
14d201fe46SDaniel Eischen * without specific prior written permission.
15d201fe46SDaniel Eischen *
16d201fe46SDaniel Eischen * THIS SOFTWARE IS PROVIDED BY DANIEL EISCHEN AND CONTRIBUTORS ``AS IS''
17d201fe46SDaniel Eischen * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18d201fe46SDaniel Eischen * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19d201fe46SDaniel Eischen * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20d201fe46SDaniel Eischen * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21d201fe46SDaniel Eischen * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22d201fe46SDaniel Eischen * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23d201fe46SDaniel Eischen * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24d201fe46SDaniel Eischen * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25d201fe46SDaniel Eischen * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26d201fe46SDaniel Eischen * SUCH DAMAGE.
27d201fe46SDaniel Eischen */
28d201fe46SDaniel Eischen
2954fd7f68SDaniel Eischen #include <sys/types.h>
3054fd7f68SDaniel Eischen
3164c12e81SXin LI void _thread_init_stub(void);
3264c12e81SXin LI
3354fd7f68SDaniel Eischen __weak_reference(_thread_init_stub, _thread_init);
3479c77d72SNathan Whitehorn __weak_reference(_thread_autoinit_dummy_decl_stub,
358869de5eSNathan Whitehorn _thread_autoinit_dummy_decl);
36d201fe46SDaniel Eischen
37d201fe46SDaniel Eischen int _thread_autoinit_dummy_decl_stub = 0;
38d201fe46SDaniel Eischen
39d201fe46SDaniel Eischen void
_thread_init_stub(void)40d201fe46SDaniel Eischen _thread_init_stub(void)
41d201fe46SDaniel Eischen {
42d201fe46SDaniel Eischen /* This is just a stub; there is nothing to do. */
43d201fe46SDaniel Eischen }
44