syscall_emul: remove mmapFlagTable

After all this it turns out we don't even use it.
This commit is contained in:
Steve Reinhardt
2016-04-01 16:38:16 -07:00
parent 0e214bdfd1
commit df36764e91
7 changed files with 1 additions and 63 deletions

View File

@@ -103,9 +103,6 @@ class AlphaLinux : public Linux
static const int TGT_O_PATH = 040000000; //!< O_PATH
//@}
/// For mmap().
static SyscallFlagTransTable mmapFlagTable[];
static const unsigned TGT_MAP_SHARED = 0x000001;
static const unsigned TGT_MAP_PRIVATE = 0x000002;
static const unsigned TGT_MAP_ANON = 0x000010;

View File

@@ -124,9 +124,6 @@ class ArmLinux32 : public Linux
static const int TGT_O_PATH = 010000000; //!< O_PATH
//@}
/// For mmap().
static SyscallFlagTransTable mmapFlagTable[];
static const unsigned TGT_MAP_SHARED = 0x00001;
static const unsigned TGT_MAP_PRIVATE = 0x00002;
static const unsigned TGT_MAP_ANON = 0x00020;

View File

@@ -102,9 +102,6 @@ class MipsLinux : public Linux
static const int TGT_O_PATH = 0x00200000; //!< O_PATH
//@}
/// For mmap().
static SyscallFlagTransTable mmapFlagTable[];
static const unsigned TGT_MAP_SHARED = 0x00001;
static const unsigned TGT_MAP_PRIVATE = 0x00002;
static const unsigned TGT_MAP_ANON = 0x00800;

View File

@@ -163,9 +163,6 @@ class PowerLinux : public Linux
static const int TGT_O_PATH = 010000000; //!< O_PATH
//@}
/// For mmap().
static SyscallFlagTransTable mmapFlagTable[];
static const unsigned TGT_MAP_SHARED = 0x00001;
static const unsigned TGT_MAP_PRIVATE = 0x00002;
static const unsigned TGT_MAP_ANON = 0x00020;

View File

@@ -119,9 +119,6 @@ class SparcLinux : public Linux
static const int NUM_OPEN_FLAGS;
/// For mmap().
static SyscallFlagTransTable mmapFlagTable[];
static const unsigned TGT_MAP_SHARED = 0x00001;
static const unsigned TGT_MAP_PRIVATE = 0x00002;
static const unsigned TGT_MAP_ANON = 0x00020;

View File

@@ -126,9 +126,6 @@ class X86Linux64 : public Linux
static const int NUM_OPEN_FLAGS;
/// For mmap().
static SyscallFlagTransTable mmapFlagTable[];
static const unsigned TGT_MAP_SHARED = 0x00001;
static const unsigned TGT_MAP_PRIVATE = 0x00002;
static const unsigned TGT_MAP_32BIT = 0x00040;