diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-02-21 05:44:04 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-02-21 05:44:04 +0000 |
commit | 4a93642a9c3d6ba6dcff6f4cc2fcc7bcfe227b8e (patch) | |
tree | ece1b872812f63d85b7077cef668d00902bdbefa /ace/Mem_Map.cpp | |
parent | 88973dbf41a6ba0899f60e133e63e0d12a1ec497 (diff) | |
download | ATCD-4a93642a9c3d6ba6dcff6f4cc2fcc7bcfe227b8e.tar.gz |
On LynxOS, write back the shared object to the plain file, if the mmap protection included PROT_WRITE
Diffstat (limited to 'ace/Mem_Map.cpp')
-rw-r--r-- | ace/Mem_Map.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ace/Mem_Map.cpp b/ace/Mem_Map.cpp index de2be32cdf1..9f9763f6936 100644 --- a/ace/Mem_Map.cpp +++ b/ace/Mem_Map.cpp @@ -98,6 +98,11 @@ ACE_Mem_Map::map_it (ACE_HANDLE handle, return -1; } +#if defined (__Lynx__) + // Set flag that indicates whether PROT_WRITE has been enabled. + write_enabled_ = prot & PROT_WRITE ? 1 : 0; +#endif /* __Lynx__ */ + this->base_addr_ = ACE_OS::mmap (this->base_addr_, this->length_, prot, |