gem5  v20.1.0.0
Classes | Public Types | Static Public Attributes | List of all members
ArmFreebsd64 Class Reference

#include <freebsd.hh>

Inheritance diagram for ArmFreebsd64:
ArmFreebsd FreeBSD OperatingSystem

Classes

struct  rlimit
 Limit struct for getrlimit/setrlimit. More...
 
struct  rusage
 For getrusage(). More...
 
struct  tgt_iovec
 
struct  tgt_stat
 
struct  tgt_stat64
 
struct  timeval
 For gettimeofday(). More...
 
struct  tms
 For times(). More...
 

Public Types

enum  rlimit_resources {
  TGT_RLIMIT_CPU = 0, TGT_RLIMIT_FSIZE = 1, TGT_RLIMIT_DATA = 2, TGT_RLIMIT_STACK = 3,
  TGT_RLIMIT_CORE = 4, TGT_RLIMIT_RSS = 5, TGT_RLIMIT_MEMLOCK = 6, TGT_RLIMIT_NPROC = 7,
  TGT_RLIMIT_NOFILE = 8, TGT_RLIMIT_SBSIZE = 9, TGT_RLIMIT_VMEM = 10, TGT_RLIMIT_AS = TGT_RLIMIT_VMEM,
  TGT_RLIMIT_NPTS = 11, TGT_RLIMIT_SWAP = 12, TGT_RLIMIT_KQUEUES = 13
}
 Resource enumeration for getrlimit(). More...
 
typedef uint64_t size_t
 Basic ARM FreeBSD types. More...
 
typedef uint64_t off_t
 
typedef int64_t time_t
 
typedef int64_t clock_t
 
- Public Types inherited from FreeBSD
typedef uint64_t size_t
 Basic FreeBSD types. More...
 
typedef uint64_t off_t
 
typedef int64_t time_t
 
typedef int64_t clock_t
 
typedef uint32_t uid_t
 
typedef uint32_t gid_t
 
- Public Types inherited from OperatingSystem
typedef void tgt_stat
 Stat buffer. More...
 
typedef void tgt_stat64
 

Static Public Attributes

static SyscallFlagTransTable openFlagTable []
 This table maps the target open() flags to the corresponding host open() flags. More...
 
static const int NUM_OPEN_FLAGS
 Number of entries in openFlagTable[]. More...
 
static const int TGT_O_RDONLY = 0x00000000
 open(2) flag values. More...
 
static const int TGT_O_WRONLY = 0x00000001
 O_WRONLY. More...
 
static const int TGT_O_RDWR = 0x00000002
 O_RDWR. More...
 
static const int TGT_O_CREAT = 0x00000200
 O_CREAT. More...
 
static const int TGT_O_EXCL = 0x00000800
 O_EXCL. More...
 
static const int TGT_O_NOCTTY = 0x00008000
 O_NOCTTY. More...
 
static const int TGT_O_TRUNC = 0x00000400
 O_TRUNC. More...
 
static const int TGT_O_APPEND = 0x00000008
 O_APPEND. More...
 
static const int TGT_O_NONBLOCK = 0x00000004
 O_NONBLOCK. More...
 
static const int TGT_O_SYNC = 0x00000080
 O_SYNC. More...
 
static const int TGT_FASYNC = 0x00000040
 FASYNC. More...
 
static const int TGT_O_DIRECT = 0x00010000
 O_DIRECT. More...
 
static const int TGT_O_DIRECTORY = 0x00020000
 O_DIRECTORY. More...
 
static const int TGT_O_NOFOLLOW = 0x00000100
 O_NOFOLLOW. More...
 
static const int TGT_O_CLOEXEC = 0x00100000
 O_CLOEXEC. More...
 
static const unsigned TGT_MAP_SHARED = 0x0001
 For mmap(). More...
 
static const unsigned TGT_MAP_PRIVATE = 0x0002
 
static const unsigned TGT_MAP_ANONYMOUS = 0x1000
 
static const unsigned TGT_MAP_FIXED = 0x0010
 
static const int TGT_RUSAGE_SELF = 0
 For getrusage(). More...
 
static const int TGT_RUSAGE_CHILDREN = -1
 
static const int TGT_RUSAGE_THREAD = 1
 
- Static Public Attributes inherited from ArmFreebsd
static const ByteOrder byteOrder = ByteOrder::little
 
- Static Public Attributes inherited from FreeBSD
static const int M5_SC_CLK_TCK = 100
 Clock ticks per second, for times(). More...
 
static const unsigned TGT_TIOCGETA = 0x402c7413
 ioctl() command codes. More...
 
static const unsigned TGT_TIOCSETA = 0x802c7414
 
static const unsigned TGT_TIOCSETAW = 0x802c7415
 
static const unsigned TGT_FIONREAD = 0x4004667f
 
static const unsigned TGT_RLIMIT_CPU = 0
 Resource constants for getrlimit(). More...
 
static const unsigned TGT_RLIMIT_FSIZE = 1
 
static const unsigned TGT_RLIMIT_DATA = 2
 
