source: mainline/uspace/lib/c/include/malloc.h@ cb7be8f

Last change on this file since cb7be8f was d7f7a4a, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 3 years ago

Replace some license headers with SPDX identifier

Headers are replaced using tools/transorm-copyright.sh only
when it can be matched verbatim with the license header used
throughout most of the codebase.

  • Property mode set to 100644
File size: 733 bytes
RevLine 
[df50cf6]1/*
[d7f7a4a]2 * SPDX-FileCopyrightText: 2009 Martin Decky
[ae75080a]3 *
[d7f7a4a]4 * SPDX-License-Identifier: BSD-3-Clause
[df50cf6]5 */
6
[ae75080a]7/** @addtogroup libc
8 * @{
9 */
10/** @file
11 */
[df50cf6]12
[4805495]13#ifndef _LIBC_MALLOC_H_
14#define _LIBC_MALLOC_H_
[df50cf6]15
[8d2dd7f2]16#include <stddef.h>
[bc56f30]17#include <_bits/decls.h>
18
19__C_DECLS_BEGIN;
[df50cf6]20
[33b8d024]21extern void *malloc(size_t size)
[273b958]22 __attribute__((malloc));
[33b8d024]23extern void *calloc(size_t nmemb, size_t size)
[273b958]24 __attribute__((malloc));
[33b8d024]25extern void *realloc(void *addr, size_t size)
[53031c2]26 __attribute__((warn_unused_result));
[33b8d024]27extern void free(void *addr);
[bc56f30]28
29__C_DECLS_END;
30
31#ifdef _HELENOS_SOURCE
32__HELENOS_DECLS_BEGIN;
33
34extern void *memalign(size_t align, size_t size)
35 __attribute__((malloc));
[1b3e854]36extern void *heap_check(void);
[df50cf6]37
[bc56f30]38__HELENOS_DECLS_END;
39#endif
40
[df50cf6]41#endif
42
[ae75080a]43/** @}
[b2951e2]44 */
Note: See TracBrowser for help on using the repository browser.