diff --git a/src/arch/arm/linux/linux.hh b/src/arch/arm/linux/linux.hh --- a/src/arch/arm/linux/linux.hh +++ b/src/arch/arm/linux/linux.hh @@ -53,7 +53,7 @@ /// This table maps the target open() flags to the corresponding /// host open() flags. - static OpenFlagTransTable openFlagTable[]; + static SyscallFlagTransTable openFlagTable[]; /// Number of entries in openFlagTable[]. static const int NUM_OPEN_FLAGS; @@ -213,7 +213,7 @@ /// This table maps the target open() flags to the corresponding /// host open() flags. - static OpenFlagTransTable openFlagTable[]; + static SyscallFlagTransTable openFlagTable[]; /// Number of entries in openFlagTable[]. static const int NUM_OPEN_FLAGS; diff --git a/src/arch/arm/linux/linux.cc b/src/arch/arm/linux/linux.cc --- a/src/arch/arm/linux/linux.cc +++ b/src/arch/arm/linux/linux.cc @@ -46,7 +46,7 @@ #include "arch/arm/linux/linux.hh" // open(2) flags translation table -OpenFlagTransTable ArmLinux32::openFlagTable[] = { +SyscallFlagTransTable ArmLinux32::openFlagTable[] = { #ifdef _MSC_VER { ArmLinux32::TGT_O_RDONLY, _O_RDONLY }, { ArmLinux32::TGT_O_WRONLY, _O_WRONLY }, @@ -99,7 +99,7 @@ sizeof(ArmLinux32::openFlagTable[0]); // open(2) flags translation table -OpenFlagTransTable ArmLinux64::openFlagTable[] = { +SyscallFlagTransTable ArmLinux64::openFlagTable[] = { #ifdef _MSC_VER { ArmLinux64::TGT_O_RDONLY, _O_RDONLY }, { ArmLinux64::TGT_O_WRONLY, _O_WRONLY }, diff --git a/src/arch/mips/linux/linux.hh b/src/arch/mips/linux/linux.hh --- a/src/arch/mips/linux/linux.hh +++ b/src/arch/mips/linux/linux.hh @@ -39,7 +39,7 @@ /// This table maps the target open() flags to the corresponding /// host open() flags. - static OpenFlagTransTable openFlagTable[]; + static SyscallFlagTransTable openFlagTable[]; /// Number of entries in openFlagTable[]. static const int NUM_OPEN_FLAGS; diff --git a/src/arch/mips/linux/linux.cc b/src/arch/mips/linux/linux.cc --- a/src/arch/mips/linux/linux.cc +++ b/src/arch/mips/linux/linux.cc @@ -33,7 +33,7 @@ #include "arch/mips/linux/linux.hh" // open(2) flags translation table -OpenFlagTransTable MipsLinux::openFlagTable[] = { +SyscallFlagTransTable MipsLinux::openFlagTable[] = { #ifdef _MSC_VER { MipsLinux::TGT_O_RDONLY, _O_RDONLY }, { MipsLinux::TGT_O_WRONLY, _O_WRONLY }, diff --git a/src/arch/power/linux/linux.hh b/src/arch/power/linux/linux.hh --- a/src/arch/power/linux/linux.hh +++ b/src/arch/power/linux/linux.hh @@ -100,7 +100,7 @@ /// This table maps the target open() flags to the corresponding /// host open() flags. - static OpenFlagTransTable openFlagTable[]; + static SyscallFlagTransTable openFlagTable[]; /// Number of entries in openFlagTable[]. static const int NUM_OPEN_FLAGS; diff --git a/src/arch/power/linux/linux.cc b/src/arch/power/linux/linux.cc --- a/src/arch/power/linux/linux.cc +++ b/src/arch/power/linux/linux.cc @@ -34,7 +34,7 @@ #include "arch/power/linux/linux.hh" // open(2) flags translation table -OpenFlagTransTable PowerLinux::openFlagTable[] = { +SyscallFlagTransTable PowerLinux::openFlagTable[] = { #ifdef _MSC_VER { PowerLinux::TGT_O_RDONLY, _O_RDONLY }, { PowerLinux::TGT_O_WRONLY, _O_WRONLY }, diff --git a/src/arch/sparc/linux/linux.hh b/src/arch/sparc/linux/linux.hh --- a/src/arch/sparc/linux/linux.hh +++ b/src/arch/sparc/linux/linux.hh @@ -56,7 +56,7 @@ uint64_t __unused4[2]; } tgt_stat; - static OpenFlagTransTable openFlagTable[]; + static SyscallFlagTransTable openFlagTable[]; static const int TGT_O_RDONLY = 0x00000000; //!< O_RDONLY static const int TGT_O_WRONLY = 0x00000001; //!< O_WRONLY diff --git a/src/arch/sparc/linux/linux.cc b/src/arch/sparc/linux/linux.cc --- a/src/arch/sparc/linux/linux.cc +++ b/src/arch/sparc/linux/linux.cc @@ -33,7 +33,7 @@ #include "arch/sparc/linux/linux.hh" // open(2) flags translation table -OpenFlagTransTable SparcLinux::openFlagTable[] = { +SyscallFlagTransTable SparcLinux::openFlagTable[] = { #ifdef _MSC_VER { SparcLinux::TGT_O_RDONLY, _O_RDONLY }, { SparcLinux::TGT_O_WRONLY, _O_WRONLY }, diff --git a/src/arch/sparc/solaris/solaris.hh b/src/arch/sparc/solaris/solaris.hh --- a/src/arch/sparc/solaris/solaris.hh +++ b/src/arch/sparc/solaris/solaris.hh @@ -37,7 +37,7 @@ { public: - static OpenFlagTransTable openFlagTable[]; + static SyscallFlagTransTable openFlagTable[]; static const int TGT_O_RDONLY = 0x00000000; //!< O_RDONLY static const int TGT_O_WRONLY = 0x00000001; //!< O_WRONLY diff --git a/src/arch/sparc/solaris/solaris.cc b/src/arch/sparc/solaris/solaris.cc --- a/src/arch/sparc/solaris/solaris.cc +++ b/src/arch/sparc/solaris/solaris.cc @@ -33,7 +33,7 @@ #include "arch/sparc/solaris/solaris.hh" // open(2) flags translation table -OpenFlagTransTable SparcSolaris::openFlagTable[] = { +SyscallFlagTransTable SparcSolaris::openFlagTable[] = { #ifdef _MSC_VER { SparcSolaris::TGT_O_RDONLY, _O_RDONLY }, { SparcSolaris::TGT_O_WRONLY, _O_WRONLY }, diff --git a/src/arch/x86/linux/linux.hh b/src/arch/x86/linux/linux.hh --- a/src/arch/x86/linux/linux.hh +++ b/src/arch/x86/linux/linux.hh @@ -67,7 +67,7 @@ int64_t unused0[3]; } tgt_stat64; - static OpenFlagTransTable openFlagTable[]; + static SyscallFlagTransTable openFlagTable[]; static const int TGT_O_RDONLY = 00000000; //!< O_RDONLY static const int TGT_O_WRONLY = 00000001; //!< O_WRONLY @@ -140,7 +140,7 @@ uint64_t st_ino; } __attribute__((__packed__)) tgt_stat64; - static OpenFlagTransTable openFlagTable[]; + static SyscallFlagTransTable openFlagTable[]; static const int TGT_O_RDONLY = 00000000; //!< O_RDONLY static const int TGT_O_WRONLY = 00000001; //!< O_WRONLY diff --git a/src/arch/x86/linux/linux.cc b/src/arch/x86/linux/linux.cc --- a/src/arch/x86/linux/linux.cc +++ b/src/arch/x86/linux/linux.cc @@ -42,7 +42,7 @@ #include "arch/x86/linux/linux.hh" // open(2) flags translation table -OpenFlagTransTable X86Linux64::openFlagTable[] = { +SyscallFlagTransTable X86Linux64::openFlagTable[] = { #ifdef _MSC_VER { TGT_O_RDONLY, _O_RDONLY }, { TGT_O_WRONLY, _O_WRONLY }, @@ -81,7 +81,7 @@ sizeof(X86Linux64::openFlagTable[0]); // open(2) flags translation table -OpenFlagTransTable X86Linux32::openFlagTable[] = { +SyscallFlagTransTable X86Linux32::openFlagTable[] = { #ifdef _MSC_VER { TGT_O_RDONLY, _O_RDONLY }, { TGT_O_WRONLY, _O_WRONLY }, diff --git a/src/kern/operatingsystem.hh b/src/kern/operatingsystem.hh --- a/src/kern/operatingsystem.hh +++ b/src/kern/operatingsystem.hh @@ -38,9 +38,9 @@ class LiveProcess; class ThreadContext; -/// This struct is used to build an target-OS-dependent table that -/// maps the target's open() flags to the host open() flags. -struct OpenFlagTransTable { +/// This struct is used to build target-OS-dependent tables that +/// map the target's flags to the host's flags. +struct SyscallFlagTransTable { int tgtFlag; //!< Target system flag value. int hostFlag; //!< Corresponding host system flag value. }; diff --git a/src/arch/alpha/linux/linux.hh b/src/arch/alpha/linux/linux.hh --- a/src/arch/alpha/linux/linux.hh +++ b/src/arch/alpha/linux/linux.hh @@ -43,7 +43,7 @@ /// This table maps the target open() flags to the corresponding /// host open() flags. - static OpenFlagTransTable openFlagTable[]; + static SyscallFlagTransTable openFlagTable[]; /// Number of entries in openFlagTable[]. static const int NUM_OPEN_FLAGS; # Node ID 0c4ce7b5f21849c95c45c78e15448d1c41289669 # Parent 86ea50affa34c31ecb0c069259f74750a477bade diff --git a/src/arch/alpha/linux/linux.cc b/src/arch/alpha/linux/linux.cc --- a/src/arch/alpha/linux/linux.cc +++ b/src/arch/alpha/linux/linux.cc @@ -33,7 +33,7 @@ #include "arch/alpha/linux/linux.hh" // open(2) flags translation table -OpenFlagTransTable AlphaLinux::openFlagTable[] = { +SyscallFlagTransTable AlphaLinux::openFlagTable[] = { #ifdef _MSC_VER { AlphaLinux::TGT_O_RDONLY, _O_RDONLY }, { AlphaLinux::TGT_O_WRONLY, _O_WRONLY }, diff --git a/src/arch/alpha/tru64/tru64.hh b/src/arch/alpha/tru64/tru64.hh --- a/src/arch/alpha/tru64/tru64.hh +++ b/src/arch/alpha/tru64/tru64.hh @@ -38,7 +38,7 @@ public: /// This table maps the target open() flags to the corresponding /// host open() flags. - static OpenFlagTransTable openFlagTable[]; + static SyscallFlagTransTable openFlagTable[]; /// Number of entries in openFlagTable[]. static const int NUM_OPEN_FLAGS; diff --git a/src/arch/alpha/tru64/tru64.cc b/src/arch/alpha/tru64/tru64.cc --- a/src/arch/alpha/tru64/tru64.cc +++ b/src/arch/alpha/tru64/tru64.cc @@ -31,7 +31,7 @@ #include "arch/alpha/tru64/tru64.hh" // open(2) flags translation table -OpenFlagTransTable AlphaTru64::openFlagTable[] = { +SyscallFlagTransTable AlphaTru64::openFlagTable[] = { #ifdef _MSC_VER { AlphaTru64::TGT_O_RDONLY, _O_RDONLY }, { AlphaTru64::TGT_O_WRONLY, _O_WRONLY }, diff --git a/src/arch/arm/freebsd/freebsd.hh b/src/arch/arm/freebsd/freebsd.hh --- a/src/arch/arm/freebsd/freebsd.hh +++ b/src/arch/arm/freebsd/freebsd.hh @@ -41,7 +41,7 @@ /// This table maps the target open() flags to the corresponding /// host open() flags. - static OpenFlagTransTable openFlagTable[]; + static SyscallFlagTransTable openFlagTable[]; /// Number of entries in openFlagTable[]. static const int NUM_OPEN_FLAGS; @@ -196,7 +196,7 @@ /// This table maps the target open() flags to the corresponding /// host open() flags. - static OpenFlagTransTable openFlagTable[]; + static SyscallFlagTransTable openFlagTable[]; /// Number of entries in openFlagTable[]. static const int NUM_OPEN_FLAGS; diff --git a/src/arch/arm/freebsd/freebsd.cc b/src/arch/arm/freebsd/freebsd.cc --- a/src/arch/arm/freebsd/freebsd.cc +++ b/src/arch/arm/freebsd/freebsd.cc @@ -35,7 +35,7 @@ #include // open(2) flags translation table -OpenFlagTransTable ArmFreebsd32::openFlagTable[] = { +SyscallFlagTransTable ArmFreebsd32::openFlagTable[] = { { ArmFreebsd32::TGT_O_RDONLY, O_RDONLY }, { ArmFreebsd32::TGT_O_WRONLY, O_WRONLY }, { ArmFreebsd32::TGT_O_RDWR, O_RDWR }, @@ -58,7 +58,7 @@ sizeof(ArmFreebsd32::openFlagTable[0]); // open(2) flags translation table -OpenFlagTransTable ArmFreebsd64::openFlagTable[] = { +SyscallFlagTransTable ArmFreebsd64::openFlagTable[] = { { ArmFreebsd64::TGT_O_RDONLY, O_RDONLY }, { ArmFreebsd64::TGT_O_WRONLY, O_WRONLY }, { ArmFreebsd64::TGT_O_RDWR, O_RDWR },