gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Static Public Member Functions | Static Public Attributes | List of all members
FreeBSD Class Reference

This class encapsulates the types, structures, constants, functions, and syscall-number mappings specific to the Alpha FreeBSD syscall interface. More...

#include <freebsd.hh>

Inheritance diagram for FreeBSD:
OperatingSystem ArmFreebsd32 ArmFreebsd64

Public Types

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 Member Functions

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)
 

Static Public Attributes

static const int M5_SC_CLK_TCK = 100
 Clock ticks per second, for times(). More...
 
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 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 Public Attributes inherited from OperatingSystem
static const int _SYS_NMLN = 65
 Length of strings in struct utsname (plus 1 for null char). More...
 

Detailed Description

This class encapsulates the types, structures, constants, functions, and syscall-number mappings specific to the Alpha FreeBSD syscall interface.

Definition at line 49 of file freebsd.hh.

Member Typedef Documentation

typedef int64_t FreeBSD::clock_t

Definition at line 59 of file freebsd.hh.

typedef uint32_t FreeBSD::gid_t

Definition at line 61 of file freebsd.hh.

typedef uint64_t FreeBSD::off_t

Definition at line 57 of file freebsd.hh.

typedef uint64_t FreeBSD::size_t

Basic FreeBSD types.

Definition at line 56 of file freebsd.hh.

typedef int64_t FreeBSD::time_t

Definition at line 58 of file freebsd.hh.

typedef uint32_t FreeBSD::uid_t

Definition at line 60 of file freebsd.hh.

Member Function Documentation

static bool FreeBSD::isTtyReq ( unsigned  req)
inlinestatic

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.

Definition at line 80 of file freebsd.hh.

References TGT_FIONREAD, TGT_TIOCGETA, TGT_TIOCSETA, and TGT_TIOCSETAW.

Member Data Documentation

const int FreeBSD::M5_SC_CLK_TCK = 100
static

Clock ticks per second, for times().

Definition at line 65 of file freebsd.hh.

const int FreeBSD::TGT_AT_FDCWD = -100
static

Definition at line 116 of file freebsd.hh.

const unsigned FreeBSD::TGT_FIONREAD = 0x4004667f
static

Definition at line 72 of file freebsd.hh.

Referenced by isTtyReq().

const unsigned FreeBSD::TGT_RLIMIT_AS = TGT_RLIMIT_VMEM
static

Definition at line 105 of file freebsd.hh.

const unsigned FreeBSD::TGT_RLIMIT_CORE = 4
static

Definition at line 98 of file freebsd.hh.

const unsigned FreeBSD::TGT_RLIMIT_CPU = 0
static

Resource constants for getrlimit().

Definition at line 94 of file freebsd.hh.

const unsigned FreeBSD::TGT_RLIMIT_DATA = 2
static

Definition at line 96 of file freebsd.hh.

const unsigned FreeBSD::TGT_RLIMIT_FSIZE = 1
static

Definition at line 95 of file freebsd.hh.

const unsigned FreeBSD::TGT_RLIMIT_KQUEUES = 13
static

Definition at line 108 of file freebsd.hh.

const unsigned FreeBSD::TGT_RLIMIT_MEMLOCK = 6
static

Definition at line 100 of file freebsd.hh.

const unsigned FreeBSD::TGT_RLIMIT_NOFILE = 8
static

Definition at line 102 of file freebsd.hh.

const unsigned FreeBSD::TGT_RLIMIT_NPROC = 7
static

Definition at line 101 of file freebsd.hh.

const unsigned FreeBSD::TGT_RLIMIT_NPTS = 11
static

Definition at line 106 of file freebsd.hh.

const unsigned FreeBSD::TGT_RLIMIT_RSS = 5
static

Definition at line 99 of file freebsd.hh.

const unsigned FreeBSD::TGT_RLIMIT_SBSIZE = 9
static

Definition at line 103 of file freebsd.hh.

const unsigned FreeBSD::TGT_RLIMIT_STACK = 3
static

Definition at line 97 of file freebsd.hh.

const unsigned FreeBSD::TGT_RLIMIT_SWAP = 12
static

Definition at line 107 of file freebsd.hh.

const unsigned FreeBSD::TGT_RLIMIT_VMEM = 10
static

Definition at line 104 of file freebsd.hh.

const int FreeBSD::TGT_RUSAGE_CHILDREN = -1
static

Definition at line 112 of file freebsd.hh.

const int FreeBSD::TGT_RUSAGE_SELF = 0
static

For getrusage().

Definition at line 111 of file freebsd.hh.

const int FreeBSD::TGT_RUSAGE_THREAD = 1
static

Definition at line 113 of file freebsd.hh.

const unsigned FreeBSD::TGT_TIOCGETA = 0x402c7413
static

ioctl() command codes.

Definition at line 69 of file freebsd.hh.

Referenced by isTtyReq().

const unsigned FreeBSD::TGT_TIOCSETA = 0x802c7414
static

Definition at line 70 of file freebsd.hh.

Referenced by isTtyReq().

const unsigned FreeBSD::TGT_TIOCSETAW = 0x802c7415
static

Definition at line 71 of file freebsd.hh.

Referenced by isTtyReq().


The documentation for this class was generated from the following file:

Generated on Fri Jun 9 2017 13:04:10 for gem5 by doxygen 1.8.6