linux.hh (9146:a61fdbbc1d45) | linux.hh (11320:42ecb523c64a) |
---|---|
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; --- 64 unchanged lines hidden (view full) --- 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 static const unsigned TGT_MAP_FIXED = 0x10; | 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; --- 64 unchanged lines hidden (view full) --- 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 static const unsigned TGT_MAP_FIXED = 0x10; |
81 82 typedef struct { | 81 82 typedef struct { |
83 int64_t uptime; /* Seconds since boot */ 84 uint64_t loads[3]; /* 1, 5, and 15 minute load averages */ 85 uint64_t totalram; /* Total usable main memory size */ 86 uint64_t freeram; /* Available memory size */ 87 uint64_t sharedram; /* Amount of shared memory */ 88 uint64_t bufferram; /* Memory used by buffers */ 89 uint64_t totalswap; /* Total swap space size */ 90 uint64_t freeswap; /* swap space still available */ --- 55 unchanged lines hidden (view full) --- 146 uint64_t st_atime_nsec; 147 uint64_t st_mtimeX; 148 uint64_t st_mtime_nsec; 149 uint64_t st_ctimeX; 150 uint64_t st_ctime_nsec; 151 uint32_t __unused4; 152 uint32_t __unused5; 153 } tgt_stat64; | 83 int64_t uptime; /* Seconds since boot */ 84 uint64_t loads[3]; /* 1, 5, and 15 minute load averages */ 85 uint64_t totalram; /* Total usable main memory size */ 86 uint64_t freeram; /* Available memory size */ 87 uint64_t sharedram; /* Amount of shared memory */ 88 uint64_t bufferram; /* Memory used by buffers */ 89 uint64_t totalswap; /* Total swap space size */ 90 uint64_t freeswap; /* swap space still available */ --- 55 unchanged lines hidden (view full) --- 146 uint64_t st_atime_nsec; 147 uint64_t st_mtimeX; 148 uint64_t st_mtime_nsec; 149 uint64_t st_ctimeX; 150 uint64_t st_ctime_nsec; 151 uint32_t __unused4; 152 uint32_t __unused5; 153 } tgt_stat64; |
154 | 154 |
155 typedef struct { 156 int32_t uptime; /* Seconds since boot */ 157 uint32_t loads[3]; /* 1, 5, and 15 minute load averages */ 158 uint32_t totalram; /* Total usable main memory size */ 159 uint32_t freeram; /* Available memory size */ 160 uint32_t sharedram; /* Amount of shared memory */ 161 uint32_t bufferram; /* Memory used by buffers */ 162 uint32_t totalswap; /* Total swap space size */ 163 uint32_t freeswap; /* swap space still available */ 164 uint16_t procs; /* Number of current processes */ 165 uint32_t totalhigh; /* Total high memory size */ 166 uint32_t freehigh; /* Available high memory size */ 167 uint32_t mem_unit; /* Memory unit size in bytes */ | 155 typedef struct { 156 int32_t uptime; /* Seconds since boot */ 157 uint32_t loads[3]; /* 1, 5, and 15 minute load averages */ 158 uint32_t totalram; /* Total usable main memory size */ 159 uint32_t freeram; /* Available memory size */ 160 uint32_t sharedram; /* Amount of shared memory */ 161 uint32_t bufferram; /* Memory used by buffers */ 162 uint32_t totalswap; /* Total swap space size */ 163 uint32_t freeswap; /* swap space still available */ 164 uint16_t procs; /* Number of current processes */ 165 uint32_t totalhigh; /* Total high memory size */ 166 uint32_t freehigh; /* Available high memory size */ 167 uint32_t mem_unit; /* Memory unit size in bytes */ |
168 } tgt_sysinfo; | 168 } tgt_sysinfo; |
169 170 /// Resource constants for getrlimit() (overide some generics). 171 static const unsigned TGT_RLIMIT_NPROC = 7; 172 static const unsigned TGT_RLIMIT_NOFILE = 6; 173}; 174 175#endif | 169 170 /// Resource constants for getrlimit() (overide some generics). 171 static const unsigned TGT_RLIMIT_NPROC = 7; 172 static const unsigned TGT_RLIMIT_NOFILE = 6; 173}; 174 175#endif |