summaryrefslogtreecommitdiff
path: root/libgcompat/malloc.c
AgeCommit message (Collapse)AuthorFilesLines
2019-05-08string: check NULL before using src here, tooA. Wilcox1-1/+1
2019-05-08malloc: use posix_memalign instead of deprecated memalignA. Wilcox1-1/+4
2019-04-08malloc: Add mtrace and muntrace stubsA. Wilcox1-0/+12
2018-04-03malloc: add malloc_trim functionElizabeth Myers1-0/+6
2018-02-01malloc: add __sbrkA. Wilcox1-0/+6
2018-01-14malloc: Sort functions by nameSamuel Holland1-16/+18
Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-01-14libgcompat: Add and use a macro for defining symbol aliasesSamuel Holland1-8/+6
* Prefer providing the underscore-prefixed symbol as the strong definition. * Do not use a weak alias if the alias is also underscore-prefixed. * Make libgcompat objects depend on the new header. [NOTE: I originally took the weak_alias macro from musl's libc.h, but it's trivial and the same pattern already in use. If desired, I can add the musl copyright notice.] Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-01-14global: Format the code consistentlySamuel Holland1-21/+23
* Apply clang-format. * Change all comments to the same style. * Add braces as dictated by the coding style guidelines. Signed-off-by: Samuel Holland <samuel@sholland.org>
2017-10-15malloc: add __libc_memalignA. Wilcox1-0/+6
__memalign is not necessary as musl already provides it.
2017-10-15malloc: add __libc_{m,c,re}alloc and __libc_free aliasesA. Wilcox1-0/+27
2017-06-14move all compatibility library stuff into libgcompat/William Pitcock1-0/+46