summaryrefslogtreecommitdiff
path: root/modules/posix_memalign
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2020-11-04 02:19:08 +0100
committerBruno Haible <bruno@clisp.org>2020-11-04 02:19:08 +0100
commit419322ec4c4c6ff1df518378d86162b7a53bf2c0 (patch)
tree9de0a3e360ff657b917881291b6ffabad0dd14bf /modules/posix_memalign
parent8c989f769f07699d46ba7213ded965afb0e1be35 (diff)
downloadgnulib-419322ec4c4c6ff1df518378d86162b7a53bf2c0.tar.gz
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.
Diffstat (limited to 'modules/posix_memalign')
-rw-r--r--modules/posix_memalign28
1 files changed, 28 insertions, 0 deletions
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:
+<stdlib.h>
+
+License:
+LGPLv2+
+
+Maintainer:
+all