1157236Sjasone/*-
2157236Sjasone * Copyright (C) 2006 Jason Evans <jasone@FreeBSD.org>.
3157236Sjasone * All rights reserved.
4157236Sjasone *
5157236Sjasone * Redistribution and use in source and binary forms, with or without
6157236Sjasone * modification, are permitted provided that the following conditions
7157236Sjasone * are met:
8157236Sjasone * 1. Redistributions of source code must retain the above copyright
9157236Sjasone *    notice(s), this list of conditions and the following disclaimer as
10157236Sjasone *    the first lines of this file unmodified other than the possible
11157236Sjasone *    addition of one or more copyright notices.
12157236Sjasone * 2. Redistributions in binary form must reproduce the above copyright
13157236Sjasone *    notice(s), this list of conditions and the following disclaimer in
14157236Sjasone *    the documentation and/or other materials provided with the
15157236Sjasone *    distribution.
16157236Sjasone *
17157236Sjasone * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) ``AS IS'' AND ANY
18157236Sjasone * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19157236Sjasone * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
20157236Sjasone * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT HOLDER(S) BE
21157236Sjasone * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22157236Sjasone * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23157236Sjasone * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
24157236Sjasone * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
25157236Sjasone * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
26157236Sjasone * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
27157236Sjasone * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28157236Sjasone *
29157236Sjasone * $FreeBSD$
30157236Sjasone */
31157236Sjasone
32157236Sjasone#ifndef _MALLOC_NP_H_
33157236Sjasone#define	_MALLOC_NP_H_
34160056Sjasone#include <sys/cdefs.h>
35160056Sjasone#include <sys/types.h>
36157236Sjasone
37160056Sjasone__BEGIN_DECLS
38157236Sjasonesize_t	malloc_usable_size(const void *ptr);
39160056Sjasone__END_DECLS
40157236Sjasone
41157236Sjasone#endif /* _MALLOC_NP_H_ */
42