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

Last change on this file since cd1e3fc0 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
Line 
1/*
2 * SPDX-FileCopyrightText: 2009 Martin Decky
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7/** @addtogroup libc
8 * @{
9 */
10/** @file
11 */
12
13#ifndef _LIBC_MALLOC_H_
14#define _LIBC_MALLOC_H_
15
16#include <stddef.h>
17#include <_bits/decls.h>
18
19__C_DECLS_BEGIN;
20
21extern void *malloc(size_t size)
22 __attribute__((malloc));
23extern void *calloc(size_t nmemb, size_t size)
24 __attribute__((malloc));
25extern void *realloc(void *addr, size_t size)
26 __attribute__((warn_unused_result));
27extern void free(void *addr);
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));
36extern void *heap_check(void);
37
38__HELENOS_DECLS_END;
39#endif
40
41#endif
42
43/** @}
44 */
Note: See TracBrowser for help on using the repository browser.