[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
new module 'aligned_alloc'
From: |
Bruno Haible |
Subject: |
new module 'aligned_alloc' |
Date: |
Wed, 04 Nov 2020 02:26:43 +0100 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-193-generic; KDE/5.18.0; x86_64; ; ) |
Here comes the module 'aligned_alloc'. It contains a workaround: On AIX 7.1
and 7.2, aligned_alloc returns NULL when the alignment is < sizeof (void *).
posix_memalign does not accept alignment arguments < sizeof (void *), but
aligned_alloc should.
2020-11-03 Bruno Haible <bruno@clisp.org>
aligned_alloc: Add tests.
* tests/test-aligned_alloc.c: New file.
* modules/aligned_alloc-tests: New file.
aligned_alloc: New module.
* lib/stdlib.in.h (aligned_alloc): New declaration.
* lib/aligned_alloc.c: New file.
* m4/aligned_alloc.m4: New file.
* m4/stdlib_h.m4 (gl_STDLIB_H): Test whether aligned_alloc is declared.
(gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ALIGNED_ALLOC,
HAVE_ALIGNED_ALLOC, REPLACE_ALIGNED_ALLOC.
* modules/stdlib (Makefile.am): Substitute GNULIB_ALIGNED_ALLOC,
HAVE_ALIGNED_ALLOC, REPLACE_ALIGNED_ALLOC.
* modules/aligned_alloc: New file.
* tests/test-stdlib-c++.cc (aligned_alloc): Check signature.
* doc/posix-functions/aligned_alloc.texi: Mention the new module and the
AIX bug.
0001-aligned_alloc-New-module.patch
Description: Text Data
0002-aligned_alloc-Add-tests.patch
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- new module 'aligned_alloc',
Bruno Haible <=