修订版 | 8948296356072119a07c6b9435dc16bdc74bdc56 (tree) |
---|---|
时间 | 2018-02-01 03:48:29 |
作者 | Waldemar Brodkorb <wbx@ucli...> |
Commiter | Waldemar Brodkorb |
malloc: add glibc compat symbols
@@ -91,3 +91,5 @@ void* calloc(size_t n_elements, size_t elem_size) | ||
91 | 91 | return mem; |
92 | 92 | } |
93 | 93 | |
94 | +/* glibc compatibilty */ | |
95 | +weak_alias(calloc, __libc_calloc) |
@@ -412,3 +412,5 @@ void free(void* mem) | ||
412 | 412 | __MALLOC_UNLOCK; |
413 | 413 | } |
414 | 414 | |
415 | +/* glibc compatibilty */ | |
416 | +weak_alias(free, __libc_free) |
@@ -1159,3 +1159,5 @@ DONE: | ||
1159 | 1159 | return retval; |
1160 | 1160 | } |
1161 | 1161 | |
1162 | +/* glibc compatibilty */ | |
1163 | +weak_alias(malloc, __libc_malloc) |
@@ -129,3 +129,5 @@ void* memalign(size_t alignment, size_t bytes) | ||
129 | 129 | } |
130 | 130 | weak_alias(memalign, aligned_alloc) |
131 | 131 | libc_hidden_def(memalign) |
132 | +/* glibc compatibilty */ | |
133 | +weak_alias(memalign, __libc_memalign) |
@@ -238,3 +238,5 @@ void* realloc(void* oldmem, size_t bytes) | ||
238 | 238 | return retval; |
239 | 239 | } |
240 | 240 | |
241 | +/* glibc compatibilty */ | |
242 | +weak_alias(realloc, __libc_realloc) |