_POSIX_MAPPED_FILES should not be defined

Peter Dufault dufault at hda.com
Wed Apr 21 23:32:40 UTC 2010

On Apr 21, 2010, at 5:44 , Chris Johns wrote:

> I am adding mmap and munmap to RTEMS. I have a first pass implementation working. I was not intending this code to be in 4.10 but I am happy to send a copy if you wish to play and improve.

I don't need it, it's just that the pre-processor test macro should be defined appropriately.  I was modifying the latest Mongoose svn head and using _POSIX_MAPPED_FILES to avoid including the <sys/mman.h> file and assumed _POSIX_MAPPED_FILES would be undefined.

We working with RTEMS must be sure the POSIX feature test macros match what is left unimplemented unless the trivial (almost devious) implementations such as I posted are supplied.
Peter Dufault
HD Associates, Inc.      Software and System Engineering

More information about the users mailing list