|
| | ACE_Mem_Map () |
| | Default constructor.
|
| |
| | ACE_Mem_Map (ACE_HANDLE handle, size_t length=static_cast< size_t >(-1), int prot=PROT_RDWR, int share=ACE_MAP_PRIVATE, void *addr=0, ACE_OFF_T offset=0, LPSECURITY_ATTRIBUTES sa=0) |
| |
| | ACE_Mem_Map (const ACE_TCHAR *filename, size_t length=static_cast< size_t >(-1), int flags=O_RDWR|O_CREAT, mode_t mode=ACE_DEFAULT_FILE_PERMS, int prot=PROT_RDWR, int share=ACE_MAP_PRIVATE, void *addr=0, ACE_OFF_T offset=0, LPSECURITY_ATTRIBUTES sa=0) |
| | Map a file specified by file_name.
|
| |
| int | map (ACE_HANDLE handle, size_t length=static_cast< size_t >(-1), int prot=PROT_RDWR, int share=ACE_MAP_PRIVATE, void *addr=0, ACE_OFF_T offset=0, LPSECURITY_ATTRIBUTES sa=0) |
| |
| int | map (size_t length=static_cast< size_t >(-1), int prot=PROT_RDWR, int share=ACE_MAP_PRIVATE, void *addr=0, ACE_OFF_T offset=0, LPSECURITY_ATTRIBUTES sa=0) |
| | Remap the file associated with <handle_>.
|
| |
| int | map (const ACE_TCHAR *filename, size_t length=static_cast< size_t >(-1), int flags=O_RDWR|O_CREAT, mode_t mode=ACE_DEFAULT_FILE_PERMS, int prot=PROT_RDWR, int share=ACE_MAP_PRIVATE, void *addr=0, ACE_OFF_T offset=0, LPSECURITY_ATTRIBUTES sa=0) |
| | Map a file specified by filename.
|
| |
| | ~ACE_Mem_Map () |
| | Destructor.
|
| |
| int | open (const ACE_TCHAR *filename, int flags=O_RDWR|O_CREAT, mode_t perms=ACE_DEFAULT_FILE_PERMS, LPSECURITY_ATTRIBUTES sa=0) |
| | Open the file without mapping it.
|
| |
| int | close () |
| | Close down the <handle_> if necessary and unmap the mapping.
|
| |
| int | close_handle () |
| | Close down the <handle_> if necessary.
|
| |
| int | close_filemapping_handle () |
| |
| int | operator() (void *&addr) |
| |
| void * | addr () const |
| | Return the base address.
|
| |
| size_t | size () const |
| |
| int | unmap (ssize_t len=-1) |
| | Unmap the region starting at base_addr_.
|
| |
| int | unmap (void *addr, ssize_t len) |
| | Unmap the region starting at addr_.
|
| |
| int | sync (size_t len, int flags=MS_SYNC) |
| |
| int | sync (int flags=MS_SYNC) |
| |
| int | sync (void *addr, size_t len, int flags=MS_SYNC) |
| |
| int | protect (size_t len, int prot=PROT_RDWR) |
| |
| int | protect (int prot=PROT_RDWR) |
| |
| int | protect (void *addr, size_t len, int prot=PROT_RDWR) |
| |
| int | remove () |
| | Close and remove the file from the file system.
|
| |
| int | advise (int behavior, int len=-1) |
| | Hook into the underlying VM system.
|
| |
| ACE_HANDLE | handle () const |
| | Return the underlying <handle_>.
|
| |
| const ACE_TCHAR * | filename () const |
| | Return the name of file that is mapped (if any).
|
| |
| void | dump () const |
| | Dump the state of an object.
|
| |
C++ interface OS memory mapping system call.
This class works with both the mmap(2) UNIX system and the Win32 family of memory mapping system calls.