Deleted Added
sdiff udiff text old ( 6689:67d980fcbc7a ) new ( 7416:e1a7a9f33a00 )
full compact
1/*
2 * Copyright (c) 2003-2005 The Regents of The University of Michigan
3 * Copyright (c) 2007-2008 The Florida State University
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer;

--- 11 unchanged lines hidden (view full) ---

21 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 *
29 * Authors: Stephen Hines
30 */
31
32#ifndef __ARCH_ARM_LINUX_LINUX_HH__
33#define __ARCH_ARM_LINUX_LINUX_HH__
34
35#include "kern/linux/linux.hh"
36
37class ArmLinux : public Linux
38{
39 public:
40
41 /// This table maps the target open() flags to the corresponding
42 /// host open() flags.
43 static OpenFlagTransTable openFlagTable[];
44
45 /// Number of entries in openFlagTable[].
46 static const int NUM_OPEN_FLAGS;
47
48 //@{
49 /// open(2) flag values.
50 static const int TGT_O_RDONLY = 00000000; //!< O_RDONLY
51 static const int TGT_O_WRONLY = 00000001; //!< O_WRONLY
52 static const int TGT_O_RDWR = 00000002; //!< O_RDWR
53 static const int TGT_O_CREAT = 00000100; //!< O_CREAT
54 static const int TGT_O_EXCL = 00000200; //!< O_EXCL
55 static const int TGT_O_NOCTTY = 00000400; //!< O_NOCTTY
56 static const int TGT_O_TRUNC = 00001000; //!< O_TRUNC

--- 45 unchanged lines hidden (view full) ---

102 TGT_RLIMIT_RSS = 5,
103 TGT_RLIMIT_NPROC = 6,
104 TGT_RLIMIT_NOFILE = 7,
105 TGT_RLIMIT_MEMLOCK = 8,
106 TGT_RLIMIT_AS = 9,
107 TGT_RLIMIT_LOCKS = 10
108 };
109
110 typedef struct {
111 uint32_t st_dev;
112 uint32_t st_ino;
113 uint16_t st_mode;
114 uint16_t st_nlink;
115 uint16_t st_uid;
116 uint16_t st_gid;
117 uint32_t st_rdev;

--- 40 unchanged lines hidden (view full) ---

158 uint32_t totalswap; /* Total swap space size */
159 uint32_t freeswap; /* swap space still available */
160 uint16_t procs; /* Number of current processes */
161 uint32_t totalhigh; /* Total high memory size */
162 uint32_t freehigh; /* Available high memory size */
163 uint32_t mem_unit; /* Memory unit size in bytes */
164 } tgt_sysinfo;
165
166
167};
168
169#endif