diff options
| author | Jeff Olson <olson.jeffery@gmail.com> | 2013-02-13 23:00:34 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2013-03-11 15:38:55 -0700 |
| commit | 4bc26ce575b4bc6f7254a2cfe9fee0a08de90b49 (patch) | |
| tree | 53613ff1aa63c894971872fd5f2510c703362ccb /src/rt/rust_builtin.cpp | |
| parent | 878a31066d9f5cbe7e81433c64cbd00e6b024551 (diff) | |
| download | rust-4bc26ce575b4bc6f7254a2cfe9fee0a08de90b49.tar.gz rust-4bc26ce575b4bc6f7254a2cfe9fee0a08de90b49.zip | |
rt/core: impl os::getcwd() in rust ref #4812
Diffstat (limited to 'src/rt/rust_builtin.cpp')
| -rw-r--r-- | src/rt/rust_builtin.cpp | 19 |
1 files changed, 0 insertions, 19 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() { |
