Skip to content

Commit da46c11

Browse files
committed
---
yaml --- r: 145198 b: refs/heads/try2 c: 055488d h: refs/heads/master v: v3
1 parent 67f2285 commit da46c11

File tree

3 files changed

+24
-23
lines changed

3 files changed

+24
-23
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: af650572e0fceb94b387db50ee31f19ee000fe4b
8+
refs/heads/try2: 055488df1a6a4500de565ac2531d7bc42dd02f83
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/libstd/rt/uv/file.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,9 @@ impl FsRequest {
183183
// accessors/utility funcs
184184
fn sync_cleanup(self, result: c_int)
185185
-> Result<c_int, UvError> {
186+
let loop_ = self.get_loop().native_handle();
186187
self.cleanup_and_delete();
187-
match status_to_maybe_uv_error(result as i32) {
188+
match status_to_maybe_uv_error_with_loop(loop_,result as i32) {
188189
Some(err) => Err(err),
189190
None => Ok(result)
190191
}

branches/try2/src/rt/rust_uv.cpp

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -562,27 +562,27 @@ rust_uv_fs_fstat(uv_loop_t* loop, uv_fs_t* req, uv_file file, uv_fs_cb cb) {
562562
}
563563

564564
extern "C" void
565-
rust_uv_populate_uv_stat(uv_fs_t* req_in, uv_stat_t* stat_out) {
566-
stat_out->st_dev = req_in->statbuf.st_dev;
567-
stat_out->st_mode = req_in->statbuf.st_mode;
568-
stat_out->st_nlink = req_in->statbuf.st_nlink;
569-
stat_out->st_uid = req_in->statbuf.st_uid;
570-
stat_out->st_gid = req_in->statbuf.st_gid;
571-
stat_out->st_rdev = req_in->statbuf.st_rdev;
572-
stat_out->st_ino = req_in->statbuf.st_ino;
573-
stat_out->st_size = req_in->statbuf.st_size;
574-
stat_out->st_blksize = req_in->statbuf.st_blksize;
575-
stat_out->st_blocks = req_in->statbuf.st_blocks;
576-
stat_out->st_flags = req_in->statbuf.st_flags;
577-
stat_out->st_gen = req_in->statbuf.st_gen;
578-
stat_out->st_atim.tv_sec = req_in->statbuf.st_atim.tv_sec;
579-
stat_out->st_atim.tv_nsec = req_in->statbuf.st_atim.tv_nsec;
580-
stat_out->st_mtim.tv_sec = req_in->statbuf.st_mtim.tv_sec;
581-
stat_out->st_mtim.tv_nsec = req_in->statbuf.st_mtim.tv_nsec;
582-
stat_out->st_ctim.tv_sec = req_in->statbuf.st_ctim.tv_sec;
583-
stat_out->st_ctim.tv_nsec = req_in->statbuf.st_ctim.tv_nsec;
584-
stat_out->st_birthtim.tv_sec = req_in->statbuf.st_birthtim.tv_sec;
585-
stat_out->st_birthtim.tv_nsec = req_in->statbuf.st_birthtim.tv_nsec;
565+
rust_uv_populate_uv_stat(uv_fs_t* req_in, uv_statbuf_t* stat_out) {
566+
stat_out->st_dev = ((uv_statbuf_t*)req_in->ptr)->st_dev;
567+
stat_out->st_mode = ((uv_statbuf_t*)req_in->ptr)->st_mode;
568+
stat_out->st_nlink = ((uv_statbuf_t*)req_in->ptr)->st_nlink;
569+
stat_out->st_uid = ((uv_statbuf_t*)req_in->ptr)->st_uid;
570+
stat_out->st_gid = ((uv_statbuf_t*)req_in->ptr)->st_gid;
571+
stat_out->st_rdev = ((uv_statbuf_t*)req_in->ptr)->st_rdev;
572+
stat_out->st_ino = ((uv_statbuf_t*)req_in->ptr)->st_ino;
573+
stat_out->st_size = ((uv_statbuf_t*)req_in->ptr)->st_size;
574+
stat_out->st_blksize = ((uv_statbuf_t*)req_in->ptr)->st_blksize;
575+
stat_out->st_blocks = ((uv_statbuf_t*)req_in->ptr)->st_blocks;
576+
//stat_out->st_flags = ((uv_statbuf_t*)req_in->ptr)->st_flags;
577+
//stat_out->st_gen = ((uv_statbuf_t*)req_in->ptr)->st_gen;
578+
stat_out->st_atim.tv_sec = ((uv_statbuf_t*)req_in->ptr)->st_atim.tv_sec;
579+
stat_out->st_atim.tv_nsec = ((uv_statbuf_t*)req_in->ptr)->st_atim.tv_nsec;
580+
stat_out->st_mtim.tv_sec = ((uv_statbuf_t*)req_in->ptr)->st_mtim.tv_sec;
581+
stat_out->st_mtim.tv_nsec = ((uv_statbuf_t*)req_in->ptr)->st_mtim.tv_nsec;
582+
stat_out->st_ctim.tv_sec = ((uv_statbuf_t*)req_in->ptr)->st_ctim.tv_sec;
583+
stat_out->st_ctim.tv_nsec = ((uv_statbuf_t*)req_in->ptr)->st_ctim.tv_nsec;
584+
//stat_out->st_birthtim.tv_sec = ((uv_statbuf_t*)req_in->ptr)->st_birthtim.tv_sec;
585+
//stat_out->st_birthtim.tv_nsec = ((uv_statbuf_t*)req_in->ptr)->st_birthtim.tv_nsec;
586586
}
587587

588588
extern "C" int

0 commit comments

Comments
 (0)