projects
/
platform
/
core
/
uifw
/
dali-adaptor-legacy.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Initial copy from dali-adaptor repository
[platform/core/uifw/dali-adaptor-legacy.git]
/
third-party
/
windows-platform
/
sys
/
mman.h
1
#ifndef _MMAN_INCLUDE_
2
#define _MMAN_INCLUDE_
3
4
#define PROT_READ 0
5
#define MAP_SHARED 1
6
7
static void* mmap( void*, long long length, int, int, int handle, int )
8
{
9
char *buffer = new char[length];
10
read( handle, buffer, length );
11
return buffer;
12
}
13
14
static void munmap( void* buffer, long long )
15
{
16
delete[] buffer;
17
}
18
19
#endif