malloc_np.h (286934) | malloc_np.h (296221) |
---|---|
1/*- 2 * Copyright (C) 2006 Jason Evans <jasone@FreeBSD.org>. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 12 unchanged lines hidden (view full) --- 21 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 24 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 25 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 26 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 27 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * | 1/*- 2 * Copyright (C) 2006 Jason Evans <jasone@FreeBSD.org>. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 12 unchanged lines hidden (view full) --- 21 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 24 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 25 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 26 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 27 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * |
29 * $FreeBSD: head/include/malloc_np.h 286934 2015-08-19 18:32:12Z jasone $ | 29 * $FreeBSD: head/include/malloc_np.h 296221 2016-02-29 19:10:32Z jasone $ |
30 */ 31 32#ifndef _MALLOC_NP_H_ 33#define _MALLOC_NP_H_ 34#include <sys/cdefs.h> 35#include <sys/types.h> 36#include <stdbool.h> 37#include <strings.h> --- 43 unchanged lines hidden (view full) --- 81 82void * __calloc(size_t number, size_t size) __malloc_like; 83void * __malloc(size_t size) __malloc_like; 84void * __realloc(void *ptr, size_t size); 85void __free(void *ptr); 86int __posix_memalign(void **ptr, size_t alignment, size_t size); 87void *__aligned_alloc(size_t alignment, size_t size); 88size_t __malloc_usable_size(const void *ptr); | 30 */ 31 32#ifndef _MALLOC_NP_H_ 33#define _MALLOC_NP_H_ 34#include <sys/cdefs.h> 35#include <sys/types.h> 36#include <stdbool.h> 37#include <strings.h> --- 43 unchanged lines hidden (view full) --- 81 82void * __calloc(size_t number, size_t size) __malloc_like; 83void * __malloc(size_t size) __malloc_like; 84void * __realloc(void *ptr, size_t size); 85void __free(void *ptr); 86int __posix_memalign(void **ptr, size_t alignment, size_t size); 87void *__aligned_alloc(size_t alignment, size_t size); 88size_t __malloc_usable_size(const void *ptr); |
89void __malloc_stats_print(void (*write_cb)(void *, const char *), 90 void *cbopaque, const char *opts); 91int __mallctl(const char *name, void *oldp, size_t *oldlenp, void *newp, 92 size_t newlen); 93int __mallctlnametomib(const char *name, size_t *mibp, size_t *miblenp); 94int __mallctlbymib(const size_t *mib, size_t miblen, void *oldp, 95 size_t *oldlenp, void *newp, size_t newlen); |
|
89void *__mallocx(size_t size, int flags); 90void *__rallocx(void *ptr, size_t size, int flags); 91size_t __xallocx(void *ptr, size_t size, size_t extra, int flags); 92size_t __sallocx(const void *ptr, int flags); 93void __dallocx(void *ptr, int flags); 94void __sdallocx(void *ptr, size_t size, int flags); 95size_t __nallocx(size_t size, int flags); 96__END_DECLS 97 98#endif /* _MALLOC_NP_H_ */ | 96void *__mallocx(size_t size, int flags); 97void *__rallocx(void *ptr, size_t size, int flags); 98size_t __xallocx(void *ptr, size_t size, size_t extra, int flags); 99size_t __sallocx(const void *ptr, int flags); 100void __dallocx(void *ptr, int flags); 101void __sdallocx(void *ptr, size_t size, int flags); 102size_t __nallocx(size_t size, int flags); 103__END_DECLS 104 105#endif /* _MALLOC_NP_H_ */ |