about summary refs log tree commit diff
path: root/src/rt
diff options
context:
space:
mode:
authorJeff Olson <olson.jeffery@gmail.com>2013-02-13 23:00:34 -0800
committerBrian Anderson <banderson@mozilla.com>2013-03-11 15:38:55 -0700
commit4bc26ce575b4bc6f7254a2cfe9fee0a08de90b49 (patch)
tree53613ff1aa63c894971872fd5f2510c703362ccb /src/rt
parent878a31066d9f5cbe7e81433c64cbd00e6b024551 (diff)
downloadrust-4bc26ce575b4bc6f7254a2cfe9fee0a08de90b49.tar.gz
rust-4bc26ce575b4bc6f7254a2cfe9fee0a08de90b49.zip
rt/core: impl os::getcwd() in rust ref #4812
Diffstat (limited to 'src/rt')
-rw-r--r--src/rt/rust_builtin.cpp19
-rw-r--r--src/rt/rustrt.def.in2
2 files changed, 0 insertions, 21 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp
index 1243d824603..750962b37e8 100644
--- a/src/rt/rust_builtin.cpp
+++ b/src/rt/rust_builtin.cpp
@@ -52,25 +52,6 @@ timegm(struct tm *tm)
 }
 #endif
 
-extern "C" CDECL rust_str *
-rust_getcwd() {
-    rust_task *task = rust_get_current_task();
-    LOG(task, task, "rust_getcwd()");
-
-    char cbuf[BUF_BYTES];
-
-#if defined(__WIN32__)
-    if (!_getcwd(cbuf, sizeof(cbuf))) {
-#else
-        if (!getcwd(cbuf, sizeof(cbuf))) {
-#endif
-        task->fail();
-        return NULL;
-    }
-
-    return make_str(task->kernel, cbuf, strlen(cbuf), "rust_str(getcwd)");
-}
-
 #if defined(__WIN32__)
 extern "C" CDECL rust_vec_box *
 rust_env_pairs() {
diff --git a/src/rt/rustrt.def.in b/src/rt/rustrt.def.in
index fca10ac3ef4..ddbd4729782 100644
--- a/src/rt/rustrt.def.in
+++ b/src/rt/rustrt.def.in
@@ -29,7 +29,6 @@ rust_new_task_in_sched
 rust_num_threads
 rust_path_is_dir
 rust_path_exists
-rust_getcwd
 rust_get_stdin
 rust_get_stdout
 rust_get_stderr
@@ -43,7 +42,6 @@ rust_sched_current_nonlazy_threads
 rust_sched_threads
 rust_set_exit_status
 rust_start
-rust_getcwd
 rust_env_pairs
 rust_task_yield
 rust_task_is_unwinding