static const unsigned TGT_RLIMIT_STACK = 3
 
static const unsigned TGT_RLIMIT_CORE = 4
 
static const unsigned TGT_RLIMIT_RSS = 5
 
static const unsigned TGT_RLIMIT_MEMLOCK = 6
 
static const unsigned TGT_RLIMIT_NPROC = 7
 
static const unsigned TGT_RLIMIT_NOFILE = 8
 
static const unsigned TGT_RLIMIT_SBSIZE = 9
 
static const unsigned TGT_RLIMIT_VMEM = 10
 
static const unsigned TGT_RLIMIT_AS = TGT_RLIMIT_VMEM
 
static const unsigned TGT_RLIMIT_NPTS = 11
 
static const unsigned TGT_RLIMIT_SWAP = 12
 
static const unsigned TGT_RLIMIT_KQUEUES = 13
 
static const int TGT_RUSAGE_SELF = 0
 For getrusage(). More...
 
static const int TGT_RUSAGE_CHILDREN = -1
 
static const int TGT_RUSAGE_THREAD = 1
 
static const int TGT_AT_FDCWD = -100
 
- Static Public Attributes inherited from OperatingSystem
static const int _SYS_NMLN = 65
 Length of strings in struct utsname (plus 1 for null char). More...
 

Additional Inherited Members

