about summary refs log tree commit diff
path: root/src/libcore/sys.rs
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-04-19 01:26:17 -0700
committerBrian Anderson <banderson@mozilla.com>2012-04-19 01:26:17 -0700
commit7a1dc76b0f57e6e4b1ab21261f9fbbea6a8a9a26 (patch)
tree95175d1343ab850ed0f0e6991889546f45dc0f10 /src/libcore/sys.rs
parent1cad6322c36f480aee7ea9f5a5776e1271abbf67 (diff)
core: Move set_exit_status from sys to os
Diffstat (limited to 'src/libcore/sys.rs')
-rw-r--r--src/libcore/sys.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/libcore/sys.rs b/src/libcore/sys.rs
index ce83ab596e2..0d9478f8b0b 100644
--- a/src/libcore/sys.rs
+++ b/src/libcore/sys.rs
@@ -6,7 +6,6 @@ export size_of;
 export align_of;
 export refcount;
 export log_str;
-export set_exit_status;
 
 enum type_desc = {
     first_param: **libc::c_int,
@@ -20,7 +19,6 @@ native mod rustrt {
     fn refcount<T>(t: @T) -> libc::intptr_t;
     fn unsupervise();
     fn shape_log_str<T>(t: *sys::type_desc, data: T) -> str;
-    fn rust_set_exit_status(code: libc::intptr_t);
 }
 
 #[abi = "rust-intrinsic"]
@@ -59,18 +57,6 @@ fn log_str<T>(t: T) -> str {
     rustrt::shape_log_str(get_type_desc::<T>(), t)
 }
 
-#[doc = "
-Sets the process exit code
-
-Sets the exit code returned by the process if all supervised tasks terminate
-successfully (without failing). If the current root task fails and is
-supervised by the scheduler then any user-specified exit status is ignored and
-the process exits with the default failure status
-"]
-fn set_exit_status(code: int) {
-    rustrt::rust_set_exit_status(code as libc::intptr_t);
-}
-
 #[cfg(test)]
 mod tests {