[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

new module 'memalign'

From: Bruno Haible
Subject: new module 'memalign'
Date: Wed, 04 Nov 2020 02:18:49 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-193-generic; KDE/5.18.0; x86_64; ; )

I noticed test failures of module 'aligned-malloc' on OpenBSD 6.1
and AIX 7.2 (64-bit). So, apparently some of the functions memalign,
posix_memalign, aligned_alloc are not reliably implemented on some

Let me add modules for these functions. These modules don't implement
the functions when they are not provided (due to the impossibilty
to call free() on a pointer that was not returned by malloc()). They
only add workarounds. Add unit tests, of course.

'memalign' works when it is implemented. So, for this one, the
purpose of the module 'memalign' is only to drag in the unit tests.

2020-11-03  Bruno Haible  <bruno@clisp.org>

        memalign: Add tests.
        * tests/test-memalign.c: New file.
        * modules/memalign-tests: New file.

        memalign: New module.
        * modules/memalign: New file.
        * doc/glibc-functions/memalign.texi: Mention the new module.

Attachment: 0001-memalign-New-module.patch
Description: Text Data

Attachment: 0002-memalign-Add-tests.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]