xref: /aosp_15_r20/external/cronet/third_party/rust/chromium_crates_io/vendor/libc-0.2.153/src/fuchsia/riscv64.rs (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1 // From psABI Calling Convention for RV64
2 pub type c_char = u8;
3 pub type __u64 = ::c_ulonglong;
4 pub type wchar_t = i32;
5 
6 pub type nlink_t = ::c_ulong;
7 pub type blksize_t = ::c_long;
8 
9 pub type stat64 = stat;
10 s! {
11     pub struct stat {
12         pub st_dev: ::dev_t,
13         pub st_ino: ::ino_t,
14         pub st_nlink: ::nlink_t,
15         pub st_mode: ::mode_t,
16         pub st_uid: ::uid_t,
17         pub st_gid: ::gid_t,
18         __pad0: ::c_int,
19         pub st_rdev: ::dev_t,
20         pub st_size: ::off_t,
21         pub st_blksize: ::blksize_t,
22         pub st_blocks: ::blkcnt_t,
23         pub st_atime: ::time_t,
24         pub st_atime_nsec: ::c_long,
25         pub st_mtime: ::time_t,
26         pub st_mtime_nsec: ::c_long,
27         pub st_ctime: ::time_t,
28         pub st_ctime_nsec: ::c_long,
29         __unused: [::c_long; 3],
30     }
31 
32     // Not actually used, IPC calls just return ENOSYS
33     pub struct ipc_perm {
34         pub __ipc_perm_key: ::key_t,
35         pub uid: ::uid_t,
36         pub gid: ::gid_t,
37         pub cuid: ::uid_t,
38         pub cgid: ::gid_t,
39         pub mode: ::mode_t,
40         pub __seq: ::c_ushort,
41         __unused1: ::c_ulong,
42         __unused2: ::c_ulong,
43     }
44 }
45