[PATCH 1/3] posix_memalign-tests: port to CHERI-64

2023-11-07 Thread Paul Eggert
- 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):

new module 'posix_memalign'

2020-11-03 Thread Bruno Haible
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

Re: posix_memalign

2011-11-29 Thread Bruno Haible
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

Re: posix_memalign

2011-11-28 Thread Eric Blake
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

Re: posix_memalign, valloc

2011-11-25 Thread Bruno Haible
[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

Re: posix_memalign

2011-11-25 Thread Bruno Haible
[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