This is the mail archive of the 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: Document aligned_alloc.

On 7 November 2013 17:06, Paul Eggert <> wrote:
> On 11/07/2013 12:33 AM, Will Newton wrote:
>> The majority of
>> code out there seems to be using posix_memalign and it is not
>> deprecated (i.e. it remains in currently applicable standards).
>> aligned_alloc seems pretty much unused AFAICT.
> This is mainly because posix_memalign has been there for
> years and aligned_alloc is new.  The newer interface is clearly better,
> and the documentation shouldn't recommend the worse interface.

True, but the question of which is "better" also involves which is
more portable to currently deployed systems IMO, and I do not have a
feel for whether aligned_alloc is actually out there and usable on a
wide variety of systems. C11 is only a couple of years old and only in
the last few years have we seen a widespread push to use C99 idioms
and even now there are projects that avoid C99.

Will Newton
Toolchain Working Group, Linaro

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