This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]