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
11 changes: 11 additions & 0 deletions src/unix/linux_like/linux/musl/b32/powerpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ use crate::prelude::*;
pub type wchar_t = i32;

s! {
pub struct termios {
pub c_iflag: crate::tcflag_t,
pub c_oflag: crate::tcflag_t,
pub c_cflag: crate::tcflag_t,
pub c_lflag: crate::tcflag_t,
pub c_cc: [crate::cc_t; crate::NCCS],
pub c_line: crate::cc_t,
pub __c_ispeed: crate::speed_t,
pub __c_ospeed: crate::speed_t,
}

pub struct stat {
pub st_dev: crate::dev_t,
pub st_ino: crate::ino_t,
Expand Down
11 changes: 11 additions & 0 deletions src/unix/linux_like/linux/musl/b64/powerpc64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ pub type nlink_t = u64;
pub type blksize_t = c_long;

s! {
pub struct termios {
pub c_iflag: crate::tcflag_t,
pub c_oflag: crate::tcflag_t,
pub c_cflag: crate::tcflag_t,
pub c_lflag: crate::tcflag_t,
pub c_cc: [crate::cc_t; crate::NCCS],
pub c_line: crate::cc_t,
pub __c_ispeed: crate::speed_t,
pub __c_ospeed: crate::speed_t,
}

pub struct stat {
pub st_dev: crate::dev_t,
pub st_ino: crate::ino_t,
Expand Down
2 changes: 2 additions & 0 deletions src/unix/linux_like/linux/musl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ s! {
__f_reserved: [c_int; 6],
}

// PowerPC implementations are special, see the subfolders
#[cfg(not(any(target_arch = "powerpc", target_arch = "powerpc64")))]
pub struct termios {
pub c_iflag: crate::tcflag_t,
pub c_oflag: crate::tcflag_t,
Expand Down
Loading