#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 },
/// 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;
#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 },
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;
#include <fcntl.h>
// 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 },
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 },
/// 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;
/// 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;
#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 },
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 },
/// 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;
/// 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;
#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 },
/// 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;
#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 },
/// 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;
#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 },
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
#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 },
{
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
#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 },
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 },
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
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
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.
};