Debian Codegraph @

debian/rust-vendor/libc/src/unix/hurd/b64.rs

raw
1 use crate::prelude::*;
2
3 pub type __int64_t = c_long;
4 pub type __uint64_t = c_ulong;
5
6 pub type int_fast16_t = c_long;
7 pub type int_fast32_t = c_long;
8 pub type int_fast64_t = c_long;
9 pub type uint_fast16_t = c_ulong;
10 pub type uint_fast32_t = c_ulong;
11 pub type uint_fast64_t = c_ulong;
12
13 pub type __quad_t = c_long;
14 pub type __u_quad_t = c_ulong;
15 pub type __intmax_t = c_long;
16 pub type __uintmax_t = c_ulong;
17
18 pub type __squad_type = c_long;
19 pub type __uquad_type = c_ulong;
20 pub type __sword_type = c_long;
21 pub type __uword_type = c_ulong;
22 pub type __slong32_type = c_int;
23 pub type __ulong32_type = c_uint;
24 pub type __s64_type = c_long;
25 pub type __u64_type = c_ulong;
26
27 pub type __ipc_pid_t = c_int;
28
29 pub type Elf64_Half = u16;
30 pub type Elf64_Word = u32;
31 pub type Elf64_Off = u64;
32 pub type Elf64_Addr = u64;
33 pub type Elf64_Xword = u64;
34 pub type Elf64_Sxword = i64;
35 pub type Elf64_Section = u16;
36
37 pub type Elf_Addr = crate::Elf64_Addr;
38 pub type Elf_Half = crate::Elf64_Half;
39 pub type Elf_Ehdr = crate::Elf64_Ehdr;
40 pub type Elf_Phdr = crate::Elf64_Phdr;
41 pub type Elf_Shdr = crate::Elf64_Shdr;
42 pub type Elf_Sym = crate::Elf64_Sym;
43
44 s! {
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 }