Skip to content

Commit 11bfad2

Browse files
committed
---
yaml --- r: 80606 b: refs/heads/auto c: 055488d h: refs/heads/master v: v3
1 parent 5f4b2f6 commit 11bfad2

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
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: af650572e0fceb94b387db50ee31f19ee000fe4b
16+
refs/heads/auto: 055488df1a6a4500de565ac2531d7bc42dd02f83
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

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