$NetBSD: patch-vendor_libc-0.2.141_src_unix_bsd_netbsdlike_netbsd_mips.rs,v 1.1 2023/10/25 05:50:43 pin Exp $ Add file for NetBSD/mips in mips32 variant. --- vendor/libc-0.2.141/src/unix/bsd/netbsdlike/netbsd/mips.rs.orig 2023-04-23 16:08:32.294600810 +0000 +++ vendor/libc-0.2.141/src/unix/bsd/netbsdlike/netbsd/mips.rs @@ -0,0 +1,22 @@ +use PT_FIRSTMACH; + +pub type c_long = i32; +pub type c_ulong = u32; +pub type c_char = i8; +pub type __cpu_simple_lock_nv_t = ::c_int; + +// should be pub(crate), but that requires Rust 1.18.0 +cfg_if! { + if #[cfg(libc_const_size_of)] { + #[doc(hidden)] + pub const _ALIGNBYTES: usize = ::mem::size_of::<::c_longlong>() - 1; + } else { + #[doc(hidden)] + pub const _ALIGNBYTES: usize = 8 - 1; + } +} + +pub const PT_GETREGS: ::c_int = PT_FIRSTMACH + 1; +pub const PT_SETREGS: ::c_int = PT_FIRSTMACH + 2; +pub const PT_GETFPREGS: ::c_int = PT_FIRSTMACH + 3; +pub const PT_SETFPREGS: ::c_int = PT_FIRSTMACH + 4;