linux.hh (5543:3af77710f397) linux.hh (6640:30d92d2b66a1)
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;

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

72// static const int TGT_O_DIRECTIO = 0x00020000; //!< O_DIRECTIO
73// static const int TGT_O_CACHE = 0x00002000; //!< O_CACHE
74// static const int TGT_O_DSYNC = 0x00008000; //!< O_DSYNC
75// static const int TGT_O_RSYNC = 0x00040000; //!< O_RSYNC
76
77 static const int NUM_OPEN_FLAGS;
78
79 static const unsigned TGT_MAP_ANONYMOUS = 0x20;
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;

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

72// static const int TGT_O_DIRECTIO = 0x00020000; //!< O_DIRECTIO
73// static const int TGT_O_CACHE = 0x00002000; //!< O_CACHE
74// static const int TGT_O_DSYNC = 0x00008000; //!< O_DSYNC
75// static const int TGT_O_RSYNC = 0x00040000; //!< O_RSYNC
76
77 static const int NUM_OPEN_FLAGS;
78
79 static const unsigned TGT_MAP_ANONYMOUS = 0x20;
80
81 typedef struct {
82 int64_t uptime; /* Seconds since boot */
83 uint64_t loads[3]; /* 1, 5, and 15 minute load averages */
84 uint64_t totalram; /* Total usable main memory size */
85 uint64_t freeram; /* Available memory size */
86 uint64_t sharedram; /* Amount of shared memory */
87 uint64_t bufferram; /* Memory used by buffers */
88 uint64_t totalswap; /* Total swap space size */
89 uint64_t freeswap; /* swap space still available */
90 uint16_t procs; /* Number of current processes */
91 uint64_t totalhigh; /* Total high memory size */
92 uint64_t freehigh; /* Available high memory size */
93 uint64_t mem_unit; /* Memory unit size in bytes */
94 } tgt_sysinfo;
95
80};
81
82class Sparc32Linux : public SparcLinux
83{
84 public:
85
86 typedef struct {
87 uint64_t st_dev;

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

100 uint64_t st_atime_nsec;
101 uint64_t st_mtimeX;
102 uint64_t st_mtime_nsec;
103 uint64_t st_ctimeX;
104 uint64_t st_ctime_nsec;
105 uint32_t __unused4;
106 uint32_t __unused5;
107 } tgt_stat64;
96};
97
98class Sparc32Linux : public SparcLinux
99{
100 public:
101
102 typedef struct {
103 uint64_t st_dev;

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

116 uint64_t st_atime_nsec;
117 uint64_t st_mtimeX;
118 uint64_t st_mtime_nsec;
119 uint64_t st_ctimeX;
120 uint64_t st_ctime_nsec;
121 uint32_t __unused4;
122 uint32_t __unused5;
123 } tgt_stat64;
124
125 typedef struct {
126 int32_t uptime; /* Seconds since boot */
127 uint32_t loads[3]; /* 1, 5, and 15 minute load averages */
128 uint32_t totalram; /* Total usable main memory size */
129 uint32_t freeram; /* Available memory size */
130 uint32_t sharedram; /* Amount of shared memory */
131 uint32_t bufferram; /* Memory used by buffers */
132 uint32_t totalswap; /* Total swap space size */
133 uint32_t freeswap; /* swap space still available */
134 uint16_t procs; /* Number of current processes */
135 uint32_t totalhigh; /* Total high memory size */
136 uint32_t freehigh; /* Available high memory size */
137 uint32_t mem_unit; /* Memory unit size in bytes */
138 } tgt_sysinfo;
139
108};
109
110#endif
140};
141
142#endif