提交 0b517117 编写于 作者: A Alex Crichton

Test fixes and rebase conflicts

上级 a3e8f412
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
pub const WSADESCRIPTION_LEN: uint = 256; pub const WSADESCRIPTION_LEN: uint = 256;
pub const WSASYS_STATUS_LEN: uint = 128; pub const WSASYS_STATUS_LEN: uint = 128;
pub const FIONBIO: libc::c_long = 0x8004667e; pub const FIONBIO: libc::c_long = 0x8004667e;
static FD_SETSIZE: uint = 64; pub const FD_SETSIZE: uint = 64;
pub const MSG_DONTWAIT: libc::c_int = 0; pub const MSG_DONTWAIT: libc::c_int = 0;
pub const ERROR_ILLEGAL_CHARACTER: libc::c_int = 582; pub const ERROR_ILLEGAL_CHARACTER: libc::c_int = 582;
pub const ENABLE_ECHO_INPUT: libc::DWORD = 0x4; pub const ENABLE_ECHO_INPUT: libc::DWORD = 0x4;
......
...@@ -364,20 +364,20 @@ mod os { ...@@ -364,20 +364,20 @@ mod os {
use libc; use libc;
#[cfg(target_arch = "x86_64")] #[cfg(target_arch = "x86_64")]
static __PTHREAD_MUTEX_SIZE__: uint = 56; const __PTHREAD_MUTEX_SIZE__: uint = 56;
#[cfg(target_arch = "x86_64")] #[cfg(target_arch = "x86_64")]
static __PTHREAD_COND_SIZE__: uint = 40; const __PTHREAD_COND_SIZE__: uint = 40;
#[cfg(target_arch = "x86")] #[cfg(target_arch = "x86")]
static __PTHREAD_MUTEX_SIZE__: uint = 40; const __PTHREAD_MUTEX_SIZE__: uint = 40;
#[cfg(target_arch = "x86")] #[cfg(target_arch = "x86")]
static __PTHREAD_COND_SIZE__: uint = 24; const __PTHREAD_COND_SIZE__: uint = 24;
#[cfg(target_arch = "arm")] #[cfg(target_arch = "arm")]
static __PTHREAD_MUTEX_SIZE__: uint = 40; const __PTHREAD_MUTEX_SIZE__: uint = 40;
#[cfg(target_arch = "arm")] #[cfg(target_arch = "arm")]
static __PTHREAD_COND_SIZE__: uint = 24; const __PTHREAD_COND_SIZE__: uint = 24;
static _PTHREAD_MUTEX_SIG_INIT: libc::c_long = 0x32AAABA7; const _PTHREAD_MUTEX_SIG_INIT: libc::c_long = 0x32AAABA7;
static _PTHREAD_COND_SIG_INIT: libc::c_long = 0x3CB0B1BB; const _PTHREAD_COND_SIG_INIT: libc::c_long = 0x3CB0B1BB;
#[repr(C)] #[repr(C)]
pub struct pthread_mutex_t { pub struct pthread_mutex_t {
......
...@@ -45,8 +45,8 @@ pub fn log_enabled() -> bool { ...@@ -45,8 +45,8 @@ pub fn log_enabled() -> bool {
val == 2 val == 2
} }
#[cfg(target_word_size = "64")] static HEX_WIDTH: uint = 18; #[cfg(target_word_size = "64")] const HEX_WIDTH: uint = 18;
#[cfg(target_word_size = "32")] static HEX_WIDTH: uint = 10; #[cfg(target_word_size = "32")] const HEX_WIDTH: uint = 10;
// All rust symbols are in theory lists of "::"-separated identifiers. Some // All rust symbols are in theory lists of "::"-separated identifiers. Some
// assemblers, however, can't handle these characters in symbol names. To get // assemblers, however, can't handle these characters in symbol names. To get
...@@ -273,7 +273,7 @@ fn backtrace(buf: *mut *mut libc::c_void, ...@@ -273,7 +273,7 @@ fn backtrace(buf: *mut *mut libc::c_void,
try!(writeln!(w, "stack backtrace:")); try!(writeln!(w, "stack backtrace:"));
// 100 lines should be enough // 100 lines should be enough
static SIZE: uint = 100; const SIZE: uint = 100;
let mut buf: [*mut libc::c_void, ..SIZE] = unsafe {mem::zeroed()}; let mut buf: [*mut libc::c_void, ..SIZE] = unsafe {mem::zeroed()};
let cnt = unsafe { backtrace(buf.as_mut_ptr(), SIZE as libc::c_int) as uint}; let cnt = unsafe { backtrace(buf.as_mut_ptr(), SIZE as libc::c_int) as uint};
...@@ -697,10 +697,10 @@ mod imp { ...@@ -697,10 +697,10 @@ mod imp {
*mut libc::c_void, *mut libc::c_void, *mut libc::c_void, *mut libc::c_void,
*mut libc::c_void, *mut libc::c_void) -> libc::BOOL; *mut libc::c_void, *mut libc::c_void) -> libc::BOOL;
static MAX_SYM_NAME: uint = 2000; const MAX_SYM_NAME: uint = 2000;
static IMAGE_FILE_MACHINE_I386: libc::DWORD = 0x014c; const IMAGE_FILE_MACHINE_I386: libc::DWORD = 0x014c;
static IMAGE_FILE_MACHINE_IA64: libc::DWORD = 0x0200; const IMAGE_FILE_MACHINE_IA64: libc::DWORD = 0x0200;
static IMAGE_FILE_MACHINE_AMD64: libc::DWORD = 0x8664; const IMAGE_FILE_MACHINE_AMD64: libc::DWORD = 0x8664;
#[repr(C)] #[repr(C)]
struct SYMBOL_INFO { struct SYMBOL_INFO {
...@@ -772,7 +772,7 @@ struct KDHELP64 { ...@@ -772,7 +772,7 @@ struct KDHELP64 {
mod arch { mod arch {
use libc; use libc;
static MAXIMUM_SUPPORTED_EXTENSION: uint = 512; const MAXIMUM_SUPPORTED_EXTENSION: uint = 512;
#[repr(C)] #[repr(C)]
pub struct CONTEXT { pub struct CONTEXT {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册