[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
_POSIX_MAPPED_FILES should not be defined
- Date: Thu, 22 Apr 2010 07:44:05 +1000
- From: chrisj at rtems.org (Chris Johns)
- Subject: _POSIX_MAPPED_FILES should not be defined
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.