| ... | ... | @@ -86,27 +86,27 @@ pub const PR = extern enum(i32) { |
| 86 | 86 | _, |
| 87 | 87 | }; |
| 88 | 88 | |
| 89 | | pub const PR_SET_PDEATHSIG = 1; |
| 90 | | pub const PR_GET_PDEATHSIG = 2; |
| 89 | pub const PR_SET_PDEATHSIG = @enumToInt(PR.PR_SET_PDEATHSIG); |
| 90 | pub const PR_GET_PDEATHSIG = @enumToInt(PR.PR_GET_PDEATHSIG); |
| 91 | 91 | |
| 92 | | pub const PR_GET_DUMPABLE = 3; |
| 93 | | pub const PR_SET_DUMPABLE = 4; |
| 92 | pub const PR_GET_DUMPABLE = @enumToInt(PR.PR_GET_DUMPABLE); |
| 93 | pub const PR_SET_DUMPABLE = @enumToInt(PR.PR_SET_DUMPABLE); |
| 94 | 94 | |
| 95 | | pub const PR_GET_UNALIGN = 5; |
| 96 | | pub const PR_SET_UNALIGN = 6; |
| 95 | pub const PR_GET_UNALIGN = @enumToInt(PR.PR_GET_UNALIGN); |
| 96 | pub const PR_SET_UNALIGN = @enumToInt(PR.PR_SET_UNALIGN); |
| 97 | 97 | pub const PR_UNALIGN_NOPRINT = 1; |
| 98 | 98 | pub const PR_UNALIGN_SIGBUS = 2; |
| 99 | 99 | |
| 100 | | pub const PR_GET_KEEPCAPS = 7; |
| 101 | | pub const PR_SET_KEEPCAPS = 8; |
| 100 | pub const PR_GET_KEEPCAPS = @enumToInt(PR.PR_GET_KEEPCAPS); |
| 101 | pub const PR_SET_KEEPCAPS = @enumToInt(PR.PR_SET_KEEPCAPS); |
| 102 | 102 | |
| 103 | | pub const PR_GET_FPEMU = 9; |
| 104 | | pub const PR_SET_FPEMU = 10; |
| 103 | pub const PR_GET_FPEMU = @enumToInt(PR.PR_GET_FPEMU); |
| 104 | pub const PR_SET_FPEMU = @enumToInt(PR.PR_SET_FPEMU); |
| 105 | 105 | pub const PR_FPEMU_NOPRINT = 1; |
| 106 | 106 | pub const PR_FPEMU_SIGFPE = 2; |
| 107 | 107 | |
| 108 | | pub const PR_GET_FPEXC = 11; |
| 109 | | pub const PR_SET_FPEXC = 12; |
| 108 | pub const PR_GET_FPEXC = @enumToInt(PR.PR_GET_FPEXC); |
| 109 | pub const PR_SET_FPEXC = @enumToInt(PR.PR_SET_FPEXC); |
| 110 | 110 | pub const PR_FP_EXC_SW_ENABLE = 0x80; |
| 111 | 111 | pub const PR_FP_EXC_DIV = 0x010000; |
| 112 | 112 | pub const PR_FP_EXC_OVF = 0x020000; |
| ... | ... | @@ -118,41 +118,41 @@ pub const PR_FP_EXC_NONRECOV = 1; |
| 118 | 118 | pub const PR_FP_EXC_ASYNC = 2; |
| 119 | 119 | pub const PR_FP_EXC_PRECISE = 3; |
| 120 | 120 | |
| 121 | | pub const PR_GET_TIMING = 13; |
| 122 | | pub const PR_SET_TIMING = 14; |
| 121 | pub const PR_GET_TIMING = @enumToInt(PR.PR_GET_TIMING); |
| 122 | pub const PR_SET_TIMING = @enumToInt(PR.PR_SET_TIMING); |
| 123 | 123 | pub const PR_TIMING_STATISTICAL = 0; |
| 124 | 124 | pub const PR_TIMING_TIMESTAMP = 1; |
| 125 | 125 | |
| 126 | | pub const PR_SET_NAME = 15; |
| 127 | | pub const PR_GET_NAME = 16; |
| 126 | pub const PR_SET_NAME = @enumToInt(PR.PR_SET_NAME); |
| 127 | pub const PR_GET_NAME = @enumToInt(PR.PR_GET_NAME); |
| 128 | 128 | |
| 129 | | pub const PR_GET_ENDIAN = 19; |
| 130 | | pub const PR_SET_ENDIAN = 20; |
| 129 | pub const PR_GET_ENDIAN = @enumToInt(PR.PR_GET_ENDIAN); |
| 130 | pub const PR_SET_ENDIAN = @enumToInt(PR.PR_SET_ENDIAN); |
| 131 | 131 | pub const PR_ENDIAN_BIG = 0; |
| 132 | 132 | pub const PR_ENDIAN_LITTLE = 1; |
| 133 | 133 | pub const PR_ENDIAN_PPC_LITTLE = 2; |
| 134 | 134 | |
| 135 | | pub const PR_GET_SECCOMP = 21; |
| 136 | | pub const PR_SET_SECCOMP = 22; |
| 135 | pub const PR_GET_SECCOMP = @enumToInt(PR.PR_GET_SECCOMP); |
| 136 | pub const PR_SET_SECCOMP = @enumToInt(PR.PR_SET_SECCOMP); |
| 137 | 137 | |
| 138 | | pub const PR_CAPBSET_READ = 23; |
| 139 | | pub const PR_CAPBSET_DROP = 24; |
| 138 | pub const PR_CAPBSET_READ = @enumToInt(PR.PR_CAPBSET_READ); |
| 139 | pub const PR_CAPBSET_DROP = @enumToInt(PR.PR_CAPBSET_DROP); |
| 140 | 140 | |
| 141 | | pub const PR_GET_TSC = 25; |
| 142 | | pub const PR_SET_TSC = 26; |
| 141 | pub const PR_GET_TSC = @enumToInt(PR.PR_GET_TSC); |
| 142 | pub const PR_SET_TSC = @enumToInt(PR.PR_SET_TSC); |
| 143 | 143 | pub const PR_TSC_ENABLE = 1; |
| 144 | 144 | pub const PR_TSC_SIGSEGV = 2; |
| 145 | 145 | |
| 146 | | pub const PR_GET_SECUREBITS = 27; |
| 147 | | pub const PR_SET_SECUREBITS = 28; |
| 146 | pub const PR_GET_SECUREBITS = @enumToInt(PR.PR_GET_SECUREBITS); |
| 147 | pub const PR_SET_SECUREBITS = @enumToInt(PR.PR_SET_SECUREBITS); |
| 148 | 148 | |
| 149 | | pub const PR_SET_TIMERSLACK = 29; |
| 150 | | pub const PR_GET_TIMERSLACK = 30; |
| 149 | pub const PR_SET_TIMERSLACK = @enumToInt(PR.PR_SET_TIMERSLACK); |
| 150 | pub const PR_GET_TIMERSLACK = @enumToInt(PR.PR_GET_TIMERSLACK); |
| 151 | 151 | |
| 152 | | pub const PR_TASK_PERF_EVENTS_DISABLE = 31; |
| 153 | | pub const PR_TASK_PERF_EVENTS_ENABLE = 32; |
| 152 | pub const PR_TASK_PERF_EVENTS_DISABLE = @enumToInt(PR.PR_TASK_PERF_EVENTS_DISABLE); |
| 153 | pub const PR_TASK_PERF_EVENTS_ENABLE = @enumToInt(PR.PR_TASK_PERF_EVENTS_ENABLE); |
| 154 | 154 | |
| 155 | | pub const PR_MCE_KILL = 33; |
| 155 | pub const PR_MCE_KILL = @enumToInt(PR.PR_MCE_KILL); |
| 156 | 156 | pub const PR_MCE_KILL_CLEAR = 0; |
| 157 | 157 | pub const PR_MCE_KILL_SET = 1; |
| 158 | 158 | |
| ... | ... | @@ -160,9 +160,9 @@ pub const PR_MCE_KILL_LATE = 0; |
| 160 | 160 | pub const PR_MCE_KILL_EARLY = 1; |
| 161 | 161 | pub const PR_MCE_KILL_DEFAULT = 2; |
| 162 | 162 | |
| 163 | | pub const PR_MCE_KILL_GET = 34; |
| 163 | pub const PR_MCE_KILL_GET = @enumToInt(PR.PR_MCE_KILL_GET); |
| 164 | 164 | |
| 165 | | pub const PR_SET_MM = 35; |
| 165 | pub const PR_SET_MM = @enumToInt(PR.PR_SET_MM); |
| 166 | 166 | pub const PR_SET_MM_START_CODE = 1; |
| 167 | 167 | pub const PR_SET_MM_END_CODE = 2; |
| 168 | 168 | pub const PR_SET_MM_START_DATA = 3; |
| ... | ... | @@ -196,42 +196,42 @@ pub const prctl_mm_map = extern struct { |
| 196 | 196 | exe_fd: u32, |
| 197 | 197 | }; |
| 198 | 198 | |
| 199 | | pub const PR_SET_PTRACER = 0x59616d61; |
| 199 | pub const PR_SET_PTRACER = @enumToInt(PR.PR_SET_PTRACER); |
| 200 | 200 | pub const PR_SET_PTRACER_ANY = std.math.maxInt(c_ulong); |
| 201 | 201 | |
| 202 | | pub const PR_SET_CHILD_SUBREAPER = 36; |
| 203 | | pub const PR_GET_CHILD_SUBREAPER = 37; |
| 202 | pub const PR_SET_CHILD_SUBREAPER = @enumToInt(PR.PR_SET_CHILD_SUBREAPER); |
| 203 | pub const PR_GET_CHILD_SUBREAPER = @enumToInt(PR.PR_GET_CHILD_SUBREAPER); |
| 204 | 204 | |
| 205 | | pub const PR_SET_NO_NEW_PRIVS = 38; |
| 206 | | pub const PR_GET_NO_NEW_PRIVS = 39; |
| 205 | pub const PR_SET_NO_NEW_PRIVS = @enumToInt(PR.PR_SET_NO_NEW_PRIVS); |
| 206 | pub const PR_GET_NO_NEW_PRIVS = @enumToInt(PR.PR_GET_NO_NEW_PRIVS); |
| 207 | 207 | |
| 208 | | pub const PR_GET_TID_ADDRESS = 40; |
| 208 | pub const PR_GET_TID_ADDRESS = @enumToInt(PR.PR_GET_TID_ADDRESS); |
| 209 | 209 | |
| 210 | | pub const PR_SET_THP_DISABLE = 41; |
| 211 | | pub const PR_GET_THP_DISABLE = 42; |
| 210 | pub const PR_SET_THP_DISABLE = @enumToInt(PR.PR_SET_THP_DISABLE); |
| 211 | pub const PR_GET_THP_DISABLE = @enumToInt(PR.PR_GET_THP_DISABLE); |
| 212 | 212 | |
| 213 | | pub const PR_MPX_ENABLE_MANAGEMENT = 43; |
| 214 | | pub const PR_MPX_DISABLE_MANAGEMENT = 44; |
| 213 | pub const PR_MPX_ENABLE_MANAGEMENT = @enumToInt(PR.PR_MPX_ENABLE_MANAGEMENT); |
| 214 | pub const PR_MPX_DISABLE_MANAGEMENT = @enumToInt(PR.PR_MPX_DISABLE_MANAGEMENT); |
| 215 | 215 | |
| 216 | | pub const PR_SET_FP_MODE = 45; |
| 217 | | pub const PR_GET_FP_MODE = 46; |
| 216 | pub const PR_SET_FP_MODE = @enumToInt(PR.PR_SET_FP_MODE); |
| 217 | pub const PR_GET_FP_MODE = @enumToInt(PR.PR_GET_FP_MODE); |
| 218 | 218 | pub const PR_FP_MODE_FR = 1 << 0; |
| 219 | 219 | pub const PR_FP_MODE_FRE = 1 << 1; |
| 220 | 220 | |
| 221 | | pub const PR_CAP_AMBIENT = 47; |
| 221 | pub const PR_CAP_AMBIENT = @enumToInt(PR.PR_CAP_AMBIENT); |
| 222 | 222 | pub const PR_CAP_AMBIENT_IS_SET = 1; |
| 223 | 223 | pub const PR_CAP_AMBIENT_RAISE = 2; |
| 224 | 224 | pub const PR_CAP_AMBIENT_LOWER = 3; |
| 225 | 225 | pub const PR_CAP_AMBIENT_CLEAR_ALL = 4; |
| 226 | 226 | |
| 227 | | pub const PR_SVE_SET_VL = 50; |
| 227 | pub const PR_SVE_SET_VL = @enumToInt(PR.PR_SVE_SET_VL); |
| 228 | 228 | pub const PR_SVE_SET_VL_ONEXEC = 1 << 18; |
| 229 | | pub const PR_SVE_GET_VL = 51; |
| 229 | pub const PR_SVE_GET_VL = @enumToInt(PR.PR_SVE_GET_VL); |
| 230 | 230 | pub const PR_SVE_VL_LEN_MASK = 0xffff; |
| 231 | 231 | pub const PR_SVE_VL_INHERIT = 1 << 17; |
| 232 | 232 | |
| 233 | | pub const PR_GET_SPECULATION_CTRL = 52; |
| 234 | | pub const PR_SET_SPECULATION_CTRL = 53; |
| 233 | pub const PR_GET_SPECULATION_CTRL = @enumToInt(PR.PR_GET_SPECULATION_CTRL); |
| 234 | pub const PR_SET_SPECULATION_CTRL = @enumToInt(PR.PR_SET_SPECULATION_CTRL); |
| 235 | 235 | pub const PR_SPEC_STORE_BYPASS = 0; |
| 236 | 236 | pub const PR_SPEC_NOT_AFFECTED = 0; |
| 237 | 237 | pub const PR_SPEC_PRCTL = 1 << 0; |