Skip to content

Commit c3ea875

Browse files
committed
---
yaml --- r: 183707 b: refs/heads/beta c: f1bb6c2 h: refs/heads/master i: 183705: a5ab421 183703: b754dce v: v3
1 parent 22f8347 commit c3ea875

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
3232
refs/heads/batch: b7fd822592a4fb577552d93010c4a4e14f314346
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
34-
refs/heads/beta: 35ee89599cb50be74270e6475f4bbe182e769892
34+
refs/heads/beta: f1bb6c2f46f08c1d7b6d695f5b3cf93142cb8860
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
3737
refs/heads/tmp: eb836bf767aa1d8d4cba488a9091cde3c0ab4b2f

branches/beta/src/libstd/old_io/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ impl IoError {
338338
/// If `detail` is `true`, the `detail` field of the `IoError`
339339
/// struct is filled with an allocated string describing the error
340340
/// in more detail, retrieved from the operating system.
341-
pub fn from_errno(errno: uint, detail: bool) -> IoError {
341+
pub fn from_errno(errno: i32, detail: bool) -> IoError {
342342
let mut err = sys::decode_error(errno as i32);
343343
if detail && err.kind == OtherIoError {
344344
err.detail = Some(os::error_string(errno).chars()
@@ -354,7 +354,7 @@ impl IoError {
354354
/// operating system) between the call(s) for which errors are
355355
/// being checked and the call of this function.
356356
pub fn last_error() -> IoError {
357-
IoError::from_errno(os::errno() as uint, true)
357+
IoError::from_errno(os::errno(), true)
358358
}
359359
}
360360

branches/beta/src/libstd/os.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -514,8 +514,8 @@ pub fn change_dir(p: &Path) -> IoResult<()> {
514514
}
515515

516516
/// Returns the platform-specific value of errno
517-
pub fn errno() -> uint {
518-
sys::os::errno() as uint
517+
pub fn errno() -> i32 {
518+
sys::os::errno() as i32
519519
}
520520

521521
/// Return the string corresponding to an `errno()` value of `errnum`.
@@ -525,15 +525,15 @@ pub fn errno() -> uint {
525525
/// use std::os;
526526
///
527527
/// // Same as println!("{}", last_os_error());
528-
/// println!("{}", os::error_string(os::errno() as uint));
528+
/// println!("{}", os::error_string(os::errno() as i32));
529529
/// ```
530-
pub fn error_string(errnum: uint) -> String {
531-
return sys::os::error_string(errnum as i32);
530+
pub fn error_string(errnum: i32) -> String {
531+
return sys::os::error_string(errnum);
532532
}
533533

534534
/// Get a string representing the platform-dependent last error
535535
pub fn last_os_error() -> String {
536-
error_string(errno() as uint)
536+
error_string(errno())
537537
}
538538

539539
/// Sets the process exit code
@@ -845,13 +845,13 @@ pub enum MapError {
845845
ErrAlreadyExists,
846846
/// Unrecognized error from `VirtualAlloc`. The inner value is the return
847847
/// value of GetLastError.
848-
ErrVirtualAlloc(uint),
848+
ErrVirtualAlloc(i32),
849849
/// Unrecognized error from `CreateFileMapping`. The inner value is the
850850
/// return value of `GetLastError`.
851-
ErrCreateFileMappingW(uint),
851+
ErrCreateFileMappingW(i32),
852852
/// Unrecognized error from `MapViewOfFile`. The inner value is the return
853853
/// value of `GetLastError`.
854-
ErrMapViewOfFile(uint)
854+
ErrMapViewOfFile(i32)
855855
}
856856

857857
#[stable(feature = "rust1", since = "1.0.0")]

branches/beta/src/libstd/sys/unix/process.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ impl Process {
394394
match unsafe { c::select(max, &mut set, ptr::null_mut(),
395395
ptr::null_mut(), p) } {
396396
// interrupted, retry
397-
-1 if os::errno() == libc::EINTR as uint => continue,
397+
-1 if os::errno() == libc::EINTR as i32 => continue,
398398

399399
// We read something, break out and process
400400
1 | 2 => {}

branches/beta/src/libstd/sys/unix/timer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ fn helper(input: libc::c_int, messages: Receiver<Req>, _: ()) {
198198
assert_eq!(fd.read(&mut buf).ok().unwrap(), 1);
199199
}
200200

201-
-1 if os::errno() == libc::EINTR as uint => {}
201+
-1 if os::errno() == libc::EINTR as i32 => {}
202202
n => panic!("helper thread failed in select() with error: {} ({})",
203203
n, os::last_os_error())
204204
}

0 commit comments

Comments
 (0)