1 #include "ace/OS_NS_fcntl.h"
2 #include "ace/OS_NS_string.h"
3 #include "ace/Mem_Map.h"
4 #include "ace/Log_Msg.h"
7 int ACE_TMAIN (int, ACE_TCHAR
*argv
[])
9 ACE_HANDLE srcHandle
= ACE_OS::open (argv
[1], O_RDONLY
);
10 ACE_ASSERT(srcHandle
!= ACE_INVALID_HANDLE
);
12 ACE_Mem_Map
srcMap (srcHandle
, static_cast<size_t> (-1), PROT_READ
, ACE_MAP_PRIVATE
);
13 ACE_ASSERT(srcMap
.addr () != 0);
15 ACE_Mem_Map
destMap (argv
[2],
18 ACE_DEFAULT_FILE_PERMS
,
21 ACE_ASSERT(destMap
.addr () != 0);
23 ACE_OS::memcpy (destMap
.addr (),