From: ts Date: 2004-05-25T17:53:15+09:00 Subject: Re: compiling mmap? >>>>> "B" == Brian Feldman writes: B> Looks like Darwin does not automatically translate PROT_WRITE into B> PROT_READ | PROT_WRITE. The concept of write-only memory regions in B> userland programs is pretty strange... disassemble the instruction B> currently executing and it's probably a RMW instruction. Allowing B> the user to specify PROT_WRITE alone probably shouldn't happen in B> Ruby. Well, not really the patch that have given in [ruby-talk:101215] was precisely to have PROT_READ | PROT_WRITE in this case. Actually I don't see the difference between the 2 test, except that the second add the flag O_TRUNC when the file is opened. Guy Decoux