Merge branch 'signal-structs' into 'master'

remove function struct export workarounds for signal header

See merge request redox-os/relibc!1315
This commit is contained in:
Jeremy Soller
2026-05-12 06:27:05 -06:00
3 changed files with 8 additions and 13 deletions
+8
View File
@@ -40,6 +40,14 @@ cpp_compat = true
[enum]
prefix_with_name = true
[export]
include = [
"mcontext",
"sigevent",
"siginfo",
"ucontext"
]
[export.rename]
"sigaction" = "struct sigaction"
"timespec" = "struct timespec"
-6
View File
@@ -110,9 +110,6 @@ pub struct siginfo {
pub si_value: sigval,
}
#[unsafe(no_mangle)]
pub extern "C" fn _cbindgen_export_siginfo(a: siginfo) {}
/// See <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/signal.h.html>.
#[derive(Clone, Copy)]
#[repr(C)]
@@ -595,6 +592,3 @@ pub unsafe extern "C" fn psiginfo(info: *const siginfo_t, prefix: *const c_char)
psignal((*info).si_signo, prefix);
}
}
#[unsafe(no_mangle)]
pub unsafe extern "C" fn cbindgen_stupid_struct_sigevent_for_timer(_: sigevent) {}
-7
View File
@@ -183,13 +183,6 @@ pub struct mcontext {
_opaque: [c_uchar; 520],
}
#[unsafe(no_mangle)]
pub extern "C" fn __completely_unused_cbindgen_workaround_fn_ucontext_mcontext(
a: *const ucontext_t,
b: *const mcontext_t,
) {
}
impl From<SiginfoAbi> for siginfo_t {
fn from(value: SiginfoAbi) -> Self {
unsafe { core::mem::transmute(value) }