mirror of
https://github.com/openharmony/third_party_libunwind.git
synced 2026-07-01 07:39:12 -04:00
b4885b363d
Signed-off-by: chang_jian <chang_jian@hoperun.com>
27 lines
596 B
C
Executable File
27 lines
596 B
C
Executable File
// This is an incomplete & imprecice implementation of the Posix
|
|
// standard file by the same name
|
|
#ifndef __MINGW_SYS_MMAN__
|
|
#define __MINGW_SYS_MMAN__
|
|
|
|
#ifdef MINGW // Only for cross compilation to mingw
|
|
|
|
#include <sys/types.h>
|
|
|
|
#if !HAVE_MMAP
|
|
|
|
#define MAP_FAILED (void *) -1
|
|
#define MAP_ANONYMOUS 1
|
|
#define MAP_ANON MAP_ANONYMOUS
|
|
#define MAP_PRIVATE 2
|
|
|
|
#define PROT_NONE 0
|
|
#define PROT_READ 1
|
|
#define PROT_WRITE 2
|
|
#define PROT_EXEC 4
|
|
|
|
void* mmap(void *, size_t, int, int, int, size_t);
|
|
int munmap(void *, size_t);
|
|
#endif
|
|
|
|
#endif // MINGW
|
|
#endif |