1 /* Generated by ./xlat/gen.sh from ./xlat/prctl_options.in; do not edit. */ 2 #if !(defined(PR_SET_PDEATHSIG) || (defined(HAVE_DECL_PR_SET_PDEATHSIG) && HAVE_DECL_PR_SET_PDEATHSIG)) 3 # define PR_SET_PDEATHSIG 1 4 #endif 5 #if !(defined(PR_GET_PDEATHSIG) || (defined(HAVE_DECL_PR_GET_PDEATHSIG) && HAVE_DECL_PR_GET_PDEATHSIG)) 6 # define PR_GET_PDEATHSIG 2 7 #endif 8 #if !(defined(PR_GET_DUMPABLE) || (defined(HAVE_DECL_PR_GET_DUMPABLE) && HAVE_DECL_PR_GET_DUMPABLE)) 9 # define PR_GET_DUMPABLE 3 10 #endif 11 #if !(defined(PR_SET_DUMPABLE) || (defined(HAVE_DECL_PR_SET_DUMPABLE) && HAVE_DECL_PR_SET_DUMPABLE)) 12 # define PR_SET_DUMPABLE 4 13 #endif 14 #if !(defined(PR_GET_UNALIGN) || (defined(HAVE_DECL_PR_GET_UNALIGN) && HAVE_DECL_PR_GET_UNALIGN)) 15 # define PR_GET_UNALIGN 5 16 #endif 17 #if !(defined(PR_SET_UNALIGN) || (defined(HAVE_DECL_PR_SET_UNALIGN) && HAVE_DECL_PR_SET_UNALIGN)) 18 # define PR_SET_UNALIGN 6 19 #endif 20 #if !(defined(PR_GET_KEEPCAPS) || (defined(HAVE_DECL_PR_GET_KEEPCAPS) && HAVE_DECL_PR_GET_KEEPCAPS)) 21 # define PR_GET_KEEPCAPS 7 22 #endif 23 #if !(defined(PR_SET_KEEPCAPS) || (defined(HAVE_DECL_PR_SET_KEEPCAPS) && HAVE_DECL_PR_SET_KEEPCAPS)) 24 # define PR_SET_KEEPCAPS 8 25 #endif 26 #if !(defined(PR_GET_FPEMU) || (defined(HAVE_DECL_PR_GET_FPEMU) && HAVE_DECL_PR_GET_FPEMU)) 27 # define PR_GET_FPEMU 9 28 #endif 29 #if !(defined(PR_SET_FPEMU) || (defined(HAVE_DECL_PR_SET_FPEMU) && HAVE_DECL_PR_SET_FPEMU)) 30 # define PR_SET_FPEMU 10 31 #endif 32 #if !(defined(PR_GET_FPEXC) || (defined(HAVE_DECL_PR_GET_FPEXC) && HAVE_DECL_PR_GET_FPEXC)) 33 # define PR_GET_FPEXC 11 34 #endif 35 #if !(defined(PR_SET_FPEXC) || (defined(HAVE_DECL_PR_SET_FPEXC) && HAVE_DECL_PR_SET_FPEXC)) 36 # define PR_SET_FPEXC 12 37 #endif 38 #if !(defined(PR_GET_TIMING) || (defined(HAVE_DECL_PR_GET_TIMING) && HAVE_DECL_PR_GET_TIMING)) 39 # define PR_GET_TIMING 13 40 #endif 41 #if !(defined(PR_SET_TIMING) || (defined(HAVE_DECL_PR_SET_TIMING) && HAVE_DECL_PR_SET_TIMING)) 42 # define PR_SET_TIMING 14 43 #endif 44 #if !(defined(PR_SET_NAME) || (defined(HAVE_DECL_PR_SET_NAME) && HAVE_DECL_PR_SET_NAME)) 45 # define PR_SET_NAME 15 46 #endif 47 #if !(defined(PR_GET_NAME) || (defined(HAVE_DECL_PR_GET_NAME) && HAVE_DECL_PR_GET_NAME)) 48 # define PR_GET_NAME 16 49 #endif 50 #if !(defined(PR_GET_ENDIAN) || (defined(HAVE_DECL_PR_GET_ENDIAN) && HAVE_DECL_PR_GET_ENDIAN)) 51 # define PR_GET_ENDIAN 19 52 #endif 53 #if !(defined(PR_SET_ENDIAN) || (defined(HAVE_DECL_PR_SET_ENDIAN) && HAVE_DECL_PR_SET_ENDIAN)) 54 # define PR_SET_ENDIAN 20 55 #endif 56 #if !(defined(PR_GET_SECCOMP) || (defined(HAVE_DECL_PR_GET_SECCOMP) && HAVE_DECL_PR_GET_SECCOMP)) 57 # define PR_GET_SECCOMP 21 58 #endif 59 #if !(defined(PR_SET_SECCOMP) || (defined(HAVE_DECL_PR_SET_SECCOMP) && HAVE_DECL_PR_SET_SECCOMP)) 60 # define PR_SET_SECCOMP 22 61 #endif 62 #if !(defined(PR_CAPBSET_READ) || (defined(HAVE_DECL_PR_CAPBSET_READ) && HAVE_DECL_PR_CAPBSET_READ)) 63 # define PR_CAPBSET_READ 23 64 #endif 65 #if !(defined(PR_CAPBSET_DROP) || (defined(HAVE_DECL_PR_CAPBSET_DROP) && HAVE_DECL_PR_CAPBSET_DROP)) 66 # define PR_CAPBSET_DROP 24 67 #endif 68 #if !(defined(PR_GET_TSC) || (defined(HAVE_DECL_PR_GET_TSC) && HAVE_DECL_PR_GET_TSC)) 69 # define PR_GET_TSC 25 70 #endif 71 #if !(defined(PR_SET_TSC) || (defined(HAVE_DECL_PR_SET_TSC) && HAVE_DECL_PR_SET_TSC)) 72 # define PR_SET_TSC 26 73 #endif 74 #if !(defined(PR_GET_SECUREBITS) || (defined(HAVE_DECL_PR_GET_SECUREBITS) && HAVE_DECL_PR_GET_SECUREBITS)) 75 # define PR_GET_SECUREBITS 27 76 #endif 77 #if !(defined(PR_SET_SECUREBITS) || (defined(HAVE_DECL_PR_SET_SECUREBITS) && HAVE_DECL_PR_SET_SECUREBITS)) 78 # define PR_SET_SECUREBITS 28 79 #endif 80 #if !(defined(PR_SET_TIMERSLACK) || (defined(HAVE_DECL_PR_SET_TIMERSLACK) && HAVE_DECL_PR_SET_TIMERSLACK)) 81 # define PR_SET_TIMERSLACK 29 82 #endif 83 #if !(defined(PR_GET_TIMERSLACK) || (defined(HAVE_DECL_PR_GET_TIMERSLACK) && HAVE_DECL_PR_GET_TIMERSLACK)) 84 # define PR_GET_TIMERSLACK 30 85 #endif 86 #if !(defined(PR_TASK_PERF_EVENTS_DISABLE) || (defined(HAVE_DECL_PR_TASK_PERF_EVENTS_DISABLE) && HAVE_DECL_PR_TASK_PERF_EVENTS_DISABLE)) 87 # define PR_TASK_PERF_EVENTS_DISABLE 31 88 #endif 89 #if !(defined(PR_TASK_PERF_EVENTS_ENABLE) || (defined(HAVE_DECL_PR_TASK_PERF_EVENTS_ENABLE) && HAVE_DECL_PR_TASK_PERF_EVENTS_ENABLE)) 90 # define PR_TASK_PERF_EVENTS_ENABLE 32 91 #endif 92 #if !(defined(PR_MCE_KILL) || (defined(HAVE_DECL_PR_MCE_KILL) && HAVE_DECL_PR_MCE_KILL)) 93 # define PR_MCE_KILL 33 94 #endif 95 #if !(defined(PR_MCE_KILL_GET) || (defined(HAVE_DECL_PR_MCE_KILL_GET) && HAVE_DECL_PR_MCE_KILL_GET)) 96 # define PR_MCE_KILL_GET 34 97 #endif 98 #if !(defined(PR_SET_MM) || (defined(HAVE_DECL_PR_SET_MM) && HAVE_DECL_PR_SET_MM)) 99 # define PR_SET_MM 35 100 #endif 101 #if !(defined(PR_SET_PTRACER) || (defined(HAVE_DECL_PR_SET_PTRACER) && HAVE_DECL_PR_SET_PTRACER)) 102 # define PR_SET_PTRACER 0x59616d61 103 #endif 104 #if !(defined(PR_SET_CHILD_SUBREAPER) || (defined(HAVE_DECL_PR_SET_CHILD_SUBREAPER) && HAVE_DECL_PR_SET_CHILD_SUBREAPER)) 105 # define PR_SET_CHILD_SUBREAPER 36 106 #endif 107 #if !(defined(PR_GET_CHILD_SUBREAPER) || (defined(HAVE_DECL_PR_GET_CHILD_SUBREAPER) && HAVE_DECL_PR_GET_CHILD_SUBREAPER)) 108 # define PR_GET_CHILD_SUBREAPER 37 109 #endif 110 #if !(defined(PR_SET_NO_NEW_PRIVS) || (defined(HAVE_DECL_PR_SET_NO_NEW_PRIVS) && HAVE_DECL_PR_SET_NO_NEW_PRIVS)) 111 # define PR_SET_NO_NEW_PRIVS 38 112 #endif 113 #if !(defined(PR_GET_NO_NEW_PRIVS) || (defined(HAVE_DECL_PR_GET_NO_NEW_PRIVS) && HAVE_DECL_PR_GET_NO_NEW_PRIVS)) 114 # define PR_GET_NO_NEW_PRIVS 39 115 #endif 116 #if !(defined(PR_GET_TID_ADDRESS) || (defined(HAVE_DECL_PR_GET_TID_ADDRESS) && HAVE_DECL_PR_GET_TID_ADDRESS)) 117 # define PR_GET_TID_ADDRESS 40 118 #endif 119 #if !(defined(PR_SET_THP_DISABLE) || (defined(HAVE_DECL_PR_SET_THP_DISABLE) && HAVE_DECL_PR_SET_THP_DISABLE)) 120 # define PR_SET_THP_DISABLE 41 121 #endif 122 #if !(defined(PR_GET_THP_DISABLE) || (defined(HAVE_DECL_PR_GET_THP_DISABLE) && HAVE_DECL_PR_GET_THP_DISABLE)) 123 # define PR_GET_THP_DISABLE 42 124 #endif 125 #if !(defined(PR_MPX_ENABLE_MANAGEMENT) || (defined(HAVE_DECL_PR_MPX_ENABLE_MANAGEMENT) && HAVE_DECL_PR_MPX_ENABLE_MANAGEMENT)) 126 # define PR_MPX_ENABLE_MANAGEMENT 43 127 #endif 128 #if !(defined(PR_MPX_DISABLE_MANAGEMENT) || (defined(HAVE_DECL_PR_MPX_DISABLE_MANAGEMENT) && HAVE_DECL_PR_MPX_DISABLE_MANAGEMENT)) 129 # define PR_MPX_DISABLE_MANAGEMENT 44 130 #endif 131 #if !(defined(PR_SET_FP_MODE) || (defined(HAVE_DECL_PR_SET_FP_MODE) && HAVE_DECL_PR_SET_FP_MODE)) 132 # define PR_SET_FP_MODE 45 133 #endif 134 #if !(defined(PR_GET_FP_MODE) || (defined(HAVE_DECL_PR_GET_FP_MODE) && HAVE_DECL_PR_GET_FP_MODE)) 135 # define PR_GET_FP_MODE 46 136 #endif 137 #if !(defined(PR_CAP_AMBIENT) || (defined(HAVE_DECL_PR_CAP_AMBIENT) && HAVE_DECL_PR_CAP_AMBIENT)) 138 # define PR_CAP_AMBIENT 47 139 #endif 140 141 #ifdef IN_MPERS 142 143 # error static const struct xlat prctl_options in mpers mode 144 145 #else 146 147 static 148 const struct xlat prctl_options[] = { 149 XLAT(PR_SET_PDEATHSIG), 150 XLAT(PR_GET_PDEATHSIG), 151 XLAT(PR_GET_DUMPABLE), 152 XLAT(PR_SET_DUMPABLE), 153 XLAT(PR_GET_UNALIGN), 154 XLAT(PR_SET_UNALIGN), 155 XLAT(PR_GET_KEEPCAPS), 156 XLAT(PR_SET_KEEPCAPS), 157 XLAT(PR_GET_FPEMU), 158 XLAT(PR_SET_FPEMU), 159 XLAT(PR_GET_FPEXC), 160 XLAT(PR_SET_FPEXC), 161 XLAT(PR_GET_TIMING), 162 XLAT(PR_SET_TIMING), 163 XLAT(PR_SET_NAME), 164 XLAT(PR_GET_NAME), 165 XLAT(PR_GET_ENDIAN), 166 XLAT(PR_SET_ENDIAN), 167 XLAT(PR_GET_SECCOMP), 168 XLAT(PR_SET_SECCOMP), 169 XLAT(PR_CAPBSET_READ), 170 XLAT(PR_CAPBSET_DROP), 171 XLAT(PR_GET_TSC), 172 XLAT(PR_SET_TSC), 173 XLAT(PR_GET_SECUREBITS), 174 XLAT(PR_SET_SECUREBITS), 175 XLAT(PR_SET_TIMERSLACK), 176 XLAT(PR_GET_TIMERSLACK), 177 XLAT(PR_TASK_PERF_EVENTS_DISABLE), 178 XLAT(PR_TASK_PERF_EVENTS_ENABLE), 179 XLAT(PR_MCE_KILL), 180 XLAT(PR_MCE_KILL_GET), 181 XLAT(PR_SET_MM), 182 XLAT(PR_SET_PTRACER), 183 XLAT(PR_SET_CHILD_SUBREAPER), 184 XLAT(PR_GET_CHILD_SUBREAPER), 185 XLAT(PR_SET_NO_NEW_PRIVS), 186 XLAT(PR_GET_NO_NEW_PRIVS), 187 XLAT(PR_GET_TID_ADDRESS), 188 XLAT(PR_SET_THP_DISABLE), 189 XLAT(PR_GET_THP_DISABLE), 190 XLAT(PR_MPX_ENABLE_MANAGEMENT), 191 XLAT(PR_MPX_DISABLE_MANAGEMENT), 192 XLAT(PR_SET_FP_MODE), 193 XLAT(PR_GET_FP_MODE), 194 XLAT(PR_CAP_AMBIENT), 195 XLAT_END 196 }; 197 198 #endif /* !IN_MPERS */ 199