_POSIX_MAPPED_FILES should not be defined

Peter Dufault dufault at hda.com
Wed Apr 21 20:22:28 UTC 2010

Why is _POSIX_MAPPED_FILES defined to be 1?  I think that is wrong.

We don't have <sys/mman.h>, mmap(), or munmap(), all of which are required if _POSIX_MAPPED_FILES is 1.

I started to modify some code to include <unistd.h> and then conditionalize out the mmap calls based on _POSIX_MAPED_FILES but couldn't.

Peter Dufault
HD Associates, Inc.      Software and System Engineering

More information about the users mailing list