]> Savannah Git Hosting - gnulib.git/commit
aligned_alloc: check for GNU behavior with size 0
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 30 Oct 2024 18:54:57 +0000 (11:54 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 30 Oct 2024 19:50:24 +0000 (12:50 -0700)
commite6108a3b3e65cd9b3c1899a0fb88d368c1626c58
tree92f8fb1d196b5484d97e97d0580ff01bd8f29d68
parent3b67980c26e94599caaa60122941fe1bcce8c04c
aligned_alloc: check for GNU behavior with size 0

If someone ever needs to distinguish between GNU and merely POSIX
behavior we can split this into two modules, but for now just
make this module act like GNU.
* lib/aligned_alloc.c (aligned_alloc): Treat zero size like GNU.
* m4/aligned_alloc.m4 (gl_FUNC_ALIGNED_ALLOC):
* tests/test-aligned_alloc.c (main):
Test zero size too.
ChangeLog
doc/posix-functions/aligned_alloc.texi
lib/aligned_alloc.c
m4/aligned_alloc.m4
tests/test-aligned_alloc.c