conmon_common/
lib.rs

1#![allow(clippy::all)]
2pub mod conmon_capnp {
3    include!(concat!(env!("OUT_DIR"), "/proto/conmon_capnp.rs"));
4}
5
6/// Workaround for rustc bug: https://github.com/rust-lang/rust/issues/47493
7///
8/// It shouldn't even be possible to reach this function, thanks to panic=abort,
9/// but libcore is compiled with unwinding enabled and that ends up making unreachable
10/// references to this.
11#[cfg(all(target_os = "linux", target_arch = "s390x", target_env = "musl"))]
12mod unwind {
13    #[no_mangle]
14    unsafe extern "C" fn _Unwind_Backtrace() {
15        unimplemented!("_Unwind_Backtrace")
16    }
17    #[no_mangle]
18    unsafe extern "C" fn _Unwind_DeleteException() {
19        unimplemented!("_Unwind_DeleteException")
20    }
21    #[no_mangle]
22    unsafe extern "C" fn _Unwind_GetDataRelBase() {
23        unimplemented!("_Unwind_GetDataRelBase")
24    }
25    #[no_mangle]
26    unsafe extern "C" fn _Unwind_GetIP() {
27        unimplemented!("_Unwind_GetIP")
28    }
29    #[no_mangle]
30    unsafe extern "C" fn _Unwind_GetIPInfo() {
31        unimplemented!("_Unwind_GetIPInfo")
32    }
33    #[no_mangle]
34    unsafe extern "C" fn _Unwind_GetLanguageSpecificData() {
35        unimplemented!("_Unwind_GetLanguageSpecificData")
36    }
37    #[no_mangle]
38    unsafe extern "C" fn _Unwind_GetRegionStart() {
39        unimplemented!("_Unwind_GetRegionStart")
40    }
41    #[no_mangle]
42    unsafe extern "C" fn _Unwind_GetTextRelBase() {
43        unimplemented!("_Unwind_GetTextRelBase")
44    }
45    #[no_mangle]
46    unsafe extern "C" fn _Unwind_RaiseException() {
47        unimplemented!("_Unwind_RaiseException")
48    }
49    #[no_mangle]
50    unsafe extern "C" fn _Unwind_Resume() {
51        unimplemented!("_Unwind_Resume")
52    }
53    #[no_mangle]
54    unsafe extern "C" fn _Unwind_SetGR() {
55        unimplemented!("_Unwind_SetGR")
56    }
57    #[no_mangle]
58    unsafe extern "C" fn _Unwind_SetIP() {
59        unimplemented!("_Unwind_SetIP")
60    }
61    #[no_mangle]
62    unsafe extern "C" fn _Unwind_FindEnclosingFunction() {
63        unimplemented!("_Unwind_FindEnclosingFunction")
64    }
65    #[no_mangle]
66    unsafe extern "C" fn _Unwind_GetCFA() {
67        unimplemented!("_Unwind_GetCFA")
68    }
69    #[cfg(target_arch = "arm")]
70    #[no_mangle]
71    unsafe extern "C" fn _Unwind_VRS_Get() {
72        unimplemented!("_Unwind_VRS_Get")
73    }
74    #[cfg(target_arch = "arm")]
75    #[no_mangle]
76    unsafe extern "C" fn _Unwind_VRS_Set() {
77        unimplemented!("_Unwind_VRS_Set")
78    }
79    #[cfg(target_arch = "arm")]
80    #[no_mangle]
81    unsafe extern "C" fn __aeabi_unwind_cpp_pr0() {
82        unimplemented!("__aeabi_unwind_cpp_pr0")
83    }
84    #[cfg(target_arch = "arm")]
85    #[no_mangle]
86    unsafe extern "C" fn __aeabi_unwind_cpp_pr1() {
87        unimplemented!("__aeabi_unwind_cpp_pr1")
88    }
89    #[cfg(target_arch = "arm")]
90    #[no_mangle]
91    unsafe extern "C" fn __gnu_unwind_frame() {
92        unimplemented!("__gnu_unwind_frame")
93    }
94}