|
Last change
on this file since 9bfa8c8 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 |
|
|---|
| 21 | extern void *malloc(size_t size)
|
|---|
| 22 | __attribute__((malloc));
|
|---|
| 23 | extern void *calloc(size_t nmemb, size_t size)
|
|---|
| 24 | __attribute__((malloc));
|
|---|
| 25 | extern void *realloc(void *addr, size_t size)
|
|---|
| 26 | __attribute__((warn_unused_result));
|
|---|
| 27 | extern void free(void *addr);
|
|---|
| 28 |
|
|---|
| 29 | __C_DECLS_END;
|
|---|
| 30 |
|
|---|
| 31 | #ifdef _HELENOS_SOURCE
|
|---|
| 32 | __HELENOS_DECLS_BEGIN;
|
|---|
| 33 |
|
|---|
| 34 | extern void *memalign(size_t align, size_t size)
|
|---|
| 35 | __attribute__((malloc));
|
|---|
| 36 | extern 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.