Skip to content
Merged
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
2 changes: 0 additions & 2 deletions etc/libc-util.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,6 @@ class CheckAllTargets:
# libc problems
("aarch64-unknown-nto-qnx800", "libc error, unsupported arch"),
("aarch64.*-gnu_ilp32.*time_bits=64", "libc error, time64 mismatches"),
("armv6k-nintendo-3ds", "libc error, stat missing"),
("armv7-sony-vita-newlibeabihf", "libc error, stat missing"),
("csky.*gnu.*time_bits=64", "libc error, time64 mismatches"),
("i686-pc-nto-qnx700", "libc error, unsupported arch"),
("managarm-mlibc", "libc error, unresolved import"),
Expand Down
4 changes: 2 additions & 2 deletions src/unix/newlib/generic.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//! 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,6 +8,7 @@ s! {
__val: u32,
}

#[cfg(not(target_os = "vita"))]
pub struct stat {
pub st_dev: crate::dev_t,
pub st_ino: crate::ino_t,
Expand All @@ -17,7 +17,7 @@ s! {
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_size: crate::off_t,
pub st_atim: crate::timespec,
pub st_mtim: crate::timespec,
pub st_ctim: crate::timespec,
Expand Down
5 changes: 4 additions & 1 deletion src/unix/newlib/horizon/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,4 +265,7 @@ extern "C" {
pub fn gethostid() -> c_long;
}

pub use crate::unix::newlib::generic::dirent;
pub use crate::unix::newlib::generic::{
dirent,
stat,
};
17 changes: 17 additions & 0 deletions src/unix/newlib/vita/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,23 @@ 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: crate::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