Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions src/unix/newlib/generic.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! Common types used by most newlib platforms

use crate::off_t;
#[allow(unused_imports)] // needed for platforms that don't use the prelude here
use crate::prelude::*;

Expand All @@ -9,7 +9,6 @@ s! {
__val: u32,
}

#[cfg(all(not(target_os = "vita"), not(target_os = "horizon")))]
pub struct stat {
pub st_dev: crate::dev_t,
pub st_ino: crate::ino_t,
Expand All @@ -18,13 +17,10 @@ s! {
pub st_uid: crate::uid_t,
pub st_gid: crate::gid_t,
pub st_rdev: crate::dev_t,
pub st_size: crate::off_t,
pub st_atime: crate::time_t,
pub st_spare1: c_long,
pub st_mtime: crate::time_t,
pub st_spare2: c_long,
pub st_ctime: crate::time_t,
pub st_spare3: c_long,
pub st_size: off_t,
pub st_atim: crate::timespec,
pub st_mtim: crate::timespec,
pub st_ctim: crate::timespec,
pub st_blksize: crate::blksize_t,
pub st_blocks: crate::blkcnt_t,
pub st_spare4: [c_long; 2usize],
Expand Down
18 changes: 0 additions & 18 deletions src/unix/newlib/horizon/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//! ARMv6K Nintendo 3DS C Newlib definitions

use crate::off_t;
use crate::prelude::*;

pub type wchar_t = c_uint;
Expand Down Expand Up @@ -68,23 +67,6 @@ s! {
pub struct sched_param {
pub sched_priority: c_int,
}

pub struct stat {
pub st_dev: crate::dev_t,
pub st_ino: crate::ino_t,
pub st_mode: crate::mode_t,
pub st_nlink: crate::nlink_t,
pub st_uid: crate::uid_t,
pub st_gid: crate::gid_t,
pub st_rdev: crate::dev_t,
pub st_size: off_t,
pub st_atim: crate::timespec,
pub st_mtim: crate::timespec,
pub st_ctim: crate::timespec,
pub st_blksize: crate::blksize_t,
pub st_blocks: crate::blkcnt_t,
pub st_spare4: [c_long; 2usize],
}
}

pub const SIGEV_NONE: c_int = 1;
Expand Down
18 changes: 0 additions & 18 deletions src/unix/newlib/vita/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use crate::off_t;
use crate::prelude::*;

pub type clock_t = c_long;
Expand Down Expand Up @@ -61,23 +60,6 @@ s! {
pub sched_priority: c_int,
}

pub struct stat {
pub st_dev: crate::dev_t,
pub st_ino: crate::ino_t,
pub st_mode: crate::mode_t,
pub st_nlink: crate::nlink_t,
pub st_uid: crate::uid_t,
pub st_gid: crate::gid_t,
pub st_rdev: crate::dev_t,
pub st_size: off_t,
pub st_atime: crate::time_t,
pub st_mtime: crate::time_t,
pub st_ctime: crate::time_t,
pub st_blksize: crate::blksize_t,
pub st_blocks: crate::blkcnt_t,
pub st_spare4: [c_long; 2usize],
}

#[repr(align(8))]
pub struct dirent {
__offset: [u8; 88],
Expand Down