aienux
Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.
Brought by drakestapleton
aienux / vendor / libc / src / unix / newlib / generic.rs
| 1 | //! Common types used by most newlib platforms |
| 2 | |
| 3 | #[allow(unused_imports)] // needed for platforms that don't use the prelude here |
| 4 | use crate::prelude::*; |
| 5 | |
| 6 | s! { |
| 7 | #[cfg(all(not(target_os = "vita"), not(target_os = "horizon")))] |
| 8 | pub struct sigset_t { |
| 9 | __val: u32, |
| 10 | } |
| 11 | |
| 12 | #[cfg(all(not(target_os = "vita"), not(target_os = "horizon")))] |
| 13 | pub struct stat { |
| 14 | pub st_dev: crate::dev_t, |
| 15 | pub st_ino: crate::ino_t, |
| 16 | pub st_mode: crate::mode_t, |
| 17 | pub st_nlink: crate::nlink_t, |
| 18 | pub st_uid: crate::uid_t, |
| 19 | pub st_gid: crate::gid_t, |
| 20 | pub st_rdev: crate::dev_t, |
| 21 | pub st_size: crate::off_t, |
| 22 | pub st_atime: crate::time_t, |
| 23 | pub st_spare1: c_long, |
| 24 | pub st_mtime: crate::time_t, |
| 25 | pub st_spare2: c_long, |
| 26 | pub st_ctime: crate::time_t, |
| 27 | pub st_spare3: c_long, |
| 28 | pub st_blksize: crate::blksize_t, |
| 29 | pub st_blocks: crate::blkcnt_t, |
| 30 | pub st_spare4: [c_long; 2usize], |
| 31 | } |
| 32 | |
| 33 | #[cfg(not(target_os = "vita"))] |
| 34 | pub struct dirent { |
| 35 | pub d_ino: crate::ino_t, |
| 36 | pub d_type: c_uchar, |
| 37 | pub d_name: [c_char; 256usize], |
| 38 | } |
| 39 | } |