Skip to content

Commit 4b30bb1

Browse files
committed
---
yaml --- r: 80881 b: refs/heads/try c: 055488d h: refs/heads/master i: 80879: 833ae12 v: v3
1 parent 289e370 commit 4b30bb1

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
@@ -2,7 +2,7 @@
22
refs/heads/master: 4c6bf4872012c010f84dc7fa2cdfe87522533f89
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cbd1eefbd350797b783df119fed7956d7e1c74ad
5-
refs/heads/try: af650572e0fceb94b387db50ee31f19ee000fe4b
5+
refs/heads/try: 055488df1a6a4500de565ac2531d7bc42dd02f83
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/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/try/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)