linux.hh (11382:654272b82e94) | linux.hh (11383:5ac090acd180) |
---|---|
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; --- 104 unchanged lines hidden (view full) --- 113 static const int TGT_O_CLOEXEC = 0x00400000; //!< O_CLOEXEC 114 static const int TGT_O_PATH = 0x01000000; //!< O_PATH 115 116 static const int TGT_O_DIRECTORY = 000200000; //!< O_DIRECTORY 117 static const int TGT_O_NOFOLLOW = 000400000; //!< O_NOFOLLOW 118 119 static const int NUM_OPEN_FLAGS; 120 | 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; --- 104 unchanged lines hidden (view full) --- 113 static const int TGT_O_CLOEXEC = 0x00400000; //!< O_CLOEXEC 114 static const int TGT_O_PATH = 0x01000000; //!< O_PATH 115 116 static const int TGT_O_DIRECTORY = 000200000; //!< O_DIRECTORY 117 static const int TGT_O_NOFOLLOW = 000400000; //!< O_NOFOLLOW 118 119 static const int NUM_OPEN_FLAGS; 120 |
121 static const unsigned TGT_MAP_ANONYMOUS = 0x20; 122 static const unsigned TGT_MAP_FIXED = 0x10; | 121 /// For mmap(). 122 static SyscallFlagTransTable mmapFlagTable[]; |
123 | 123 |
124 static const unsigned TGT_MAP_SHARED = 0x00001; 125 static const unsigned TGT_MAP_PRIVATE = 0x00002; 126 static const unsigned TGT_MAP_ANON = 0x00020; 127 static const unsigned TGT_MAP_DENYWRITE = 0x00800; 128 static const unsigned TGT_MAP_EXECUTABLE = 0x01000; 129 static const unsigned TGT_MAP_FILE = 0x00000; 130 static const unsigned TGT_MAP_GROWSDOWN = 0x00200; 131 static const unsigned TGT_MAP_HUGETLB = 0x40000; 132 static const unsigned TGT_MAP_LOCKED = 0x00100; 133 static const unsigned TGT_MAP_NONBLOCK = 0x10000; 134 static const unsigned TGT_MAP_NORESERVE = 0x00040; 135 static const unsigned TGT_MAP_POPULATE = 0x08000; 136 static const unsigned TGT_MAP_STACK = 0x20000; 137 static const unsigned TGT_MAP_ANONYMOUS = 0x00020; 138 static const unsigned TGT_MAP_FIXED = 0x00010; 139 static const unsigned TGT_MAP_INHERIT = 0x00080; 140 141 static const unsigned NUM_MMAP_FLAGS; 142 |
|
124 typedef struct { 125 int64_t uptime; /* Seconds since boot */ 126 uint64_t loads[3]; /* 1, 5, and 15 minute load averages */ 127 uint64_t totalram; /* Total usable main memory size */ 128 uint64_t freeram; /* Available memory size */ 129 uint64_t sharedram; /* Amount of shared memory */ 130 uint64_t bufferram; /* Memory used by buffers */ 131 uint64_t totalswap; /* Total swap space size */ --- 86 unchanged lines hidden --- | 143 typedef struct { 144 int64_t uptime; /* Seconds since boot */ 145 uint64_t loads[3]; /* 1, 5, and 15 minute load averages */ 146 uint64_t totalram; /* Total usable main memory size */ 147 uint64_t freeram; /* Available memory size */ 148 uint64_t sharedram; /* Amount of shared memory */ 149 uint64_t bufferram; /* Memory used by buffers */ 150 uint64_t totalswap; /* Total swap space size */ --- 86 unchanged lines hidden --- |