diff --git a/src/header/arch_aarch64_user/mod.rs b/src/header/arch_aarch64_user/mod.rs index 6f25a5da80..46d0170a7b 100644 --- a/src/header/arch_aarch64_user/mod.rs +++ b/src/header/arch_aarch64_user/mod.rs @@ -20,7 +20,7 @@ pub type elf_gregset_t = [c_ulong; 34]; pub type elf_fpregset_t = user_fpsimd_struct; #[no_mangle] -pub extern "C" fn _cbindgen_only_generates_structs_if_they_are_mentioned_which_is_dumb_aarch64_user( +pub extern "C" fn _cbindgen_export_aarch64_user( a: user_regs_struct, b: user_fpsimd_struct, c: elf_gregset_t, diff --git a/src/header/arch_x64_user/mod.rs b/src/header/arch_x64_user/mod.rs index 92d34b6279..c48799aa09 100644 --- a/src/header/arch_x64_user/mod.rs +++ b/src/header/arch_x64_user/mod.rs @@ -72,7 +72,7 @@ pub struct user { } #[no_mangle] -pub extern "C" fn _cbindgen_only_generates_structs_if_they_are_mentioned_which_is_dumb_x86_user( +pub extern "C" fn _cbindgen_export_x86_user( a: user_fpregs_struct, b: user_regs_struct, c: user, diff --git a/src/header/elf/mod.rs b/src/header/elf/mod.rs index db7b6d41f8..22726faa53 100644 --- a/src/header/elf/mod.rs +++ b/src/header/elf/mod.rs @@ -944,7 +944,7 @@ pub const R_X86_64_RELATIVE64: usize = 38; pub const R_X86_64_NUM: usize = 39; #[no_mangle] -pub extern "C" fn stupid_cbindgen_needs_a_function_that_holds_all_elf_structs( +pub extern "C" fn _cbindgen_export_elf( a: Elf32_Ehdr, b: Elf64_Ehdr, c: Elf32_Shdr, diff --git a/src/header/signal/mod.rs b/src/header/signal/mod.rs index 674df6bff2..0fa6ee0458 100644 --- a/src/header/signal/mod.rs +++ b/src/header/signal/mod.rs @@ -33,6 +33,9 @@ pub const SIG_BLOCK: c_int = 0; pub const SIG_UNBLOCK: c_int = 1; pub const SIG_SETMASK: c_int = 2; +pub const SI_QUEUE: c_int = -1; +pub const SI_USER: c_int = 0; + #[repr(C)] #[derive(Clone, Debug)] /// cbindgen:ignore @@ -61,6 +64,9 @@ pub struct siginfo { _si_align: [usize; 0], } +#[no_mangle] +pub extern "C" fn _cbindgen_export_siginfo(a: siginfo) {} + /// cbindgen:ignore pub type sigset_t = c_ulonglong; /// cbindgen:ignore diff --git a/src/header/sys_procfs/mod.rs b/src/header/sys_procfs/mod.rs index a70aa9f6c1..d3f01a0e38 100644 --- a/src/header/sys_procfs/mod.rs +++ b/src/header/sys_procfs/mod.rs @@ -62,7 +62,7 @@ pub type prstatus_t = elf_prstatus; pub type prpsinfo_t = elf_prpsinfo; #[no_mangle] -pub extern "C" fn _cbindgen_only_generates_structs_if_they_are_mentioned_which_is_dumb_procfs( +pub extern "C" fn _cbindgen_export_procfs( a: psaddr_t, b: prgregset_t, c: prfpregset_t,