- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2023-11-06 Paul Eggert
+ posix_memalign-tests: port to CHERI-64
+ * tests/test-posix_memalign.c (main):
+ Don’t assume sizeof (void *) <= 8.
+
mcel-tests: fix read overrun in test case
* tests/test-mcel.c (main):
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
posix_memalign: Add tests.
* tests/test-po
Eric Blake wrote:
> > We have a 'pagealign_alloc' module that does not waste memory.
>
> Alas, pagealign_alloc is currently GPLv3+, although if libvirt were to
> use it in place of posix_memalign, it would have to be LGPLv2+. It
> looks like Jim, Paul, and Bruno are
On 11/25/2011 04:24 PM, Bruno Haible wrote:
> Eric Blake wrote:
>>>> If gnulib would give
>>>> us posix_memalign on mingw, we could nuke this #if altogether.
>>>
>>> That's pretty difficult (unless you also add a posix_memalign_free)
>>> b
[Dropping libvir-list]
Peter O'Gorman wrote:
> Many of these systems have valloc(3) which could be used for this purpose.
Yes, but gnulib's pagealign_alloc() function is less wasteful that the
valloc() function that some systems have. E.g. in OpenBSD:
void *
valloc(size_t i)
{
long valsi
[Dropping libvir-list]
Eric Blake wrote:
> >> If gnulib would give
> >> us posix_memalign on mingw, we could nuke this #if altogether.
> >
> > That's pretty difficult (unless you also add a posix_memalign_free)
> > because at the time posix_memalign retur