linux.hh (9141:593fe25c86a6) | linux.hh (9146:a61fdbbc1d45) |
---|---|
1/* 2 * Copyright (c) 2004-2009 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; --- 160 unchanged lines hidden (view full) --- 169 case TGT_TCGETA: 170 return true; 171 default: 172 return false; 173 } 174 } 175 176 | 1/* 2 * Copyright (c) 2004-2009 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; --- 160 unchanged lines hidden (view full) --- 169 case TGT_TCGETA: 170 return true; 171 default: 172 return false; 173 } 174 } 175 176 |
177 /// Resource constants for getrlimit(). 178 static const unsigned TGT_RLIMIT_CPU = 0; 179 static const unsigned TGT_RLIMIT_FSIZE = 1; 180 static const unsigned TGT_RLIMIT_DATA = 2; 181 static const unsigned TGT_RLIMIT_STACK = 3; 182 static const unsigned TGT_RLIMIT_CORE = 4; 183 static const unsigned TGT_RLIMIT_RSS = 5; 184 static const unsigned TGT_RLIMIT_NPROC = 6; 185 static const unsigned TGT_RLIMIT_NOFILE = 7; 186 static const unsigned TGT_RLIMIT_MEMLOCK = 8; 187 static const unsigned TGT_RLIMIT_AS = 9; 188 static const unsigned TGT_RLIMIT_LOCKS = 10; 189 static const unsigned TGT_RLIMIT_SIGPENDING = 11; 190 static const unsigned TGT_RLIMIT_MSGQUEUE = 12; 191 static const unsigned TGT_RLIMIT_NICE = 13; 192 static const unsigned TGT_RLIMIT_RTPRIO = 14; 193 static const unsigned TGT_RLIMIT_RTTIME = 15; 194 static const unsigned TGT_RLIM_NLIMITS = 16; 195 |
|
177 /// For getrusage(). | 196 /// For getrusage(). |
197 static const int TGT_RUSAGE_SELF = 0; 198 static const int TGT_RUSAGE_CHILDREN = -1; 199 static const int TGT_RUSAGE_BOTH = -2; 200 |
|
178 struct rusage { 179 struct timeval ru_utime; //!< user time used 180 struct timeval ru_stime; //!< system time used 181 int64_t ru_maxrss; //!< max rss 182 int64_t ru_ixrss; //!< integral shared memory size 183 int64_t ru_idrss; //!< integral unshared data " 184 int64_t ru_isrss; //!< integral unshared stack " 185 int64_t ru_minflt; //!< page reclaims - total vmfaults --- 23 unchanged lines hidden --- | 201 struct rusage { 202 struct timeval ru_utime; //!< user time used 203 struct timeval ru_stime; //!< system time used 204 int64_t ru_maxrss; //!< max rss 205 int64_t ru_ixrss; //!< integral shared memory size 206 int64_t ru_idrss; //!< integral unshared data " 207 int64_t ru_isrss; //!< integral unshared stack " 208 int64_t ru_minflt; //!< page reclaims - total vmfaults --- 23 unchanged lines hidden --- |