#include "ace/Mem_Map.h"
#include "ace/OS_NS_sys_stat.h"
#include "ace/OS_NS_fcntl.h"
#include "ace/OS_NS_string.h"
#include "ace/Log_Msg.h"
#include "ace/SString.h"
Include dependency graph for Mem_Map.cpp:
Go to the source code of this file.
Defines | |
#define | ACE_USE_MAPPING_NAME 1 |
Functions | |
ACE_BEGIN_VERSIONED_NAMESPACE_DECL void | to_mapping_name (ACE_TCHAR *mapobjname, const ACE_TCHAR *filename, size_t len) |
|
Definition at line 17 of file Mem_Map.cpp. |
|
Definition at line 37 of file Mem_Map.cpp. References ACE_LIB_TEXT, and ACE_TCHAR. Referenced by ACE_Mem_Map::map_it().
00040 { 00041 --len; 00042 size_t i = 0; 00043 00044 while (*filename && i < len) 00045 { 00046 if (*filename == ACE_LIB_TEXT ('\\')) 00047 // Can't use backslash in mapping object name. 00048 mapobjname[i] = ACE_LIB_TEXT ('.'); 00049 else 00050 mapobjname[i] = *filename; 00051 ++filename; 00052 ++i; 00053 } 00054 00055 mapobjname[i] = 0; 00056 } |