Re: AC_FUNC_MMAP test fails on AIX for MAP_FIXED: who's at fault?

Bob Friesenhahn <[email protected]> Mon, 29 Jul 2024 12:10:01 -0500
Newsgroups gmane.comp.sysutils.autoconf.general
Message-ID <[email protected]>
> Can any of you think of other subsets of mmap functionality that are
> worth supplying a test for in autoconf?  Do any of you have time to
> work on patches for any or all of this?

GraphicsMagick has a GM_FUNC_MMAP_FILEIO macro which does this:

    This test is derived from GNU Autoconf's similar macro.
    The purpose of this test is to verify that files may be memory
    mapped, and that memory mapping and file I/O are coherent.

    The test creates a test file, memory maps the file, updates
    the file using the memory map, and then reads the file using
    file I/O to verify that the file contains the updates.

This functionality would be useful in Autoconf if variants are accepted.

Bob

-- 
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
Public Key,     http://www.simplesystems.org/users/bfriesen/public-key.txt