gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
solaris.hh
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2003-2005 The Regents of The University of Michigan
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are
7  * met: redistributions of source code must retain the above copyright
8  * notice, this list of conditions and the following disclaimer;
9  * redistributions in binary form must reproduce the above copyright
10  * notice, this list of conditions and the following disclaimer in the
11  * documentation and/or other materials provided with the distribution;
12  * neither the name of the copyright holders nor the names of its
13  * contributors may be used to endorse or promote products derived from
14  * this software without specific prior written permission.
15  *
16  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27  *
28  * Authors: Ali Saidi
29  */
30 
31 #ifndef __ARCH_SPARC_SOLARIS_SOLARIS_HH__
32 #define __ARCH_SPARC_SOLARIS_SOLARIS_HH__
33 
34 #include "kern/solaris/solaris.hh"
35 
36 class SparcSolaris : public Solaris
37 {
38  public:
39 
41 
42  static const int TGT_O_RDONLY = 0x00000000;
43  static const int TGT_O_WRONLY = 0x00000001;
44  static const int TGT_O_RDWR = 0x00000002;
45  static const int TGT_O_NDELAY = 0x00000004;
46  static const int TGT_O_APPEND = 0x00000008;
47  static const int TGT_O_SYNC = 0x00000010;
48  static const int TGT_O_DSYNC = 0x00000040;
49  static const int TGT_O_RSYNC = 0x00008000;
50  static const int TGT_O_NONBLOCK = 0x00000080;
51  static const int TGT_O_PRIV = 0x00001000; //??
52  static const int TGT_O_LARGEFILE = 0x00002000; //??
53  static const int TGT_O_CREAT = 0x00000100;
54  static const int TGT_O_TRUNC = 0x00000200;
55  static const int TGT_O_EXCL = 0x00000400;
56  static const int TGT_O_NOCTTY = 0x00000800;
57  static const int TGT_O_XATTR = 0x00004000; //??
58 
59  static const int NUM_OPEN_FLAGS;
60 
63 
64  static const unsigned TGT_MAP_SHARED = 0x00001;
65  static const unsigned TGT_MAP_PRIVATE = 0x00002;
66  static const unsigned TGT_MAP_32BIT = 0x00040;
67  static const unsigned TGT_MAP_ANON = 0x00020;
68  static const unsigned TGT_MAP_DENYWRITE = 0x00800;
69  static const unsigned TGT_MAP_EXECUTABLE = 0x01000;
70  static const unsigned TGT_MAP_FILE = 0x00000;
71  static const unsigned TGT_MAP_GROWSDOWN = 0x00100;
72  static const unsigned TGT_MAP_HUGETLB = 0x40000;
73  static const unsigned TGT_MAP_LOCKED = 0x02000;
74  static const unsigned TGT_MAP_NONBLOCK = 0x10000;
75  static const unsigned TGT_MAP_NORESERVE = 0x04000;
76  static const unsigned TGT_MAP_POPULATE = 0x08000;
77  static const unsigned TGT_MAP_STACK = 0x20000;
78  static const unsigned TGT_MAP_ANONYMOUS = 0x00020;
79  static const unsigned TGT_MAP_FIXED = 0x00010;
80 
81  static const unsigned NUM_MMAP_FLAGS;
82 };
83 
84 #endif
static const int TGT_O_NOCTTY
O_NOCTTY.
Definition: solaris.hh:56
static const int TGT_O_RDONLY
O_RDONLY.
Definition: solaris.hh:42
static const unsigned TGT_MAP_FIXED
Definition: solaris.hh:79
static const unsigned TGT_MAP_ANON
Definition: solaris.hh:67
static const int TGT_O_XATTR
Definition: solaris.hh:57
static const int TGT_O_NDELAY
O_NONBLOCK.
Definition: solaris.hh:45
static SyscallFlagTransTable openFlagTable[]
Definition: solaris.hh:40
static const unsigned TGT_MAP_GROWSDOWN
Definition: solaris.hh:71
static const unsigned TGT_MAP_PRIVATE
Definition: solaris.hh:65
static const int TGT_O_RDWR
O_RDWR.
Definition: solaris.hh:44
static const unsigned TGT_MAP_EXECUTABLE
Definition: solaris.hh:69
static const int TGT_O_PRIV
Definition: solaris.hh:51
static const int TGT_O_CREAT
O_CREAT.
Definition: solaris.hh:53
static const int TGT_O_TRUNC
O_TRUNC.
Definition: solaris.hh:54
static const unsigned TGT_MAP_LOCKED
Definition: solaris.hh:73
static const unsigned TGT_MAP_SHARED
Definition: solaris.hh:64
static const int TGT_O_WRONLY
O_WRONLY.
Definition: solaris.hh:43
static const int NUM_OPEN_FLAGS
Definition: solaris.hh:59
static const unsigned TGT_MAP_HUGETLB
Definition: solaris.hh:72
static const unsigned NUM_MMAP_FLAGS
Definition: solaris.hh:81
static const unsigned TGT_MAP_32BIT
Definition: solaris.hh:66
static const unsigned TGT_MAP_ANONYMOUS
Definition: solaris.hh:78
static const unsigned TGT_MAP_NORESERVE
Definition: solaris.hh:75
This struct is used to build target-OS-dependent tables that map the target's flags to the host's fla...
static const unsigned TGT_MAP_POPULATE
Definition: solaris.hh:76
static const int TGT_O_DSYNC
O_SYNC.
Definition: solaris.hh:48
static const int TGT_O_APPEND
O_APPEND.
Definition: solaris.hh:46
static const int TGT_O_SYNC
O_SYNC.
Definition: solaris.hh:47
static const unsigned TGT_MAP_DENYWRITE
Definition: solaris.hh:68
static const int TGT_O_LARGEFILE
Definition: solaris.hh:52
static const int TGT_O_EXCL
O_EXCL.
Definition: solaris.hh:55
static const int TGT_O_RSYNC
O_SYNC.
Definition: solaris.hh:49
static const int TGT_O_NONBLOCK
O_NONBLOCK.
Definition: solaris.hh:50
static const unsigned TGT_MAP_STACK
Definition: solaris.hh:77
static SyscallFlagTransTable mmapFlagTable[]
For mmap().
Definition: solaris.hh:62
static const unsigned TGT_MAP_FILE
Definition: solaris.hh:70
static const unsigned TGT_MAP_NONBLOCK
Definition: solaris.hh:74
This class encapsulates the types, structures, constants, functions, and syscall-number mappings spec...
Definition: solaris.hh:42

Generated on Fri Jun 9 2017 13:03:40 for gem5 by doxygen 1.8.6