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 @@...@@ -4,11 +4,6 @@
4#include "lock.h"4#include "lock.h"
5#include "fork_impl.h"5#include "fork_impl.h"
66
7#define malloc __libc_malloc
8#define calloc __libc_calloc
9#define realloc undef
10#define free undef
11
12/* Ensure that at least 32 atexit handlers can be registered without malloc */7/* Ensure that at least 32 atexit handlers can be registered without malloc */
13#define COUNT 328#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);...@@ -10,10 +10,4 @@ hidden int __ptsname_r(int, char *, size_t);
10hidden char *__randname(char *);10hidden char *__randname(char *);
11hidden void __qsort_r (void *, size_t, size_t, int (*)(const void *, const void *, void *), void *);11hidden 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
19#endif13#endif
lib/libc/wasi/libc-top-half/musl/src/locale/locale_map.c-5
...@@ -9,11 +9,6 @@...@@ -9,11 +9,6 @@
9#include "lock.h"9#include "lock.h"
10#include "fork_impl.h"10#include "fork_impl.h"
1111
12#define malloc __libc_malloc
13#define calloc undef
14#define realloc undef
15#define free undef
16
17const char *__lctrans_impl(const char *msg, const struct __locale_map *lm)12const char *__lctrans_impl(const char *msg, const struct __locale_map *lm)
18{13{
19 const char *trans = 0;14 const char *trans = 0;
lib/libc/wasi/libc-top-half/musl/src/locale/newlocale.c-5
...@@ -6,11 +6,6 @@...@@ -6,11 +6,6 @@
6#include "locale_impl.h"6#include "locale_impl.h"
7#include "lock.h"7#include "lock.h"
88
9#define malloc __libc_malloc
10#define calloc undef
11#define realloc undef
12#define free undef
13
14static int default_locale_init_done;9static int default_locale_init_done;
15static struct __locale_struct default_locale, default_ctype_locale;10static 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 @@...@@ -11,11 +11,6 @@
11#include "lock.h"11#include "lock.h"
12#include "fork_impl.h"12#include "fork_impl.h"
1313
14#define malloc __libc_malloc
15#define calloc undef
16#define realloc undef
17#define free undef
18
19#ifdef __wasilibc_unmodified_upstream // timezone data14#ifdef __wasilibc_unmodified_upstream // timezone data
20long __timezone = 0;15long __timezone = 0;
21int __daylight = 0;16int __daylight = 0;