[PATCH 2/2] manual/memory.texi: Bring aligned allocation docs up to date.

Joseph S. Myers joseph@codesourcery.com
Wed Nov 6 14:50:00 GMT 2013


On Wed, 6 Nov 2013, Will Newton wrote:

> On 6 November 2013 12:58, Joseph S. Myers <joseph@codesourcery.com> wrote:
> > On Wed, 6 Nov 2013, Will Newton wrote:
> >
> >> The current documentation suggests using memalign and valloc which
> >> are now considered obsolete, so suggest using posix_memalign instead.
> >
> > What about C11 aligned_alloc?
> 
> It is currently not documented at all. I could add that as part of
> this patch or as another if you prefer? It is not entirely clear to me

I don't mind, but it does seem unfortunate that so many functions were 
added in the past without documentation.

> when one would prefer aligned_alloc over posix_memalign. Maybe
> portability?

Yes, if you want portability to non-POSIX C11 systems.

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Libc-alpha mailing list