about summary refs log tree commit diff
path: root/src/libcore/io.rs
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2012-07-03 16:11:00 -0700
committerGraydon Hoare <graydon@mozilla.com>2012-07-03 16:11:00 -0700
commitdebb7e4641af2ea71cf8733b3f071d614803dcbd (patch)
tree3c087869d79d340300a1383b95b994b2fce43517 /src/libcore/io.rs
parent7259195caff1fdcce6266e6ecf51c0fd614e041f (diff)
downloadrust-debb7e4641af2ea71cf8733b3f071d614803dcbd.tar.gz
rust-debb7e4641af2ea71cf8733b3f071d614803dcbd.zip
Switch 'native' to 'extern' (or 'foreign' in some descriptions)
Diffstat (limited to 'src/libcore/io.rs')
-rw-r--r--src/libcore/io.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/io.rs b/src/libcore/io.rs
index 8527f58ca6c..08da519a1bc 100644
--- a/src/libcore/io.rs
+++ b/src/libcore/io.rs
@@ -14,7 +14,7 @@ import libc::consts::os::extra::*;
 type fd_t = c_int;
 
 #[abi = "cdecl"]
-native mod rustrt {
+extern mod rustrt {
     fn rust_get_stdin() -> *libc::FILE;
     fn rust_get_stdout() -> *libc::FILE;
     fn rust_get_stderr() -> *libc::FILE;
@@ -377,11 +377,11 @@ impl of writer for fd_t {
         }
     }
     fn seek(_offset: int, _whence: seek_style) {
-        #error("need 64-bit native calls for seek, sorry");
+        #error("need 64-bit foreign calls for seek, sorry");
         fail;
     }
     fn tell() -> uint {
-        #error("need 64-bit native calls for tell, sorry");
+        #error("need 64-bit foreign calls for tell, sorry");
         fail;
     }
     fn flush() -> int { 0 }