X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/59e0d9fe772464b93d835d2a2964457702469a43..b5d655f7532a546b54809da387f7467d128a756b:/include/malloc/malloc.h diff --git a/include/malloc/malloc.h b/include/malloc/malloc.h index c87a624..5db543d 100644 --- a/include/malloc/malloc.h +++ b/include/malloc/malloc.h @@ -3,8 +3,6 @@ * * @APPLE_LICENSE_HEADER_START@ * - * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved. - * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file except in @@ -90,6 +88,9 @@ extern malloc_zone_t *malloc_zone_from_ptr(const void *ptr); extern size_t malloc_size(const void *ptr); /* Returns size of given ptr */ +extern size_t malloc_good_size(size_t size); + /* Returns number of bytes greater than or equal to size that can be allocated without padding */ + /********* Batch methods ************/ extern unsigned malloc_zone_batch_malloc(malloc_zone_t *zone, size_t size, void **results, unsigned num_requested);