From 419322ec4c4c6ff1df518378d86162b7a53bf2c0 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 4 Nov 2020 02:19:08 +0100 Subject: 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. --- modules/posix_memalign | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 modules/posix_memalign (limited to 'modules/posix_memalign') diff --git a/modules/posix_memalign b/modules/posix_memalign new file mode 100644 index 0000000000..86e8a52787 --- /dev/null +++ b/modules/posix_memalign @@ -0,0 +1,28 @@ +Description: +Allocate memory with indefinite extent and specified alignment. + +Files: +lib/posix_memalign.c +m4/posix_memalign.m4 + +Depends-on: +extensions +stdlib + +configure.ac: +gl_FUNC_POSIX_MEMALIGN +if test $REPLACE_POSIX_MEMALIGN = 1; then + AC_LIBOBJ([posix_memalign]) +fi +gl_STDLIB_MODULE_INDICATOR([posix_memalign]) + +Makefile.am: + +Include: + + +License: +LGPLv2+ + +Maintainer: +all -- cgit v1.2.1