1 | use crate::backend; |
2 | |
3 | /// `EXIT_SUCCESS` for use with [`exit`]. |
4 | /// |
5 | /// [`exit`]: std::process::exit |
6 | /// |
7 | /// # References |
8 | /// - [POSIX] |
9 | /// - [Linux] |
10 | /// |
11 | /// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stdlib.h.html |
12 | /// [Linux]: https://man7.org/linux/man-pages/man3/exit.3.html |
13 | pub const EXIT_SUCCESS: i32 = backend::c::EXIT_SUCCESS; |
14 | |
15 | /// `EXIT_FAILURE` for use with [`exit`]. |
16 | /// |
17 | /// [`exit`]: std::process::exit |
18 | /// |
19 | /// # References |
20 | /// - [POSIX] |
21 | /// - [Linux] |
22 | /// |
23 | /// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stdlib.h.html |
24 | /// [Linux]: https://man7.org/linux/man-pages/man3/exit.3.html |
25 | pub const EXIT_FAILURE: i32 = backend::c::EXIT_FAILURE; |
26 | |
27 | /// The exit status used by a process terminated with a [`Signal::Abort`] |
28 | /// signal. |
29 | /// |
30 | /// # References |
31 | /// - [Linux] |
32 | /// |
33 | /// [Linux]: https://tldp.org/LDP/abs/html/exitcodes.html |
34 | /// [`Signal::Abort`]: crate::process::Signal::Abort |
35 | #[cfg (not(any(target_os = "espidf" , target_os = "wasi" )))] |
36 | pub const EXIT_SIGNALED_SIGABRT: i32 = backend::c::EXIT_SIGNALED_SIGABRT; |
37 | |