1 //! Common types used by most newlib platforms
2 
3 s! {
4     pub struct sigset_t {
5         #[cfg(target_os = "horizon")]
6         __val: [::c_ulong; 16],
7         #[cfg(not(target_os = "horizon"))]
8         __val: u32,
9     }
10 
11     pub struct stat {
12         pub st_dev: ::dev_t,
13         pub st_ino: ::ino_t,
14         pub st_mode: ::mode_t,
15         pub st_nlink: ::nlink_t,
16         pub st_uid: ::uid_t,
17         pub st_gid: ::gid_t,
18         pub st_rdev: ::dev_t,
19         pub st_size: ::off_t,
20         pub st_atime: ::time_t,
21         pub st_spare1: ::c_long,
22         pub st_mtime: ::time_t,
23         pub st_spare2: ::c_long,
24         pub st_ctime: ::time_t,
25         pub st_spare3: ::c_long,
26         pub st_blksize: ::blksize_t,
27         pub st_blocks: ::blkcnt_t,
28         pub st_spare4: [::c_long; 2usize],
29     }
30 
31     pub struct dirent {
32         pub d_ino: ::ino_t,
33         pub d_type: ::c_uchar,
34         pub d_name: [::c_char; 256usize],
35     }
36 }
37