File tree Expand file tree Collapse file tree 5 files changed +5
-42
lines changed Expand file tree Collapse file tree 5 files changed +5
-42
lines changed Original file line number Diff line number Diff line change 11//! Hermit C type definitions
22
3+ pub use crate :: arch:: c_char_def as c_char;
34use crate :: prelude:: * ;
45
5- cfg_if ! {
6- if #[ cfg( any( target_arch = "aarch64" , target_arch = "riscv64" ) ) ] {
7- pub type c_char = u8 ;
8- } else {
9- pub type c_char = i8 ;
10- }
11- }
12-
136pub type c_schar = i8 ;
147pub type c_uchar = u8 ;
158pub type c_short = i16 ;
Original file line number Diff line number Diff line change 1+ pub use crate :: arch:: c_char_def as c_char;
12use crate :: prelude:: * ;
2-
33pub type size_t = usize ;
44pub type ssize_t = isize ;
55
66pub type off_t = i64 ;
77
8- cfg_if ! {
9- if #[ cfg( any( target_arch = "aarch64" , target_arch = "arm" ) ) ] {
10- pub type c_char = u8 ;
11- } else if #[ cfg( target_arch = "x86_64" ) ] {
12- pub type c_char = i8 ;
13- }
14- }
15-
168pub type c_schar = i8 ;
179pub type c_uchar = u8 ;
1810pub type c_short = i16 ;
Original file line number Diff line number Diff line change 1+ pub use crate :: arch:: c_char_def as c_char;
12use crate :: prelude:: * ;
23use crate :: { in6_addr, in_addr_t, timespec, DIR } ;
34
45pub type nlink_t = u16 ;
56pub type ino_t = u16 ;
67pub type blkcnt_t = u64 ;
78pub type blksize_t = i16 ;
8- cfg_if ! {
9- if #[ cfg( any(
10- target_arch = "arm" ,
11- target_arch = "riscv32" ,
12- target_arch = "riscv64" ,
13- ) ) ] {
14- pub type c_char = u8 ;
15- } else {
16- pub type c_char = i8 ;
17- }
18- }
199pub type c_long = isize ;
2010pub type c_ulong = usize ;
2111pub type cc_t = u8 ;
Original file line number Diff line number Diff line change 1+ pub use crate :: arch:: c_char_def as c_char;
12use crate :: prelude:: * ;
23
3- cfg_if ! {
4- if #[ cfg( target_arch = "aarch64" ) ] {
5- pub type c_char = u8 ;
6- } else {
7- pub type c_char = i8 ;
8- }
9- }
104pub type wchar_t = i32 ;
115
126cfg_if ! {
Original file line number Diff line number Diff line change 11use core:: mem:: size_of;
22
3+ pub use crate :: arch:: c_char_def as c_char;
34use crate :: prelude:: * ;
45
5- cfg_if ! {
6- if #[ cfg( target_arch = "aarch64" ) ] {
7- pub type c_char = u8 ;
8- } else {
9- pub type c_char = i8 ;
10- }
11- }
126pub type c_long = i64 ;
137pub type c_ulong = u64 ;
148pub type caddr_t = * mut c_char ;
You can’t perform that action at this time.
0 commit comments