mirror of
https://git.proxmox.com/git/wasi-libc
synced 2025-06-17 23:12:21 +00:00

This incoporates pieces from musl-libc, cloudlibc, cloudabi, libpreopen, and dlmalloc, as well as a significant amount of new code.
23 lines
509 B
C
23 lines
509 B
C
#ifndef __wasm___functions_malloc_h
|
|
#define __wasm___functions_malloc_h
|
|
|
|
#define __need_size_t
|
|
#define __need_wchar_t
|
|
#define __need_NULL
|
|
#include <stddef.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void *malloc(size_t size) __attribute__((__malloc__, __warn_unused_result__));
|
|
void free(void *ptr);
|
|
void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__, __warn_unused_result__));
|
|
void *realloc(void *ptr, size_t size) __attribute__((__warn_unused_result__));
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|