aboutsummaryrefslogtreecommitdiff
path: root/src/lib/posix_FS.rs
diff options
context:
space:
mode:
authorMarijn Haverbeke <[email protected]>2011-05-12 17:24:54 +0200
committerMarijn Haverbeke <[email protected]>2011-05-12 21:30:44 +0200
commit3816e57fd2a8ab19e4ac6d4b3ddd5b49d5973ff2 (patch)
tree508982ed2f789aedd89eebd529343d9dc88b8e01 /src/lib/posix_FS.rs
parentTransitional change to make extfmt output lowercase module name (diff)
downloadrust-3816e57fd2a8ab19e4ac6d4b3ddd5b49d5973ff2.tar.xz
rust-3816e57fd2a8ab19e4ac6d4b3ddd5b49d5973ff2.zip
Downcase std modules again, move to :: for module dereferencing
This should be a snapshot transition.
Diffstat (limited to 'src/lib/posix_FS.rs')
-rw-r--r--src/lib/posix_FS.rs32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/lib/posix_FS.rs b/src/lib/posix_FS.rs
deleted file mode 100644
index b1f01a66..00000000
--- a/src/lib/posix_FS.rs
+++ /dev/null
@@ -1,32 +0,0 @@
-native "rust" mod rustrt {
- fn rust_dirent_filename(OS.libc.dirent ent) -> str;
-}
-
-fn list_dir(str path) -> vec[str] {
- // TODO ensure this is always closed
- auto dir = OS.libc.opendir(Str.buf(path));
- assert (dir as uint != 0u);
- let vec[str] result = vec();
- while (true) {
- auto ent = OS.libc.readdir(dir);
- if (ent as int == 0) {
- OS.libc.closedir(dir);
- ret result;
- }
- Vec.push[str](result, rustrt.rust_dirent_filename(ent));
- }
- OS.libc.closedir(dir);
- ret result;
-}
-
-const char path_sep = '/';
-const char alt_path_sep = '/';
-
-// Local Variables:
-// mode: rust;
-// fill-column: 78;
-// indent-tabs-mode: nil
-// c-basic-offset: 4
-// buffer-file-coding-system: utf-8-unix
-// compile-command: "make -k -C .. 2>&1 | sed -e 's/\\/x\\//x:\\//g'";
-// End: