1*8e7e3163SDimitry Andric /*- 2*8e7e3163SDimitry Andric * Copyright (c) 2015 Dimitry Andric <dim@FreeBSD.org> 3*8e7e3163SDimitry Andric * All rights reserved. 4*8e7e3163SDimitry Andric * 5*8e7e3163SDimitry Andric * Redistribution and use in source and binary forms, with or without 6*8e7e3163SDimitry Andric * modification, are permitted provided that the following conditions 7*8e7e3163SDimitry Andric * are met: 8*8e7e3163SDimitry Andric * 1. Redistributions of source code must retain the above copyright 9*8e7e3163SDimitry Andric * notice, this list of conditions and the following disclaimer. 10*8e7e3163SDimitry Andric * 2. Redistributions in binary form must reproduce the above copyright 11*8e7e3163SDimitry Andric * notice, this list of conditions and the following disclaimer in the 12*8e7e3163SDimitry Andric * documentation and/or other materials provided with the distribution. 13*8e7e3163SDimitry Andric * 14*8e7e3163SDimitry Andric * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15*8e7e3163SDimitry Andric * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16*8e7e3163SDimitry Andric * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17*8e7e3163SDimitry Andric * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18*8e7e3163SDimitry Andric * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19*8e7e3163SDimitry Andric * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20*8e7e3163SDimitry Andric * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21*8e7e3163SDimitry Andric * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22*8e7e3163SDimitry Andric * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23*8e7e3163SDimitry Andric * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24*8e7e3163SDimitry Andric * SUCH DAMAGE. 25*8e7e3163SDimitry Andric */ 26*8e7e3163SDimitry Andric 27*8e7e3163SDimitry Andric #ifndef _LEGACY_STDLIB_H_ 28*8e7e3163SDimitry Andric #define _LEGACY_STDLIB_H_ 29*8e7e3163SDimitry Andric 30*8e7e3163SDimitry Andric #include_next <stdlib.h> 31*8e7e3163SDimitry Andric 32*8e7e3163SDimitry Andric __BEGIN_DECLS 33*8e7e3163SDimitry Andric 34*8e7e3163SDimitry Andric #if __BSD_VISIBLE 35*8e7e3163SDimitry Andric void *reallocarray(void *, size_t, size_t); 36*8e7e3163SDimitry Andric #endif /* __BSD_VISIBLE */ 37*8e7e3163SDimitry Andric 38*8e7e3163SDimitry Andric __END_DECLS 39*8e7e3163SDimitry Andric 40*8e7e3163SDimitry Andric #endif /* !_LEGACY_STDLIB_H_ */ 41