Subject: Re: kern/279: msync(2) fails when size param is 0
To: Chris G. Demetriou <cgd@postgres.berkeley.edu>
From: Thorsten Lockert <tholo@SigmaSoft.COM>
List: netbsd-bugs
Date: 06/05/1994 18:52:08
> > >Description:
> > msync(2) fails when passed only the address and no size.
> > When both are passed, it apparently works.
>
> This isn't very specific; could you please clarify?
mmap() a file and call msync(ptr, 0) with the pointer returned from
mmap(). Watch it fail.
> I don't _think_ that line is bogus -- conceptually, given what it's
> trying to do, that'd be the right way to do it (i think 8-).
From looking at it, you are probably right. It might be that the
vm_map_lookup_entry call fails if the address passed is one of the
boundaries of the memory block that we try to find?
Thorsten
--
Thorsten Lockert | postmaster@bbb.no |
Postbox 435 | hostmaster@bbb.no | Universe, n.:
N-5001 Bergen | tholo@bbb.no | The problem.
Norway | tholo@sigmasoft.com |
------------------------------------------------------------------------------