mmap breakage?

Alfred Perlstein alfred at
Fri Apr 2 11:12:54 PST 2004

* Poul-Henning Kamp <phk at> [040402 10:40] wrote:
> In message <20040402160959.GJ26131 at>, Alfred Perlstein writes:
> >I noticed that mplayer seems to want to open /dev/zero with RDONLY
> >but then tries to mmap it PROT_READ+PROT_WRITE and gets rejected.
> Sounds like missing MAP_PRIVATE ?

Nope, private is set.  It's just that the file is opened RDONLY,
but PROT has PROT_WRITE in it.

- Alfred Perlstein
- Research Engineering Development Inc.
- email: bright at cell: 408-480-4684

More information about the freebsd-current mailing list