summaryrefslogtreecommitdiff
path: root/src/malloc/memalign.c
AgeCommit message (Collapse)AuthorLines
2013-07-04move core memalign code from aligned_alloc to __memalignRich Felker-2/+50
there are two motivations for this change. one is to avoid gratuitously depending on a C11 symbol for implementing a POSIX function. the other pertains to the documented semantics. C11 does not define any behavior for aligned_alloc when the length argument is not a multiple of the alignment argument. posix_memalign on the other hand places no requirements on the length argument. using __memalign as the implementation of both, rather than trying to implement one in terms of the other when their documented contracts differ, eliminates this confusion.
2012-08-25implement "low hanging fruit" from C11Rich Felker-7/+1
based on Gregor's patch sent to the list. includes: - stdalign.h - removing gets in C11 mode - adding aligned_alloc and adjusting other functions to use it - adding 'x' flag to fopen for exclusive mode
2011-02-12initial check-in, version 0.5.0v0.5.0Rich Felker-0/+13