linux.hh (9141:593fe25c86a6) | linux.hh (9146:a61fdbbc1d45) |
---|---|
1/* 2 * Copyright (c) 2010 ARM Limited 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 --- 79 unchanged lines hidden (view full) --- 88 89 90 //@} 91 92 /// For mmap(). 93 static const unsigned TGT_MAP_ANONYMOUS = 0x20; 94 static const unsigned TGT_MAP_FIXED = 0x10; 95 | 1/* 2 * Copyright (c) 2010 ARM Limited 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 --- 79 unchanged lines hidden (view full) --- 88 89 90 //@} 91 92 /// For mmap(). 93 static const unsigned TGT_MAP_ANONYMOUS = 0x20; 94 static const unsigned TGT_MAP_FIXED = 0x10; 95 |
96 //@{ 97 /// For getrusage(). 98 static const int TGT_RUSAGE_SELF = 0; 99 static const int TGT_RUSAGE_CHILDREN = -1; 100 static const int TGT_RUSAGE_BOTH = -2; 101 //@} 102 | |
103 /// For table(). 104 static const int TBL_SYSINFO = 12; 105 | 96 /// For table(). 97 static const int TBL_SYSINFO = 12; 98 |
106 /// Resource enumeration for getrlimit(). 107 enum rlimit_resources { 108 TGT_RLIMIT_CPU = 0, 109 TGT_RLIMIT_FSIZE = 1, 110 TGT_RLIMIT_DATA = 2, 111 TGT_RLIMIT_STACK = 3, 112 TGT_RLIMIT_CORE = 4, 113 TGT_RLIMIT_RSS = 5, 114 TGT_RLIMIT_NPROC = 6, 115 TGT_RLIMIT_NOFILE = 7, 116 TGT_RLIMIT_MEMLOCK = 8, 117 TGT_RLIMIT_AS = 9, 118 TGT_RLIMIT_LOCKS = 10 119 }; 120 | |
121 /// Limit struct for getrlimit/setrlimit. 122 struct rlimit { 123 uint32_t rlim_cur; //!< soft limit 124 uint32_t rlim_max; //!< hard limit 125 }; 126 127 /// For gettimeofday(). 128 struct timeval { --- 99 unchanged lines hidden --- | 99 /// Limit struct for getrlimit/setrlimit. 100 struct rlimit { 101 uint32_t rlim_cur; //!< soft limit 102 uint32_t rlim_max; //!< hard limit 103 }; 104 105 /// For gettimeofday(). 106 struct timeval { --- 99 unchanged lines hidden --- |