commit | 0a0bbf63e5d9bc60d6854c6d46b437fbeebd1470 | [log] [tgz] |
---|---|---|
author | Jason Evans <je@fb.com> | Tue Mar 13 12:55:21 2012 -0700 |
committer | Jason Evans <je@fb.com> | Tue Mar 13 12:55:21 2012 -0700 |
tree | 13c89000186384510a4a9fb23e5bd8fadc0ccdbf | |
parent | 4c2faa8a7c42a47a6bea509f5a23234bc5a66d40 [diff] |
Implement aligned_alloc(). Implement aligned_alloc(), which was added in the C11 standard. The function is weakly specified to the point that a minimally compliant implementation would be painful to use (size must be an integral multiple of alignment!), which in practice makes posix_memalign() a safer choice.