summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/aligned_alloc.3
Commit message (Collapse)AuthorAgeFilesLines
* MFC r229848:Ed Schouten2012-11-221-0/+126
Add aligned_alloc(3). The C11 folks reinvented the wheel by introducing an aligned version of malloc(3) called aligned_alloc(3), instead of posix_memalign(3). Instead of returning the allocation by reference, it returns the address, just like malloc(3). I'm MFCing this now, as it seems aligned_alloc(3) is needed to make the new version of libc++ work, which was merged back to FreeBSD 9 in r243376. Requested by: dim Notes: svn path=/stable/9/; revision=243405