problem with mmap

Carl Banks pavlovevidence at gmail.com
Fri Apr 25 21:43:51 CEST 2008


On Apr 25, 9:37 am, Neal Becker <ndbeck... at gmail.com> wrote:
> On linux, I don't understand why:
>
> f = open ('/dev/eos', 'rw')
> m = mmap.mmap(f.fileno(), 1000000, prot=mmap.PROT_READ|mmap.PROT_WRITE,
> flags=mmap.MAP_SHARED)
>
> gives 'permission denied',

Try

f = open('/dev/eos', 'r+')


Carl Banks



More information about the Python-list mailing list