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; --- 113 unchanged lines hidden (view full) --- 122 /// For table(). 123 static const int TBL_SYSINFO = 12; 124 125 /// Resource constants for getrlimit() (overide some generics). 126 static const unsigned TGT_RLIMIT_NPROC = 8; 127 static const unsigned TGT_RLIMIT_AS = 7; 128 static const unsigned TGT_RLIMIT_NOFILE = 6; 129 static const unsigned TGT_RLIMIT_MEMLOCK = 9; | 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; --- 113 unchanged lines hidden (view full) --- 122 /// For table(). 123 static const int TBL_SYSINFO = 12; 124 125 /// Resource constants for getrlimit() (overide some generics). 126 static const unsigned TGT_RLIMIT_NPROC = 8; 127 static const unsigned TGT_RLIMIT_AS = 7; 128 static const unsigned TGT_RLIMIT_NOFILE = 6; 129 static const unsigned TGT_RLIMIT_MEMLOCK = 9; |
130 | 130 |
131 typedef struct { 132 int64_t uptime; /* Seconds since boot */ 133 uint64_t loads[3]; /* 1, 5, and 15 minute load averages */ 134 uint64_t totalram; /* Total usable main memory size */ 135 uint64_t freeram; /* Available memory size */ 136 uint64_t sharedram; /* Amount of shared memory */ 137 uint64_t bufferram; /* Memory used by buffers */ 138 uint64_t totalswap; /* Total swap space size */ --- 13 unchanged lines hidden --- | 131 typedef struct { 132 int64_t uptime; /* Seconds since boot */ 133 uint64_t loads[3]; /* 1, 5, and 15 minute load averages */ 134 uint64_t totalram; /* Total usable main memory size */ 135 uint64_t freeram; /* Available memory size */ 136 uint64_t sharedram; /* Amount of shared memory */ 137 uint64_t bufferram; /* Memory used by buffers */ 138 uint64_t totalswap; /* Total swap space size */ --- 13 unchanged lines hidden --- |