Skip to content

Commit b9326d7

Browse files
committed
---
yaml --- r: 181064 b: refs/heads/master c: f1bb6c2 h: refs/heads/master v: v3
1 parent 7251456 commit b9326d7

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
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 35ee89599cb50be74270e6475f4bbe182e769892
2+
refs/heads/master: f1bb6c2f46f08c1d7b6d695f5b3cf93142cb8860
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: f1bb6c2f46f08c1d7b6d695f5b3cf93142cb8860
55
refs/heads/try: ccf8fedf1cffcb8f6f3581d53d220039e192fe77

trunk/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

trunk/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")]

trunk/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 => {}

trunk/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)