bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

new module 'posix_memalign'


From: Bruno Haible
Subject: new module 'posix_memalign'
Date: Wed, 04 Nov 2020 02:22:23 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-193-generic; KDE/5.18.0; x86_64; ; )

Here comes the module 'posix_memalign'. On OpenBSD 6.0 and 6.1,
    void *p;
    posix_memalign (&p, 32, 2406)
produces a pointer p that is not a multiple of 32. It's fixed in OpenBSD 6.2.



2020-11-03  Bruno Haible  <bruno@clisp.org>

        posix_memalign: Add tests.
        * tests/test-posix_memalign.c: New file.
        * modules/posix_memalign-tests: New file.

        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.

Attachment: 0001-posix_memalign-New-module.patch
Description: Text Data

Attachment: 0002-posix_memalign-Add-tests.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]