- Static Public Member Functions inherited from FreeBSD
static bool isTtyReq (unsigned req)
 Return true for the ioctl codes for which we return ENOTTY without printing a warning, since we know that ENOTTY is the correct thing to return (and not just a sign that we don't recognize the ioctl code. More...
 
- Static Public Member Functions inherited from OperatingSystem
static int openSpecialFile (std::string path, Process *process, ThreadContext *tc)
 

Detailed Description

Definition at line 200 of file freebsd.hh.

Member Typedef Documentation

◆ clock_t

typedef int64_t ArmFreebsd64::clock_t

Definition at line 216 of file freebsd.hh.

◆ off_t

typedef uint64_t ArmFreebsd64::off_t

Definition at line 214 of file freebsd.hh.

◆ size_t

typedef uint64_t ArmFreebsd64::size_t

Basic ARM FreeBSD types.

Definition at line 213 of file freebsd.hh.

◆ time_t

typedef int64_t ArmFreebsd64::time_t

Definition at line 215 of file freebsd.hh.

Member Enumeration Documentation

◆ rlimit_resources

Resource enumeration for getrlimit().

Enumerator
TGT_RLIMIT_CPU 
TGT_RLIMIT_FSIZE 
TGT_RLIMIT_DATA 
TGT_RLIMIT_STACK 
TGT_RLIMIT_CORE 
TGT_RLIMIT_RSS 
TGT_RLIMIT_MEMLOCK 
TGT_RLIMIT_NPROC 
TGT_RLIMIT_NOFILE 
TGT_RLIMIT_SBSIZE 
TGT_RLIMIT_VMEM 
TGT_RLIMIT_AS 
TGT_RLIMIT_NPTS 
TGT_RLIMIT_SWAP 
TGT_RLIMIT_KQUEUES 

Definition at line 252 of file freebsd.hh.

Member Data Documentation

◆ NUM_OPEN_FLAGS

const int ArmFreebsd64::NUM_OPEN_FLAGS
static
Initial value:

Number of entries in openFlagTable[].

Definition at line 209 of file freebsd.hh.

◆ openFlagTable

SyscallFlagTransTable ArmFreebsd64::openFlagTable
static
Initial value:

This table maps the target open() flags to the corresponding host open() flags.

Definition at line 206 of file freebsd.hh.

◆ TGT_FASYNC

const int ArmFreebsd64::TGT_FASYNC = 0x00000040
static

FASYNC.

Definition at line 231 of file freebsd.hh.

◆ TGT_MAP_ANONYMOUS

const unsigned ArmFreebsd64::TGT_MAP_ANONYMOUS = 0x1000
static

Definition at line 241 of file freebsd.hh.

◆ TGT_MAP_FIXED

const unsigned ArmFreebsd64::TGT_MAP_FIXED = 0x0010
static

Definition at line 242 of file freebsd.hh.

◆ TGT_MAP_PRIVATE

const unsigned ArmFreebsd64::TGT_MAP_PRIVATE = 0x0002
static

Definition at line 240 of file freebsd.hh.

◆ TGT_MAP_SHARED

const unsigned ArmFreebsd64::TGT_MAP_SHARED = 0x0001
static

For mmap().

Definition at line 239 of file freebsd.hh.

◆ TGT_O_APPEND

const int ArmFreebsd64::TGT_O_APPEND = 0x00000008
static

O_APPEND.

Definition at line 228 of file freebsd.hh.

◆ TGT_O_CLOEXEC

const int ArmFreebsd64::TGT_O_CLOEXEC = 0x00100000
static

O_CLOEXEC.

Definition at line 235 of file freebsd.hh.

◆ TGT_O_CREAT

const int ArmFreebsd64::TGT_O_CREAT = 0x00000200
static

O_CREAT.

Definition at line 224 of file freebsd.hh.

◆ TGT_O_DIRECT

const int ArmFreebsd64::TGT_O_DIRECT = 0x00010000
static

O_DIRECT.

Definition at line 232 of file freebsd.hh.

◆ TGT_O_DIRECTORY

const int ArmFreebsd64::TGT_O_DIRECTORY = 0x00020000
static

O_DIRECTORY.

Definition at line 233 of file freebsd.hh.

◆ TGT_O_EXCL

const int ArmFreebsd64::TGT_O_EXCL = 0x00000800
static

O_EXCL.

Definition at line 225 of file freebsd.hh.

◆ TGT_O_NOCTTY

const int ArmFreebsd64::TGT_O_NOCTTY = 0x00008000
static

O_NOCTTY.

Definition at line 226 of file freebsd.hh.

◆ TGT_O_NOFOLLOW

const int ArmFreebsd64::TGT_O_NOFOLLOW = 0x00000100
static

O_NOFOLLOW.

Definition at line 234 of file freebsd.hh.

◆ TGT_O_NONBLOCK

const int ArmFreebsd64::TGT_O_NONBLOCK = 0x00000004
static

O_NONBLOCK.

Definition at line 229 of file freebsd.hh.

◆ TGT_O_RDONLY

const int ArmFreebsd64::TGT_O_RDONLY = 0x00000000
static

open(2) flag values.

O_RDONLY

Definition at line 221 of file freebsd.hh.

◆ TGT_O_RDWR

const int ArmFreebsd64::TGT_O_RDWR = 0x00000002
static

O_RDWR.

Definition at line 223 of file freebsd.hh.

◆ TGT_O_SYNC

const int ArmFreebsd64::TGT_O_SYNC = 0x00000080
static

O_SYNC.

Definition at line 230 of file freebsd.hh.

◆ TGT_O_TRUNC

const int ArmFreebsd64::TGT_O_TRUNC = 0x00000400
static

O_TRUNC.

Definition at line 227 of file freebsd.hh.

◆ TGT_O_WRONLY

const int ArmFreebsd64::TGT_O_WRONLY = 0x00000001
static

O_WRONLY.

Definition at line 222 of file freebsd.hh.

◆ TGT_RUSAGE_CHILDREN

const int ArmFreebsd64::TGT_RUSAGE_CHILDREN = -1
static

Definition at line 247 of file freebsd.hh.

◆ TGT_RUSAGE_SELF

const int ArmFreebsd64::TGT_RUSAGE_SELF = 0
static

For getrusage().

Definition at line 246 of file freebsd.hh.

◆ TGT_RUSAGE_THREAD

const int ArmFreebsd64::TGT_RUSAGE_THREAD = 1
static

Definition at line 248 of file freebsd.hh.


The documentation for this class was generated from the following files:
ArmFreebsd64::TGT_O_APPEND
static const int TGT_O_APPEND
O_APPEND.
Definition: freebsd.hh:228
ArmFreebsd64::TGT_O_NOFOLLOW
static const int TGT_O_NOFOLLOW
O_NOFOLLOW.
Definition: freebsd.hh:234
ArmFreebsd64::TGT_O_DIRECTORY
static const int TGT_O_DIRECTORY
O_DIRECTORY.
Definition: freebsd.hh:233
ArmFreebsd64::TGT_O_CREAT
static const int TGT_O_CREAT
O_CREAT.
Definition: freebsd.hh:224
ArmFreebsd64::openFlagTable
static SyscallFlagTransTable openFlagTable[]
This table maps the target open() flags to the corresponding host open() flags.
Definition: freebsd.hh:206
ArmFreebsd64::TGT_O_RDWR
static const int TGT_O_RDWR
O_RDWR.
Definition: freebsd.hh:223
ArmFreebsd64::TGT_O_TRUNC
static const int TGT_O_TRUNC
O_TRUNC.
Definition: freebsd.hh:227
ArmFreebsd64::TGT_FASYNC
static const int TGT_FASYNC
FASYNC.
Definition: freebsd.hh:231
ArmFreebsd64::TGT_O_NOCTTY
static const int TGT_O_NOCTTY
O_NOCTTY.
Definition: freebsd.hh:226
ArmFreebsd64::TGT_O_SYNC
static const int TGT_O_SYNC
O_SYNC.
Definition: freebsd.hh:230
ArmFreebsd64::TGT_O_WRONLY
static const int TGT_O_WRONLY
O_WRONLY.
Definition: freebsd.hh:222
ArmFreebsd64::TGT_O_NONBLOCK
static const int TGT_O_NONBLOCK
O_NONBLOCK.
Definition: freebsd.hh:229
ArmFreebsd64::TGT_O_RDONLY
static const int TGT_O_RDONLY
open(2) flag values.
Definition: freebsd.hh:221
ArmFreebsd64::TGT_O_EXCL
static const int TGT_O_EXCL
O_EXCL.
Definition: freebsd.hh:225

Generated on Wed Sep 30 2020 14:02:20 for gem5 by doxygen 1.8.17