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 / hurd / b64.rs

94 lines · 2613 bytes Raw Blame History
1use crate::prelude::*;
2
3pub type __int64_t = c_long;
4pub type __uint64_t = c_ulong;
5
6pub type int_fast16_t = c_long;
7pub type int_fast32_t = c_long;
8pub type int_fast64_t = c_long;
9pub type uint_fast16_t = c_ulong;
10pub type uint_fast32_t = c_ulong;
11pub type uint_fast64_t = c_ulong;
12
13pub type __quad_t = c_long;
14pub type __u_quad_t = c_ulong;
15pub type __intmax_t = c_long;
16pub type __uintmax_t = c_ulong;
17
18pub type __squad_type = c_long;
19pub type __uquad_type = c_ulong;
20pub type __sword_type = c_long;
21pub type __uword_type = c_ulong;
22pub type __slong32_type = c_int;
23pub type __ulong32_type = c_uint;
24pub type __s64_type = c_long;
25pub type __u64_type = c_ulong;
26
27pub type __ipc_pid_t = c_int;
28
29pub type Elf64_Half = u16;
30pub type Elf64_Word = u32;
31pub type Elf64_Off = u64;
32pub type Elf64_Addr = u64;
33pub type Elf64_Xword = u64;
34pub type Elf64_Sxword = i64;
35pub type Elf64_Section = u16;
36
37pub type Elf_Addr = crate::Elf64_Addr;
38pub type Elf_Half = crate::Elf64_Half;
39pub type Elf_Ehdr = crate::Elf64_Ehdr;
40pub type Elf_Phdr = crate::Elf64_Phdr;
41pub type Elf_Shdr = crate::Elf64_Shdr;
42pub type Elf_Sym = crate::Elf64_Sym;
43
44s! {
45 pub struct Elf64_Ehdr {
46 pub e_ident: [c_uchar; 16],
47 pub e_type: Elf64_Half,
48 pub e_machine: Elf64_Half,
49 pub e_version: Elf64_Word,
50 pub e_entry: Elf64_Addr,
51 pub e_phoff: Elf64_Off,
52 pub e_shoff: Elf64_Off,
53 pub e_flags: Elf64_Word,
54 pub e_ehsize: Elf64_Half,
55 pub e_phentsize: Elf64_Half,
56 pub e_phnum: Elf64_Half,
57 pub e_shentsize: Elf64_Half,
58 pub e_shnum: Elf64_Half,
59 pub e_shstrndx: Elf64_Half,
60 }
61
62 pub struct Elf64_Shdr {
63 pub sh_name: Elf64_Word,
64 pub sh_type: Elf64_Word,
65 pub sh_flags: Elf64_Xword,
66 pub sh_addr: Elf64_Addr,
67 pub sh_offset: Elf64_Off,
68 pub sh_size: Elf64_Xword,
69 pub sh_link: Elf64_Word,
70 pub sh_info: Elf64_Word,
71 pub sh_addralign: Elf64_Xword,
72 pub sh_entsize: Elf64_Xword,
73 }
74
75 pub struct Elf64_Sym {
76 pub st_name: Elf64_Word,
77 pub st_info: c_uchar,
78 pub st_other: c_uchar,
79 pub st_shndx: Elf64_Section,
80 pub st_value: Elf64_Addr,
81 pub st_size: Elf64_Xword,
82 }
83
84 pub struct Elf64_Phdr {
85 pub p_type: crate::Elf64_Word,
86 pub p_flags: crate::Elf64_Word,
87 pub p_offset: crate::Elf64_Off,
88 pub p_vaddr: crate::Elf64_Addr,
89 pub p_paddr: crate::Elf64_Addr,
90 pub p_filesz: crate::Elf64_Xword,
91 pub p_memsz: crate::Elf64_Xword,
92 pub p_align: crate::Elf64_Xword,
93 }
94}