|
| 1 | +from typing import Final |
| 2 | + |
| 3 | + |
| 4 | +# SUCCESS: Generic success code. (from libc) |
| 5 | +SUCCESS: Final = 0 |
| 6 | + |
| 7 | +# FAILURE: Generic failure or unspecified error. (from libc) |
| 8 | +FAILURE: Final = 1 |
| 9 | + |
| 10 | +# INVALIDARGUMENT: Invalid or excess arguments. (from LSB) |
| 11 | +INVALIDARGUMENT: Final = 2 |
| 12 | + |
| 13 | +# NOTIMPLEMENTED: Unimplemented feature. (from LSB) |
| 14 | +NOTIMPLEMENTED: Final = 3 |
| 15 | + |
| 16 | +# NOPERMISSION: The user has insufficient privileges. (from LSB) |
| 17 | +NOPERMISSION: Final = 4 |
| 18 | + |
| 19 | +# NOTINSTALLED: The program is not installed. (from LSB) |
| 20 | +NOTINSTALLED: Final = 5 |
| 21 | + |
| 22 | +# NOTCONFIGURED: The program is not configured. (from LSB) |
| 23 | +NOTCONFIGURED: Final = 6 |
| 24 | + |
| 25 | +# NOTRUNNING: The program is not running. (from LSB) |
| 26 | +NOTRUNNING: Final = 7 |
| 27 | + |
| 28 | +# USAGE: Command line usage error (from BSD) |
| 29 | +USAGE: Final = 64 |
| 30 | + |
| 31 | +# DATAERR: Data format error (from BSD) |
| 32 | +DATAERR: Final = 65 |
| 33 | + |
| 34 | +# NOINPUT: Cannot open input (from BSD) |
| 35 | +NOINPUT: Final = 66 |
| 36 | + |
| 37 | +# NOUSER: Addressee unknown (from BSD) |
| 38 | +NOUSER: Final = 67 |
| 39 | + |
| 40 | +# NOHOST: Host name unknown (from BSD) |
| 41 | +NOHOST: Final = 68 |
| 42 | + |
| 43 | +# UNAVAILABLE: Service unavailable (from BSD) |
| 44 | +UNAVAILABLE: Final = 69 |
| 45 | + |
| 46 | +# SOFTWARE: internal software error (from BSD) |
| 47 | +SOFTWARE: Final = 70 |
| 48 | + |
| 49 | +# OSERR: System error (e.g., can't fork) (from BSD) |
| 50 | +OSERR: Final = 71 |
| 51 | + |
| 52 | +# OSFILE: Critical OS file missing (from BSD) |
| 53 | +OSFILE: Final = 72 |
| 54 | + |
| 55 | +# CANTCREAT: Can't create (user) output file (from BSD) |
| 56 | +CANTCREAT: Final = 73 |
| 57 | + |
| 58 | +# IOERR: Input/output error (from BSD) |
| 59 | +IOERR: Final = 74 |
| 60 | + |
| 61 | +# TEMPFAIL: Temporary failure; user is invited to retry (from BSD) |
| 62 | +TEMPFAIL: Final = 75 |
| 63 | + |
| 64 | +# PROTOCOL: Remote error in protocol (from BSD) |
| 65 | +PROTOCOL: Final = 76 |
| 66 | + |
| 67 | +# NOPERM_BSD: Permission denied (from BSD) |
| 68 | +NOPERM_BSD: Final = 77 |
| 69 | + |
| 70 | +# CONFIG_BSD: Configuration error (from BSD) |
| 71 | +CONFIG_BSD: Final = 78 |
| 72 | + |
| 73 | +# CHDIR: Changing to the requested working directory failed. (from systemd) |
| 74 | +CHDIR: Final = 200 |
| 75 | + |
| 76 | +# NICE: Failed to set up process scheduling priority (nice level). (from systemd) |
| 77 | +NICE: Final = 201 |
| 78 | + |
| 79 | +# FDS: Failed to close unwanted file descriptors, or to adjust passed file descriptors. (from systemd) |
| 80 | +FDS: Final = 202 |
| 81 | + |
| 82 | +# EXEC: The actual process execution failed (specifically, the execve(2) system call). Most likely this is caused by a missing or non-accessible executable file. (from systemd) |
| 83 | +EXEC: Final = 203 |
| 84 | + |
| 85 | +# MEMORY: Failed to perform an action due to memory shortage. (from systemd) |
| 86 | +MEMORY: Final = 204 |
| 87 | + |
| 88 | +# LIMITS: Failed to adjust resource limits. (from systemd) |
| 89 | +LIMITS: Final = 205 |
| 90 | + |
| 91 | +# OOM_ADJUST: Failed to adjust the OOM setting. (from systemd) |
| 92 | +OOM_ADJUST: Final = 206 |
| 93 | + |
| 94 | +# SIGNAL_MASK: Failed to set process signal mask. (from systemd) |
| 95 | +SIGNAL_MASK: Final = 207 |
| 96 | + |
| 97 | +# STDIN: Failed to set up standard input. (from systemd) |
| 98 | +STDIN: Final = 208 |
| 99 | + |
| 100 | +# STDOUT: Failed to set up standard output. (from systemd) |
| 101 | +STDOUT: Final = 209 |
| 102 | + |
| 103 | +# CHROOT: Failed to change root directory (chroot(2)). (from systemd) |
| 104 | +CHROOT: Final = 210 |
| 105 | + |
| 106 | +# IOPRIO: Failed to set up IO scheduling priority. (from systemd) |
| 107 | +IOPRIO: Final = 211 |
| 108 | + |
| 109 | +# TIMERSLACK: Failed to set up timer slack. (from systemd) |
| 110 | +TIMERSLACK: Final = 212 |
| 111 | + |
| 112 | +# SECUREBITS: Failed to set process secure bits. (from systemd) |
| 113 | +SECUREBITS: Final = 213 |
| 114 | + |
| 115 | +# SETSCHEDULER: Failed to set up CPU scheduling. (from systemd) |
| 116 | +SETSCHEDULER: Final = 214 |
| 117 | + |
| 118 | +# CPUAFFINITY: Failed to set up CPU affinity. (from systemd) |
| 119 | +CPUAFFINITY: Final = 215 |
| 120 | + |
| 121 | +# GROUP: Failed to determine or change group credentials. (from systemd) |
| 122 | +GROUP: Final = 216 |
| 123 | + |
| 124 | +# USER: Failed to determine or change user credentials, or to set up user namespacing. (from systemd) |
| 125 | +USER: Final = 217 |
| 126 | + |
| 127 | +# CAPABILITIES: Failed to drop capabilities, or apply ambient capabilities. (from systemd) |
| 128 | +CAPABILITIES: Final = 218 |
| 129 | + |
| 130 | +# CGROUP: Setting up the service control group failed. (from systemd) |
| 131 | +CGROUP: Final = 219 |
| 132 | + |
| 133 | +# SETSID: Failed to create new process session. (from systemd) |
| 134 | +SETSID: Final = 220 |
| 135 | + |
| 136 | +# CONFIRM: Execution has been cancelled by the user. See the systemd.confirm_spawn= kernel command line setting on kernel-command-line(7) for details. (from systemd) |
| 137 | +CONFIRM: Final = 221 |
| 138 | + |
| 139 | +# STDERR: Failed to set up standard error output. (from systemd) |
| 140 | +STDERR: Final = 222 |
| 141 | + |
| 142 | +# PAM: Failed to set up PAM session. (from systemd) |
| 143 | +PAM: Final = 224 |
| 144 | + |
| 145 | +# NETWORK: Failed to set up network namespacing. (from systemd) |
| 146 | +NETWORK: Final = 225 |
| 147 | + |
| 148 | +# NAMESPACE: Failed to set up mount, UTS, or IPC namespacing. (from systemd) |
| 149 | +NAMESPACE: Final = 226 |
| 150 | + |
| 151 | +# NO_NEW_PRIVILEGES: Failed to disable new privileges. (from systemd) |
| 152 | +NO_NEW_PRIVILEGES: Final = 227 |
| 153 | + |
| 154 | +# SECCOMP: Failed to apply system call filters. (from systemd) |
| 155 | +SECCOMP: Final = 228 |
| 156 | + |
| 157 | +# SELINUX_CONTEXT: Determining or changing SELinux context failed. (from systemd) |
| 158 | +SELINUX_CONTEXT: Final = 229 |
| 159 | + |
| 160 | +# PERSONALITY: Failed to set up an execution domain (personality). (from systemd) |
| 161 | +PERSONALITY: Final = 230 |
| 162 | + |
| 163 | +# APPARMOR_PROFILE: Failed to prepare changing AppArmor profile. (from systemd) |
| 164 | +APPARMOR_PROFILE: Final = 231 |
| 165 | + |
| 166 | +# ADDRESS_FAMILIES: Failed to restrict address families. (from systemd) |
| 167 | +ADDRESS_FAMILIES: Final = 232 |
| 168 | + |
| 169 | +# RUNTIME_DIRECTORY: Setting up runtime directory failed. (from systemd) |
| 170 | +RUNTIME_DIRECTORY: Final = 233 |
| 171 | + |
| 172 | +# CHOWN: Failed to adjust socket ownership. Used for socket units only. (from systemd) |
| 173 | +CHOWN: Final = 235 |
| 174 | + |
| 175 | +# SMACK_PROCESS_LABEL: Failed to set SMACK label. (from systemd) |
| 176 | +SMACK_PROCESS_LABEL: Final = 236 |
| 177 | + |
| 178 | +# KEYRING: Failed to set up kernel keyring. (from systemd) |
| 179 | +KEYRING: Final = 237 |
| 180 | + |
| 181 | +# STATE_DIRECTORY: Failed to set up unit's state directory. (from systemd) |
| 182 | +STATE_DIRECTORY: Final = 238 |
| 183 | + |
| 184 | +# CACHE_DIRECTORY: Failed to set up unit's cache directory. (from systemd) |
| 185 | +CACHE_DIRECTORY: Final = 239 |
| 186 | + |
| 187 | +# LOGS_DIRECTORY: Failed to set up unit's logging directory. (from systemd) |
| 188 | +LOGS_DIRECTORY: Final = 240 |
| 189 | + |
| 190 | +# CONFIGURATION_DIRECTORY: Failed to set up unit's configuration directory. (from systemd) |
| 191 | +CONFIGURATION_DIRECTORY: Final = 241 |
| 192 | + |
| 193 | +# NUMA_POLICY: Failed to set up unit's NUMA memory policy. (from systemd) |
| 194 | +NUMA_POLICY: Final = 242 |
| 195 | + |
| 196 | +# CREDENTIALS: Failed to set up unit's credentials. (from systemd) |
| 197 | +CREDENTIALS: Final = 243 |
| 198 | + |
| 199 | +# BPF: Failed to apply BPF restrictions. (from systemd) |
| 200 | +BPF: Final = 245 |
| 201 | + |
0 commit comments