Atomic mmap replacement
Ken Brown
kbrown@cornell.edu
Wed Dec 18 22:41:44 GMT 2024
Please keep the discussion on the mailing list.
On 12/18/2024 4:55 PM, matthew patton wrote:
> PLEASE put in a comment that the else case is testing the 'u_addr =
> addr' and that u_addr < addr is not possible given the logic in match. I
> HATE code that requires you to go digging around in multiple places and
> step thru other methods in order to glean what the current method's
> assumptions are predicated upon. That's utter shit but extremely common
> by C coders.
I'm currently working on refactoring match() so that the logic is easier
to follow. This will include adding comments, as well as adding a new
parameter to match() that allows it to indicate whether or not one
region is contained in the other. This won't get done immediately,
because I have something more pressing that I want to do first.
Ken
More information about the Cygwin
mailing list