1*d780b39fSAntonio Huete Jimenez /*- 2*d780b39fSAntonio Huete Jimenez * Copyright (c) 2022 The DragonFly Project. All rights reserved. 3*d780b39fSAntonio Huete Jimenez * 4*d780b39fSAntonio Huete Jimenez * Redistribution and use in source and binary forms, with or without 5*d780b39fSAntonio Huete Jimenez * modification, are permitted provided that the following conditions 6*d780b39fSAntonio Huete Jimenez * are met: 7*d780b39fSAntonio Huete Jimenez * 1. Redistributions of source code must retain the above copyright 8*d780b39fSAntonio Huete Jimenez * notice, this list of conditions and the following disclaimer. 9*d780b39fSAntonio Huete Jimenez * 2. Redistributions in binary form must reproduce the above copyright 10*d780b39fSAntonio Huete Jimenez * notice, this list of conditions and the following disclaimer in the 11*d780b39fSAntonio Huete Jimenez * documentation and/or other materials provided with the distribution. 12*d780b39fSAntonio Huete Jimenez * 3. Neither the name of the University nor the names of its contributors 13*d780b39fSAntonio Huete Jimenez * may be used to endorse or promote products derived from this software 14*d780b39fSAntonio Huete Jimenez * without specific prior written permission. 15*d780b39fSAntonio Huete Jimenez * 16*d780b39fSAntonio Huete Jimenez * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 17*d780b39fSAntonio Huete Jimenez * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18*d780b39fSAntonio Huete Jimenez * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19*d780b39fSAntonio Huete Jimenez * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 20*d780b39fSAntonio Huete Jimenez * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21*d780b39fSAntonio Huete Jimenez * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22*d780b39fSAntonio Huete Jimenez * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23*d780b39fSAntonio Huete Jimenez * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24*d780b39fSAntonio Huete Jimenez * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25*d780b39fSAntonio Huete Jimenez * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26*d780b39fSAntonio Huete Jimenez * SUCH DAMAGE. 27*d780b39fSAntonio Huete Jimenez * 28*d780b39fSAntonio Huete Jimenez */ 29*d780b39fSAntonio Huete Jimenez 30*d780b39fSAntonio Huete Jimenez #ifndef _MALLOC_NP_H_ 31*d780b39fSAntonio Huete Jimenez #define _MALLOC_NP_H_ 32*d780b39fSAntonio Huete Jimenez 33*d780b39fSAntonio Huete Jimenez #include <sys/types.h> 34*d780b39fSAntonio Huete Jimenez 35*d780b39fSAntonio Huete Jimenez __BEGIN_DECLS 36*d780b39fSAntonio Huete Jimenez size_t malloc_usable_size(const void *); 37*d780b39fSAntonio Huete Jimenez __END_DECLS 38*d780b39fSAntonio Huete Jimenez 39*d780b39fSAntonio Huete Jimenez #endif /* !_MALLOC_NP_H_ */ 40