summaryrefslogtreecommitdiff
path: root/include/remote/win/sys/mman.h
blob: 0a3f6f93b5fec225f724b5400ad375fe5d4800c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// This is an incomplete & imprecice implementation of the Posix
// standard file by the same name


// Since this is only intended for VC++ compilers
// use #pragma once instead of guard macros
#pragma once

#ifdef _MSC_VER // Only for cross compilation to windows

#include <sys/types.h>

#define MAP_FAILED (void *) -1
#define MAP_ANONYMOUS        1
#define MAP_ANON             MAP_ANONYMOUS
#define MAP_PRIVATE          2
#define PROT_READ            4
#define PROT_WRITE           8
#define PROT_EXEC            16

void* mmap(void *, size_t, int, int, int, size_t);
int   munmap(void *, size_t);

#endif // _MSC_VER