interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / vendor / libc / src / unix / bsd / freebsdlike / freebsd / powerpc.rs

30 lines · 802 bytes Raw Blame History
1use crate::prelude::*;
2
3pub type clock_t = u32;
4pub type wchar_t = i32;
5pub type time_t = i64;
6pub type suseconds_t = i32;
7pub type register_t = i32;
8
9s! {
10 #[repr(align(16))]
11 pub struct mcontext_t {
12 pub mc_vers: c_int,
13 pub mc_flags: c_int,
14 pub mc_onstack: c_int,
15 pub mc_len: c_int,
16 pub mc_avec: [u64; 64],
17 pub mc_av: [u32; 2],
18 pub mc_frame: [crate::register_t; 42],
19 pub mc_fpreg: [u64; 33],
20 pub mc_vsxfpreg: [u64; 32],
21 }
22}
23
24pub(crate) const _ALIGNBYTES: usize = size_of::<c_int>() - 1;
25
26pub const BIOCSRTIMEOUT: c_ulong = 0x8010426d;
27pub const BIOCGRTIMEOUT: c_ulong = 0x4010426e;
28pub const MAP_32BIT: c_int = 0x00080000;
29pub const MINSIGSTKSZ: size_t = 2048; // 512 * 4
30pub const TIOCTIMESTAMP: c_ulong = 0x40107459;