117ea2221SMatthew Dillon /* 217ea2221SMatthew Dillon * Copyright (c) 2001 Daniel Eischen <deischen@FreeBSD.org> 317ea2221SMatthew Dillon * All rights reserved. 417ea2221SMatthew Dillon * 517ea2221SMatthew Dillon * Redistribution and use in source and binary forms, with or without 617ea2221SMatthew Dillon * modification, are permitted provided that the following conditions 717ea2221SMatthew Dillon * are met: 817ea2221SMatthew Dillon * 1. Redistributions of source code must retain the above copyright 917ea2221SMatthew Dillon * notice, this list of conditions and the following disclaimer. 1017ea2221SMatthew Dillon * 2. Neither the name of the author nor the names of any co-contributors 1117ea2221SMatthew Dillon * may be used to endorse or promote products derived from this software 1217ea2221SMatthew Dillon * without specific prior written permission. 1317ea2221SMatthew Dillon * 1417ea2221SMatthew Dillon * THIS SOFTWARE IS PROVIDED BY DANIEL EISCHEN AND CONTRIBUTORS ``AS IS'' 1517ea2221SMatthew Dillon * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1617ea2221SMatthew Dillon * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1717ea2221SMatthew Dillon * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 1817ea2221SMatthew Dillon * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1917ea2221SMatthew Dillon * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2017ea2221SMatthew Dillon * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2117ea2221SMatthew Dillon * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2217ea2221SMatthew Dillon * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2317ea2221SMatthew Dillon * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2417ea2221SMatthew Dillon * SUCH DAMAGE. 2517ea2221SMatthew Dillon * 2617ea2221SMatthew Dillon */ 2717ea2221SMatthew Dillon 28*f8406b33Szrj #include <sys/cdefs.h> 2917ea2221SMatthew Dillon #include <sys/types.h> 3017ea2221SMatthew Dillon 31434dae9bSJoerg Sonnenberger void _thread_init_stub(void); 32434dae9bSJoerg Sonnenberger 3317ea2221SMatthew Dillon int _thread_autoinit_dummy_decl_stub = 0; 3417ea2221SMatthew Dillon 3517ea2221SMatthew Dillon void 3617ea2221SMatthew Dillon _thread_init_stub(void) 3717ea2221SMatthew Dillon { 3817ea2221SMatthew Dillon /* This is just a stub; there is nothing to do. */ 3917ea2221SMatthew Dillon } 40*f8406b33Szrj 41*f8406b33Szrj __weak_reference(_thread_init_stub, _thread_init); 42*f8406b33Szrj __weak_reference(_thread_autoinit_dummy_decl_stub, _thread_autoinit_dummy_decl); 43