_POSIX_MAPPED_FILES should not be defined

Chris Johns chrisj at rtems.org
Wed Apr 21 21:44:05 UTC 2010


On 22/04/2010 6:22 AM, Peter Dufault wrote:
> 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.
>

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.

Chris



More information about the users mailing list