linux.hh (7087:fb8d5786ff30) linux.hh (8600:b0d7c64ada19)
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
3 * All rights reserved.
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

83// static const int TGT_O_DIRECTIO = 0x00020000; //!< O_DIRECTIO
84// static const int TGT_O_CACHE = 0x00002000; //!< O_CACHE
85// static const int TGT_O_DSYNC = 0x00008000; //!< O_DSYNC
86// static const int TGT_O_RSYNC = 0x00040000; //!< O_RSYNC
87
88 static const int NUM_OPEN_FLAGS;
89
90 static const unsigned TGT_MAP_ANONYMOUS = 0x20;
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
3 * All rights reserved.
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

83// static const int TGT_O_DIRECTIO = 0x00020000; //!< O_DIRECTIO
84// static const int TGT_O_CACHE = 0x00002000; //!< O_CACHE
85// static const int TGT_O_DSYNC = 0x00008000; //!< O_DSYNC
86// static const int TGT_O_RSYNC = 0x00040000; //!< O_RSYNC
87
88 static const int NUM_OPEN_FLAGS;
89
90 static const unsigned TGT_MAP_ANONYMOUS = 0x20;
91 static const unsigned TGT_MAP_FIXED = 0x10;
91
92 typedef struct {
93 uint64_t iov_base; // void *
94 uint64_t iov_len; // size_t
95 } tgt_iovec;
96
97 typedef struct {
98 int64_t uptime; /* Seconds since boot */

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

153// static const int TGT_O_DIRECTIO = 0x00020000; //!< O_DIRECTIO
154// static const int TGT_O_CACHE = 0x00002000; //!< O_CACHE
155// static const int TGT_O_DSYNC = 0x00008000; //!< O_DSYNC
156// static const int TGT_O_RSYNC = 0x00040000; //!< O_RSYNC
157
158 static const int NUM_OPEN_FLAGS;
159
160 static const unsigned TGT_MAP_ANONYMOUS = 0x20;
92
93 typedef struct {
94 uint64_t iov_base; // void *
95 uint64_t iov_len; // size_t
96 } tgt_iovec;
97
98 typedef struct {
99 int64_t uptime; /* Seconds since boot */

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

154// static const int TGT_O_DIRECTIO = 0x00020000; //!< O_DIRECTIO
155// static const int TGT_O_CACHE = 0x00002000; //!< O_CACHE
156// static const int TGT_O_DSYNC = 0x00008000; //!< O_DSYNC
157// static const int TGT_O_RSYNC = 0x00040000; //!< O_RSYNC
158
159 static const int NUM_OPEN_FLAGS;
160
161 static const unsigned TGT_MAP_ANONYMOUS = 0x20;
162 static const unsigned TGT_MAP_FIXED = 0x10;
161
162 typedef struct {
163 int32_t uptime; /* Seconds since boot */
164 uint32_t loads[3]; /* 1, 5, and 15 minute load averages */
165 uint32_t totalram; /* Total usable main memory size */
166 uint32_t freeram; /* Available memory size */
167 uint32_t sharedram; /* Amount of shared memory */
168 uint32_t bufferram; /* Memory used by buffers */

--- 12 unchanged lines hidden ---
163
164 typedef struct {
165 int32_t uptime; /* Seconds since boot */
166 uint32_t loads[3]; /* 1, 5, and 15 minute load averages */
167 uint32_t totalram; /* Total usable main memory size */
168 uint32_t freeram; /* Available memory size */
169 uint32_t sharedram; /* Amount of shared memory */
170 uint32_t bufferram; /* Memory used by buffers */

--- 12 unchanged lines hidden ---