authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-02-11 23:48:49-08:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-02-12 13:14:51-08:00
logf5d5dbd1668b9fc7347b017563e2e951f3156c1e
tree11477aae12c6e91433a47d18f619bd0b91fe212d
parente2fccd8dd5c09ed805c000a6c26c7d1eb1e7d6c1

wasi libc: remove malloc defines


5 files changed, 0 insertions(+), 26 deletions(-)

lib/libc/wasi/libc-top-half/musl/src/exit/atexit.c-5
......@@ -4,11 +4,6 @@
44#include "lock.h"
55#include "fork_impl.h"
66
7#define malloc __libc_malloc
8#define calloc __libc_calloc
9#define realloc undef
10#define free undef
11
127/* Ensure that at least 32 atexit handlers can be registered without malloc */
138#define COUNT 32
149
lib/libc/wasi/libc-top-half/musl/src/include/stdlib.h-6
......@@ -10,10 +10,4 @@ hidden int __ptsname_r(int, char *, size_t);
1010hidden char *__randname(char *);
1111hidden void __qsort_r (void *, size_t, size_t, int (*)(const void *, const void *, void *), void *);
1212
13hidden void *__libc_malloc(size_t);
14hidden void *__libc_malloc_impl(size_t);
15hidden void *__libc_calloc(size_t, size_t);
16hidden void *__libc_realloc(void *, size_t);
17hidden void __libc_free(void *);
18
1913#endif
lib/libc/wasi/libc-top-half/musl/src/locale/locale_map.c-5
......@@ -9,11 +9,6 @@
99#include "lock.h"
1010#include "fork_impl.h"
1111
12#define malloc __libc_malloc
13#define calloc undef
14#define realloc undef
15#define free undef
16
1712const char *__lctrans_impl(const char *msg, const struct __locale_map *lm)
1813{
1914 const char *trans = 0;
lib/libc/wasi/libc-top-half/musl/src/locale/newlocale.c-5
......@@ -6,11 +6,6 @@
66#include "locale_impl.h"
77#include "lock.h"
88
9#define malloc __libc_malloc
10#define calloc undef
11#define realloc undef
12#define free undef
13
149static int default_locale_init_done;
1510static struct __locale_struct default_locale, default_ctype_locale;
1611
lib/libc/wasi/libc-top-half/musl/src/time/__tz.c-5
......@@ -11,11 +11,6 @@
1111#include "lock.h"
1212#include "fork_impl.h"
1313
14#define malloc __libc_malloc
15#define calloc undef
16#define realloc undef
17#define free undef
18
1914#ifdef __wasilibc_unmodified_upstream // timezone data
2015long __timezone = 0;
2116int __daylight = 0;