posix_memalign: New module.
commit419322ec4c4c6ff1df518378d86162b7a53bf2c0
authorBruno Haible <bruno@clisp.org>
Wed, 4 Nov 2020 01:19:08 +0000 (4 02:19 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 4 Nov 2020 01:19:08 +0000 (4 02:19 +0100)
tree9de0a3e360ff657b917881291b6ffabad0dd14bf
parent8c989f769f07699d46ba7213ded965afb0e1be35
posix_memalign: New module.

* lib/stdlib.in.h (posix_memalign): New declaration.
* lib/posix_memalign.c: New file.
* m4/posix_memalign.m4: New file.
* m4/stdlib_h.m4 (gl_STDLIB_H): Test whether posix_memalign is declared.
(gl_STDLIB_H_DEFAULTS): Initialize GNULIB_POSIX_MEMALIGN,
HAVE_POSIX_MEMALIGN, REPLACE_POSIX_MEMALIGN.
* modules/stdlib (Makefile.am): Substitute GNULIB_POSIX_MEMALIGN,
HAVE_POSIX_MEMALIGN, REPLACE_POSIX_MEMALIGN.
* modules/posix_memalign: New file.
* tests/test-stdlib-c++.cc (posix_memalign): Check signature.
* doc/posix-functions/posix_memalign.texi: Mention the new module and
the OpenBSD bug.
ChangeLog
doc/posix-functions/posix_memalign.texi
lib/posix_memalign.c [new file with mode: 0644]
lib/stdlib.in.h
m4/posix_memalign.m4 [new file with mode: 0644]
m4/stdlib_h.m4
modules/posix_memalign [new file with mode: 0644]
modules/stdlib
tests/test-stdlib-c++.cc