[PATCH] Cygwin: mmap: allow remapping part of an existing anonymous, mapping

Ken Brown kbrown@cornell.edu
Wed Jan 8 02:27:59 GMT 2025


On 1/7/2025 3:18 PM, Corinna Vinschen wrote:
> - mmap_record::prot flag, should be an array of protection bits per page
>    (POSIX page i e., 64K, not Windows page).

Question: Since it only takes 3 bits to store all possible protections, 
do you think it's worth the trouble to pack the protections, so that 
each byte stores the protection bits for 2 pages?  Or should I just use 
an array of unsigned char, with 1 byte for each page?  Or did you have 
something else in mind?

Ken


More information about the Cygwin-patches mailing list