1d915a14eSPedro F. Giffuni /*- 2*4d846d26SWarner Losh * SPDX-License-Identifier: BSD-2-Clause 3d915a14eSPedro F. Giffuni * 401298368SAndrew Turner * Copyright (C) 2012 Andrew Turner 501298368SAndrew Turner * All rights reserved. 601298368SAndrew Turner * 701298368SAndrew Turner * Redistribution and use in source and binary forms, with or without 801298368SAndrew Turner * modification, are permitted provided that the following conditions 901298368SAndrew Turner * are met: 1001298368SAndrew Turner * 1. Redistributions of source code must retain the above copyright 1101298368SAndrew Turner * notice, this list of conditions and the following disclaimer. 1201298368SAndrew Turner * 2. Redistributions in binary form must reproduce the above copyright 1301298368SAndrew Turner * notice, this list of conditions and the following disclaimer in the 1401298368SAndrew Turner * documentation and/or other materials provided with the distribution. 1501298368SAndrew Turner * 1601298368SAndrew Turner * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1701298368SAndrew Turner * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1801298368SAndrew Turner * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1901298368SAndrew Turner * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 2001298368SAndrew Turner * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2101298368SAndrew Turner * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2201298368SAndrew Turner * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2301298368SAndrew Turner * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2401298368SAndrew Turner * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2501298368SAndrew Turner * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2601298368SAndrew Turner * SUCH DAMAGE. 2701298368SAndrew Turner * 2801298368SAndrew Turner */ 2901298368SAndrew Turner 3001298368SAndrew Turner #include <sys/cdefs.h> 3101298368SAndrew Turner __FBSDID("$FreeBSD$"); 3201298368SAndrew Turner 3301298368SAndrew Turner int __cxa_atexit(void (*)(void *), void *, void *); 3401298368SAndrew Turner 3501298368SAndrew Turner int 3601298368SAndrew Turner __aeabi_atexit(void *object, void (*func)(void*), void *dso) 3701298368SAndrew Turner { 3801298368SAndrew Turner return __cxa_atexit(func, object, dso); 3901298368SAndrew Turner } 4001298368SAndrew Turner 41