8000 powerpc support by richo · Pull Request #20980 · rust-lang/rust · GitHub
[go: up one dir, main page]

Skip to content

powerpc support #20980

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 22 commits into from
Jan 15, 2015
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
powerpc: definition support for libc
  • Loading branch information
richo committed Jan 12, 2015
commit 7776820a032d60256c7dea3e95113045d026ddbd
25 changes: 18 additions & 7 deletions src/liblibc/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,8 @@ pub mod types {
#[cfg(any(target_arch = "x86",
target_arch = "arm",
target_arch = "mips",
target_arch = "mipsel"))]
target_arch = "mipsel",
target_arch = "powerpc"))]
pub mod arch {
pub mod c95 {
pub type c_char = i8;
Expand Down Expand Up @@ -528,7 +529,8 @@ pub mod types {
}
#[cfg(any(target_arch = "x86",
target_arch = "mips",
target_arch = "mipsel"))]
target_arch = "mipsel",
target_arch = "powerpc"))]
pub mod posix88 {
pub type off_t = i32;
pub type dev_t = u64;
Expand Down Expand Up @@ -642,7 +644,9 @@ pub mod types {
pub __size: [u32; 9]
}
}
#[cfg(any(target_arch = "mips", target_arch = "mipsel"))]
#[cfg(any(target_arch = "mips",
target_arch = "mipsel",
target_arch = "powerpc"))]
pub mod posix01 {
use types::os::arch::c95::{c_long, c_ulong, time_t};
use types::os::arch::posix88::{gid_t, ino_t};
Expand Down Expand Up @@ -2697,7 +2701,9 @@ pub mod consts {
pub const EHWPOISON: c_int = 133;
}

#[cfg(any(target_arch = "mips", target_arch = "mipsel"))]
#[cfg(any(target_arch = "mips",
target_arch = "mipsel",
target_arch = "powerpc"))]
pub mod posix88 {
use types::os::arch::c95::c_int;
use types::common::c95::c_void;
Expand Down Expand Up @@ -2982,7 +2988,8 @@ pub mod consts {
#[cfg(all(target_os = "linux",
any(target_arch = "mips",
target_arch = "mipsel",
target_arch = "aarch64")))]
target_arch = "aarch64",
target_arch = "powerpc")))]
pub const PTHREAD_STACK_MIN: size_t = 131072;

pub const CLOCK_REALTIME: c_int = 0;
Expand Down Expand Up @@ -3040,7 +3047,9 @@ pub mod consts {
pub const SHUT_WR: c_int = 1;
pub const SHUT_RDWR: c_int = 2;
}
#[cfg(any(target_arch = "mips", target_arch = "mipsel"))]
#[cfg(any(target_arch = "mips",
target_arch = "mipsel",
target_arch = "powerpc"))]
pub mod bsd44 {
use types::os::arch::c95::c_int;

Expand Down Expand Up @@ -3115,7 +3124,9 @@ pub mod consts {
pub const MAP_NONBLOCK : c_int = 0x010000;
pub const MAP_STACK : c_int = 0x020000;
}
#[cfg(any(target_arch = "mips", target_arch = "mipsel"))]
#[cfg(any(target_arch = "mips",
target_arch = "mipsel",
target_arch = "powerpc"))]
pub mod extra {
use types::os::arch::c95::c_int;

Expand Down
0