• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修订版8948296356072119a07c6b9435dc16bdc74bdc56 (tree)
时间2018-02-01 03:48:29
作者Waldemar Brodkorb <wbx@ucli...>
CommiterWaldemar Brodkorb

Log Message

malloc: add glibc compat symbols

更改概述

差异

--- a/libc/stdlib/malloc-standard/calloc.c
+++ b/libc/stdlib/malloc-standard/calloc.c
@@ -91,3 +91,5 @@ void* calloc(size_t n_elements, size_t elem_size)
9191 return mem;
9292 }
9393
94+/* glibc compatibilty */
95+weak_alias(calloc, __libc_calloc)
--- a/libc/stdlib/malloc-standard/free.c
+++ b/libc/stdlib/malloc-standard/free.c
@@ -412,3 +412,5 @@ void free(void* mem)
412412 __MALLOC_UNLOCK;
413413 }
414414
415+/* glibc compatibilty */
416+weak_alias(free, __libc_free)
--- a/libc/stdlib/malloc-standard/malloc.c
+++ b/libc/stdlib/malloc-standard/malloc.c
@@ -1159,3 +1159,5 @@ DONE:
11591159 return retval;
11601160 }
11611161
1162+/* glibc compatibilty */
1163+weak_alias(malloc, __libc_malloc)
--- a/libc/stdlib/malloc-standard/memalign.c
+++ b/libc/stdlib/malloc-standard/memalign.c
@@ -129,3 +129,5 @@ void* memalign(size_t alignment, size_t bytes)
129129 }
130130 weak_alias(memalign, aligned_alloc)
131131 libc_hidden_def(memalign)
132+/* glibc compatibilty */
133+weak_alias(memalign, __libc_memalign)
--- a/libc/stdlib/malloc-standard/realloc.c
+++ b/libc/stdlib/malloc-standard/realloc.c
@@ -238,3 +238,5 @@ void* realloc(void* oldmem, size_t bytes)
238238 return retval;
239239 }
240240
241+/* glibc compatibilty */
242+weak_alias(realloc, __libc_realloc)