]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r229848:
authored <ed@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 22 Nov 2012 15:19:53 +0000 (15:19 +0000)
committered <ed@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 22 Nov 2012 15:19:53 +0000 (15:19 +0000)
commit52e00486d9df9f5cdf4319f93c72a54385802547
tree25280ad4229ddbcf562de3b4e9d5ffabb11c4a19
parentad365ac589f5a2a119db4148a8c874e367958158
MFC r229848:

  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

git-svn-id: svn://svn.freebsd.org/base/stable/9@243405 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
include/stdlib.h
lib/libc/stdlib/Makefile.inc
lib/libc/stdlib/Symbol.map
lib/libc/stdlib/aligned_alloc.3 [moved from lib/libc/stdlib/posix_memalign.3 with 79% similarity]
lib/libc/stdlib/malloc.c