about summary refs log tree commit diff
path: root/src/libstd/rt/uv/file.rs
AgeCommit message (Collapse)AuthorLines
2013-10-29Register new snapshotsAlex Crichton-648/+0
2013-10-24Another round of test fixes and merge conflictsAlex Crichton-12/+21
2013-10-24Remove IoFactoryObject for ~IoFactoryAlex Crichton-25/+27
This involved changing a fair amount of code, rooted in how we access the local IoFactory instance. I added a helper method to the rtio module to access the optional local IoFactory. This is different than before in which it was assumed that a local IoFactory was *always* present. Now, a separate io_error is raised when an IoFactory is not present, yet I/O is requested.
2013-10-24Remove rt::io::supportAlex Crichton-51/+33
This removes the PathLike trait associated with this "support module". This is yet another "container of bytes" trait, so I didn't want to duplicate what already exists throughout libstd. In actuality, we're going to pass of C strings to the libuv APIs, so instead the arguments are now bound with the 'ToCStr' trait instead. Additionally, a layer of complexity was removed by immediately converting these type-generic parameters into CStrings to get handed off to libuv apis.
2013-10-23Removed Unnecessary comments and white spaces #4386reedlepee-1/+0
2013-10-23Making fields in std and extra : private #4386reedlepee-1/+2
2013-10-22Drop the '2' suffix from logging macrosAlex Crichton-1/+1
Who doesn't like a massive renaming?
2013-10-15path2: Adjust the API to remove all the _str mutation methodsKevin Ballard-6/+6
Add a new trait BytesContainer that is implemented for both byte vectors and strings. Convert Path::from_vec and ::from_str to one function, Path::new(). Remove all the _str-suffixed mutation methods (push, join, with_*, set_*) and modify the non-suffixed versions to use BytesContainer.
2013-10-15path2: Replace the path module outrightKevin Ballard-6/+6
Remove the old path. Rename path2 to path. Update all clients for the new path. Also make some miscellaneous changes to the Path APIs to help the adoption process.
2013-09-30std: Remove usage of fmt!Alex Crichton-2/+2
2013-09-26std: removed some warnings in tests.Erick Tryzelaar-6/+5
2013-09-26std and rustc: Convert users of c_str to use .with_c_strErick Tryzelaar-8/+8
2013-09-24Stop accepting 'impl ...;', require {} insteadAlex Crichton-1/+1
Progress on #7981
2013-09-16std: FsRequest.req_boilerplate() be &mut selfJeff Olson-17/+58
2013-09-16std: correctly pass STDOUT in to naive_print test fnJeff Olson-1/+1
2013-09-16std: unignore some file io tests that work on windows, nowJeff Olson-2/+0
2013-09-16std: bind uv_fs_readdir(), flesh out DirectoryInfo and docs/cleanupJeff Olson-8/+42
2013-09-16std: adding file::{stat,mkdir,rmdir}, FileInfo and FileReader/FileWriterJeff Olson-2/+4
add ignores for win32 tests on previous file io stuff...
2013-09-16merge cleanupJeff Olson-1/+2
2013-09-16std/rt: in-progress file io workJeff Olson-183/+327
std: remove unneeded field from RequestData struct std: rt::uv::file - map us_fs_stat & start refactoring calls into FsRequest std: stubbing out stat calls from the top-down into uvio std: us_fs_* operations are now by-val self methods on FsRequest std: post-rebase cleanup std: add uv_fs_mkdir|rmdir + tests & minor test cleanup in rt::uv::file WORKING: fleshing out FileStat and FileInfo + tests std: reverting test files.. refactoring back and cleanup...
2013-09-16std::rt::uv::file: Enable tests on Win32klutzy-2/+0
Closes #8814.
2013-09-06Upgrade libuv to the current master (again)Alex Crichton-12/+10
This is a reopening of the libuv-upgrade part of #8645. Hopefully this won't cause random segfaults all over the place. The windows regression in testing should also be fixed (it shouldn't build the whole compiler twice). A notable difference from before is that gyp is now a git submodule instead of always git-cloned at make time. This allows bundling for releases more easily. Closes #8850
2013-09-06auto merge of #9000 : brson/rust/dns, r=anasazibors-6/+8
This exposes a very simple function for resolving host names. There's a lot more that needs to be done, but this is probably enough for servo to get started connecting to real websites again.
2013-09-05std::rt: Some I/O cleanupBrian Anderson-6/+8
2013-09-05Rename str::from_bytes to str::from_utf8, closes #8985Florian Hahn-2/+2
2013-08-29auto merge of #8819 : vadimcn/rust/unit-tests, r=brsonbors-0/+2
Some of the tests are failing. I've only managed to fix 'memory_map_file', the rest are up for grabs... Fixes #5261.
2013-08-29Revert "auto merge of #8645 : alexcrichton/rust/issue-6436-run-non-blocking, ↵Brian Anderson-11/+14
r=brson" This reverts commit b8d1fa399402c71331aefd634d710004e00b73a6, reversing changes made to f22b4b169854c8a4ba86c16ee43327d6bcf94562. Conflicts: mk/rt.mk src/libuv
2013-08-28Turned off libstd unit tests that currently fail on Windows.Vadim Chugunov-0/+2
2013-08-27Implement process bindings to libuvAlex Crichton-14/+11
Closes #6436
2013-08-22make check appeasementJeff Olson-1/+2
2013-08-22std: all of the calls in rt::uv::file take a &LoopJeff Olson-37/+37
2013-08-22std: moved static file actions (open,unlink) to FsRequestJeff Olson-61/+61
2013-08-22std: reform fn sigs of FileDescriptor methods (better result signalling)Jeff Olson-42/+46
2013-08-22std: rename tmp file paths to go into ./tmp folder in builddirJeff Olson-2/+2
2013-08-22change FileDescriptor instance methods to use &mut selfJeff Olson-11/+11
2013-08-22std: writing to stdout only works when using -1 offset..Jeff Olson-1/+1
2013-08-22std: rt::io::file::FileStream fleshed out.. needs more work.. see extendedJeff Olson-17/+23
- change all uses of Path in fn args to &P - FileStream.read assumptions were wrong (libuv file io is non-positional) - the above will mean that we "own" Seek impl info .. should probably push it in UvFileDescriptor.. - needs more tests
2013-08-22std: remove fcntl const bindings + making valgrind clean w/ no owned vecsJeff Olson-124/+68
2013-08-22std: support async/threadpool & sync paths in uv_fs_* calls + add sync testJeff Olson-35/+169
2013-08-22std: add read and unlink to low-level FileDescriptor + end-to-end CRUD testJeff Olson-53/+106
2013-08-22std: working tests for low-level libuv open, write and close operationsJeff Olson-12/+107
2013-08-22std: bootstrapping libuv-based fileio in newrt... open & closeJeff Olson-9/+160
the test "touch"es a new file
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-0/+48
This only changes the directory names; it does not change the "real" metadata names.