Lines Matching refs:result

178   ASSERT_OK(req.result);  in check_permission()
203 ASSERT_OK(req->result); in link_cb()
211 ASSERT_OK(req->result); in symlink_cb()
218 ASSERT_OK(req->result); in readlink_cb()
229 ASSERT_OK(req->result); in realpath_cb()
253 ASSERT_OK(req->result); in fchmod_cb()
262 ASSERT_OK(req->result); in chmod_cb()
271 ASSERT_OK(req->result); in fchown_cb()
279 ASSERT_OK(req->result); in chown_cb()
286 ASSERT_OK(req->result); in lchown_cb()
295 ASSERT_OK(req->result); in chown_root_cb()
301 ASSERT_OK(req->result); in chown_root_cb()
305 ASSERT_EQ(req->result, UV_EINVAL); in chown_root_cb()
311 ASSERT(req->result == 0 || req->result == UV_EPERM); in chown_root_cb()
313 ASSERT_EQ(req->result, UV_EPERM); in chown_root_cb()
323 ASSERT_OK(req->result); in unlink_cb()
331 ASSERT_OK(req->result); in fstat_cb()
342 ASSERT_OK(req->result); in statfs_cb()
375 ASSERT_OK(req->result); in close_cb()
389 ASSERT_OK(req->result); in ftruncate_cb()
392 r = uv_fs_close(loop, &close_req, open_req1.result, close_cb); in ftruncate_cb()
404 ASSERT_GE(req->result, 0); /* FIXME(bnoordhuis) Check if requested size? */ in read_cb()
409 r = uv_fs_ftruncate(loop, &ftruncate_req, open_req1.result, 7, in read_cb()
413 r = uv_fs_close(loop, &close_req, open_req1.result, close_cb); in read_cb()
423 if (req->result < 0) { in open_cb()
424 fprintf(stderr, "async open error: %d\n", (int) req->result); in open_cb()
433 r = uv_fs_read(loop, &read_req, open_req1.result, &iov, 1, -1, in open_cb()
441 if (req->result < 0) { in open_cb_simple()
442 fprintf(stderr, "async open error: %d\n", (int) req->result); in open_cb_simple()
455 ASSERT_OK(req->result); in fsync_cb()
458 r = uv_fs_close(loop, &close_req, open_req1.result, close_cb); in fsync_cb()
467 ASSERT_OK(req->result); in fdatasync_cb()
470 r = uv_fs_fsync(loop, &fsync_req, open_req1.result, fsync_cb); in fdatasync_cb()
479 ASSERT_GE(req->result, 0); /* FIXME(bnoordhuis) Check if requested size? */ in write_cb()
482 r = uv_fs_fdatasync(loop, &fdatasync_req, open_req1.result, fdatasync_cb); in write_cb()
491 ASSERT_GE(req->result, 0); in create_cb()
495 r = uv_fs_write(loop, &write_req, req->result, &iov, 1, -1, write_cb); in create_cb()
503 ASSERT_OK(req->result); in rename_cb()
512 ASSERT_OK(req->result); in mkdir_cb()
524 ASSERT_OK(req->result); in check_mkdtemp_result()
550 ASSERT_GE(req->result, 0); in check_mkstemp_result()
575 ASSERT_OK(req->result); in rmdir_cb()
609 ASSERT_EQ(2, req->result); in scandir_cb()
629 ASSERT_OK(req->result); in empty_scandir_cb()
641 ASSERT_EQ(req->result, UV_ENOENT); in non_existent_scandir_cb()
652 ASSERT_EQ(req->result, UV_ENOTDIR); in file_scandir_cb()
662 ASSERT_OK(req->result); in stat_cb()
671 ASSERT_OK(req->result); in stat_batch_cb()
682 ASSERT_EQ(65545, req->result); in sendfile_cb()
691 ASSERT_OK(req->result); in sendfile_nodata_cb()
699 ASSERT_EQ(req->result, UV_ENOENT); in open_noent_cb()
706 ASSERT_EQ(req->result, UV_ENAMETOOLONG); in open_nametoolong_cb()
713 ASSERT_EQ(req->result, UV_ELOOP); in open_loop_cb()
727 ASSERT_EQ(req.result, UV_ENOENT); in TEST_IMPL()
756 ASSERT_EQ(req.result, UV_ENAMETOOLONG); in TEST_IMPL()
796 ASSERT_EQ(req.result, UV_ELOOP); in TEST_IMPL()
827 ASSERT_OK(req.result); in check_utime()
877 ASSERT_OK(req->result); in utime_cb()
892 ASSERT_OK(req->result); in futime_cb()
906 ASSERT_OK(req->result); in lutime_cb()
993 ASSERT_GE(open_req1.result, 0); in fs_file_sync()
997 r = uv_fs_write(NULL, &write_req, open_req1.result, &iov, 1, -1, NULL); in fs_file_sync()
999 ASSERT_GE(write_req.result, 0); in fs_file_sync()
1002 r = uv_fs_close(NULL, &close_req, open_req1.result, NULL); in fs_file_sync()
1004 ASSERT_OK(close_req.result); in fs_file_sync()
1010 ASSERT_GE(open_req1.result, 0); in fs_file_sync()
1014 r = uv_fs_read(NULL, &read_req, open_req1.result, &iov, 1, -1, NULL); in fs_file_sync()
1016 ASSERT_GE(read_req.result, 0); in fs_file_sync()
1020 r = uv_fs_ftruncate(NULL, &ftruncate_req, open_req1.result, 7, NULL); in fs_file_sync()
1022 ASSERT_OK(ftruncate_req.result); in fs_file_sync()
1025 r = uv_fs_close(NULL, &close_req, open_req1.result, NULL); in fs_file_sync()
1027 ASSERT_OK(close_req.result); in fs_file_sync()
1032 ASSERT_OK(rename_req.result); in fs_file_sync()
1038 ASSERT_GE(open_req1.result, 0); in fs_file_sync()
1043 r = uv_fs_read(NULL, &read_req, open_req1.result, &iov, 1, -1, NULL); in fs_file_sync()
1045 ASSERT_GE(read_req.result, 0); in fs_file_sync()
1049 r = uv_fs_close(NULL, &close_req, open_req1.result, NULL); in fs_file_sync()
1051 ASSERT_OK(close_req.result); in fs_file_sync()
1056 ASSERT_OK(unlink_req.result); in fs_file_sync()
1088 ASSERT_EQ(r, rmdir_req.result); in TEST_IMPL()
1093 ASSERT_EQ(r, rmdir_req.result); in TEST_IMPL()
1098 ASSERT_OK(unlink_req.result); in TEST_IMPL()
1104 ASSERT_OK(rmdir_req.result); in TEST_IMPL()
1108 r = uv_fs_close(NULL, &close_req, open_req_noclose.result, NULL); in TEST_IMPL()
1128 ASSERT_GE(open_req1.result, 0); in fs_file_write_null_buffer()
1132 r = uv_fs_write(NULL, &write_req, open_req1.result, &iov, 1, -1, NULL); in fs_file_write_null_buffer()
1134 ASSERT_OK(write_req.result); in fs_file_write_null_buffer()
1137 r = uv_fs_close(NULL, &close_req, open_req1.result, NULL); in fs_file_write_null_buffer()
1139 ASSERT_OK(close_req.result); in fs_file_write_null_buffer()
1176 r = uv_fs_close(NULL, &close_req, open_req1.result, NULL); in TEST_IMPL()
1185 r = uv_fs_close(NULL, &close_req, open_req1.result, NULL); in TEST_IMPL()
1198 ASSERT_EQ(2, scandir_req.result); in TEST_IMPL()
1274 ASSERT_GE(open_req1.result, 0); in test_sendfile()
1280 ASSERT_GE(open_req2.result, 0); in test_sendfile()
1283 r = uv_fs_sendfile(loop, &sendfile_req, open_req2.result, open_req1.result, in test_sendfile()
1290 r = uv_fs_close(NULL, &close_req, open_req1.result, NULL); in test_sendfile()
1293 r = uv_fs_close(NULL, &close_req, open_req2.result, NULL); in test_sendfile()
1307 ASSERT_GE(open_req1.result, 0); in test_sendfile()
1312 r = uv_fs_read(NULL, &req, open_req1.result, &iov, 1, -1, NULL); in test_sendfile()
1314 ASSERT_GE(req.result, 0); in test_sendfile()
1410 r = uv_fs_write(NULL, &req, mkstemp_req1.result, &iov, 1, -1, NULL); in TEST_IMPL()
1412 ASSERT_EQ(req.result, sizeof(test_buf)); in TEST_IMPL()
1416 uv_fs_close(NULL, &req, mkstemp_req1.result, NULL); in TEST_IMPL()
1418 uv_fs_close(NULL, &req, mkstemp_req2.result, NULL); in TEST_IMPL()
1429 ASSERT_GE(req.result, 0); in TEST_IMPL()
1470 ASSERT_GE(req.result, 0); in TEST_IMPL()
1471 file = req.result; in TEST_IMPL()
1478 ASSERT_OK(req.result); in TEST_IMPL()
1497 ASSERT_EQ(req.result, sizeof(test_buf)); in TEST_IMPL()
1503 ASSERT_OK(req.result); in TEST_IMPL()
1593 ASSERT_OK(req.result); in TEST_IMPL()
1622 ASSERT_OK(req.result); in TEST_IMPL()
1663 ASSERT_LT(req.result, 0); in TEST_IMPL()
1677 ASSERT_GE(req.result, 0); in TEST_IMPL()
1678 file = req.result; in TEST_IMPL()
1684 ASSERT_OK(req.result); in TEST_IMPL()
1697 ASSERT_OK(req.result); in TEST_IMPL()
1707 ASSERT_OK(req.result); in TEST_IMPL()
1738 ASSERT_GE(req.result, 0); in TEST_IMPL()
1739 file = req.result; in TEST_IMPL()
1745 ASSERT_EQ(req.result, sizeof(test_buf)); in TEST_IMPL()
1752 ASSERT_OK(req.result); in TEST_IMPL()
1761 ASSERT_OK(req.result); in TEST_IMPL()
1769 ASSERT_OK(req.result); in TEST_IMPL()
1838 ASSERT_GE(req.result, 0); in TEST_IMPL()
1839 file = req.result; in TEST_IMPL()
1845 ASSERT_EQ(req.result, sizeof(test_buf)); in TEST_IMPL()
1853 ASSERT_OK(req.result); in TEST_IMPL()
1861 ASSERT_OK(req.result); in TEST_IMPL()
1895 ASSERT_GE(req.result, 0); in TEST_IMPL()
1896 file = req.result; in TEST_IMPL()
1902 ASSERT_EQ(req.result, sizeof(test_buf)); in TEST_IMPL()
1917 ASSERT_OK(req.result); in TEST_IMPL()
1950 ASSERT_GE(req.result, 0); in TEST_IMPL()
1951 file = req.result; in TEST_IMPL()
1957 ASSERT_OK(req.result); in TEST_IMPL()
1963 ASSERT_OK(req.result); in TEST_IMPL()
1992 ASSERT_OK(req.result); in TEST_IMPL()
1998 ASSERT_OK(req.result); in TEST_IMPL()
2011 ASSERT_OK(req.result); in TEST_IMPL()
2045 ASSERT_GE(req.result, 0); in TEST_IMPL()
2046 file = req.result; in TEST_IMPL()
2052 ASSERT_EQ(req.result, sizeof(test_buf)); in TEST_IMPL()
2060 ASSERT_OK(req.result); in TEST_IMPL()
2065 ASSERT_GE(req.result, 0); in TEST_IMPL()
2066 link = req.result; in TEST_IMPL()
2073 ASSERT_GE(req.result, 0); in TEST_IMPL()
2086 ASSERT_GE(req.result, 0); in TEST_IMPL()
2087 link = req.result; in TEST_IMPL()
2094 ASSERT_GE(req.result, 0); in TEST_IMPL()
2125 ASSERT_EQ(req.result, UV_ENOENT); in TEST_IMPL()
2130 ASSERT_EQ(req.result, UV_ENOENT); in TEST_IMPL()
2146 ASSERT_GE(req.result, 0); in TEST_IMPL()
2147 file = req.result; in TEST_IMPL()
2152 ASSERT_OK(req.result); in TEST_IMPL()
2177 ASSERT_EQ(req.result, UV_ENOENT); in TEST_IMPL()
2182 ASSERT_EQ(req.result, UV_ENOENT); in TEST_IMPL()
2218 ASSERT_GE(req.result, 0); in TEST_IMPL()
2219 file = req.result; in TEST_IMPL()
2225 ASSERT_EQ(req.result, sizeof(test_buf)); in TEST_IMPL()
2250 ASSERT_OK(req.result); in TEST_IMPL()
2255 ASSERT_GE(req.result, 0); in TEST_IMPL()
2256 link = req.result; in TEST_IMPL()
2263 ASSERT_GE(req.result, 0); in TEST_IMPL()
2308 ASSERT_GE(req.result, 0); in TEST_IMPL()
2309 link = req.result; in TEST_IMPL()
2316 ASSERT_GE(req.result, 0); in TEST_IMPL()
2400 ASSERT_OK(req.result); in test_symlink_dir_impl()
2450 r = uv_fs_close(NULL, &close_req, open_req1.result, NULL); in test_symlink_dir_impl()
2459 r = uv_fs_close(NULL, &close_req, open_req1.result, NULL); in test_symlink_dir_impl()
2465 ASSERT_EQ(2, scandir_req.result); in test_symlink_dir_impl()
2485 ASSERT_EQ(2, scandir_req.result); in test_symlink_dir_impl()
2592 ASSERT_EQ(1, scandir_req.result); in TEST_IMPL()
2681 ASSERT_GE(req.result, 0); in TEST_IMPL()
2689 ASSERT_OK(req.result); in TEST_IMPL()
2727 ASSERT_GE(req.result, 0); in TEST_IMPL()
2745 ASSERT_OK(req.result); in TEST_IMPL()
2806 ASSERT_GE(req.result, 0); in TEST_IMPL()
2814 ASSERT_GE(req.result, 0); in TEST_IMPL()
2815 file = req.result; /* FIXME probably not how it's supposed to be used */ in TEST_IMPL()
2824 ASSERT_OK(req.result); in TEST_IMPL()
2868 ASSERT_GE(req.result, 0); in TEST_IMPL()
2885 ASSERT_OK(req.result); in TEST_IMPL()
2935 ASSERT_EQ(req.result, UV_ENOENT); in TEST_IMPL()
2960 ASSERT_OK(req.result); in TEST_IMPL()
2997 ASSERT_EQ(req.result, UV_ENOENT); in TEST_IMPL()
3064 ASSERT_GE(req.result, 0); in TEST_IMPL()
3096 ASSERT_GE(open_req1.result, 0); in fs_file_open_append()
3100 r = uv_fs_write(NULL, &write_req, open_req1.result, &iov, 1, -1, NULL); in fs_file_open_append()
3102 ASSERT_GE(write_req.result, 0); in fs_file_open_append()
3105 r = uv_fs_close(NULL, &close_req, open_req1.result, NULL); in fs_file_open_append()
3107 ASSERT_OK(close_req.result); in fs_file_open_append()
3113 ASSERT_GE(open_req1.result, 0); in fs_file_open_append()
3117 r = uv_fs_write(NULL, &write_req, open_req1.result, &iov, 1, -1, NULL); in fs_file_open_append()
3119 ASSERT_GE(write_req.result, 0); in fs_file_open_append()
3122 r = uv_fs_close(NULL, &close_req, open_req1.result, NULL); in fs_file_open_append()
3124 ASSERT_OK(close_req.result); in fs_file_open_append()
3130 ASSERT_GE(open_req1.result, 0); in fs_file_open_append()
3134 r = uv_fs_read(NULL, &read_req, open_req1.result, &iov, 1, -1, NULL); in fs_file_open_append()
3137 ASSERT_EQ(26, read_req.result); in fs_file_open_append()
3143 r = uv_fs_close(NULL, &close_req, open_req1.result, NULL); in fs_file_open_append()
3145 ASSERT_OK(close_req.result); in fs_file_open_append()
3172 ASSERT_GE(open_req1.result, 0); in TEST_IMPL()
3176 r = uv_fs_write(NULL, &write_req, open_req1.result, &iov, 1, -1, NULL); in TEST_IMPL()
3178 ASSERT_GE(write_req.result, 0); in TEST_IMPL()
3181 r = uv_fs_close(NULL, &close_req, open_req1.result, NULL); in TEST_IMPL()
3183 ASSERT_OK(close_req.result); in TEST_IMPL()
3189 ASSERT_GE(open_req1.result, 0); in TEST_IMPL()
3192 r = uv_fs_close(NULL, &close_req, open_req1.result, NULL); in TEST_IMPL()
3194 ASSERT_OK(close_req.result); in TEST_IMPL()
3199 ASSERT_OK(rename_req.result); in TEST_IMPL()
3204 ASSERT_GE(open_req1.result, 0); in TEST_IMPL()
3209 r = uv_fs_read(NULL, &read_req, open_req1.result, &iov, 1, -1, NULL); in TEST_IMPL()
3211 ASSERT_GE(read_req.result, 0); in TEST_IMPL()
3215 r = uv_fs_close(NULL, &close_req, open_req1.result, NULL); in TEST_IMPL()
3217 ASSERT_OK(close_req.result); in TEST_IMPL()
3236 ASSERT_GE(open_req1.result, 0); in fs_read_bufs()
3239 ASSERT_EQ(UV_EINVAL, uv_fs_read(NULL, &read_req, open_req1.result, in fs_read_bufs()
3241 ASSERT_EQ(UV_EINVAL, uv_fs_read(NULL, &read_req, open_req1.result, in fs_read_bufs()
3243 ASSERT_EQ(UV_EINVAL, uv_fs_read(NULL, &read_req, open_req1.result, in fs_read_bufs()
3253 open_req1.result, in fs_read_bufs()
3258 ASSERT_EQ(446, read_req.result); in fs_read_bufs()
3263 open_req1.result, in fs_read_bufs()
3268 ASSERT_EQ(read_req.result, /* 446 - 256 */ 190); in fs_read_bufs()
3274 ASSERT_OK(uv_fs_close(NULL, &close_req, open_req1.result, NULL)); in fs_read_bufs()
3275 ASSERT_OK(close_req.result); in fs_read_bufs()
3302 ASSERT_GE(open_req1.result, 0); in fs_read_file_eof()
3306 r = uv_fs_write(NULL, &write_req, open_req1.result, &iov, 1, -1, NULL); in fs_read_file_eof()
3308 ASSERT_GE(write_req.result, 0); in fs_read_file_eof()
3311 r = uv_fs_close(NULL, &close_req, open_req1.result, NULL); in fs_read_file_eof()
3313 ASSERT_OK(close_req.result); in fs_read_file_eof()
3319 ASSERT_GE(open_req1.result, 0); in fs_read_file_eof()
3324 r = uv_fs_read(NULL, &read_req, open_req1.result, &iov, 1, -1, NULL); in fs_read_file_eof()
3326 ASSERT_GE(read_req.result, 0); in fs_read_file_eof()
3331 r = uv_fs_read(NULL, &read_req, open_req1.result, &iov, 1, in fs_read_file_eof()
3332 read_req.result, NULL); in fs_read_file_eof()
3334 ASSERT_OK(read_req.result); in fs_read_file_eof()
3337 r = uv_fs_close(NULL, &close_req, open_req1.result, NULL); in fs_read_file_eof()
3339 ASSERT_OK(close_req.result); in fs_read_file_eof()
3367 ASSERT_GE(open_req1.result, 0); in fs_write_multiple_bufs()
3372 r = uv_fs_write(NULL, &write_req, open_req1.result, iovs, 2, 0, NULL); in fs_write_multiple_bufs()
3374 ASSERT_GE(write_req.result, 0); in fs_write_multiple_bufs()
3377 r = uv_fs_close(NULL, &close_req, open_req1.result, NULL); in fs_write_multiple_bufs()
3379 ASSERT_OK(close_req.result); in fs_write_multiple_bufs()
3385 ASSERT_GE(open_req1.result, 0); in fs_write_multiple_bufs()
3393 ASSERT_OK(lseek(open_req1.result, 0, SEEK_CUR)); in fs_write_multiple_bufs()
3394 r = uv_fs_read(NULL, &read_req, open_req1.result, iovs, 2, -1, NULL); in fs_write_multiple_bufs()
3396 ASSERT_EQ(read_req.result, sizeof(test_buf) + sizeof(test_buf2)); in fs_write_multiple_bufs()
3402 r = uv_fs_read(NULL, &read_req, open_req1.result, &iov, 1, -1, NULL); in fs_write_multiple_bufs()
3404 ASSERT_OK(read_req.result); in fs_write_multiple_bufs()
3410 r = uv_fs_read(NULL, &read_req, open_req1.result, iovs, 2, 0, NULL); in fs_write_multiple_bufs()
3412 if (read_req.result == sizeof(test_buf)) { in fs_write_multiple_bufs()
3415 r = uv_fs_read(NULL, &read_req, open_req1.result, &iovs[1], 1, read_req.result, NULL); in fs_write_multiple_bufs()
3417 ASSERT_EQ(read_req.result, sizeof(test_buf2)); in fs_write_multiple_bufs()
3419 ASSERT_EQ(read_req.result, sizeof(test_buf) + sizeof(test_buf2)); in fs_write_multiple_bufs()
3426 r = uv_fs_read(NULL, &read_req, open_req1.result, &iov, 1, in fs_write_multiple_bufs()
3429 ASSERT_OK(read_req.result); in fs_write_multiple_bufs()
3432 r = uv_fs_close(NULL, &close_req, open_req1.result, NULL); in fs_write_multiple_bufs()
3434 ASSERT_OK(close_req.result); in fs_write_multiple_bufs()
3475 ASSERT_GE(open_req1.result, 0); in fs_write_alotof_bufs()
3483 open_req1.result, in fs_write_alotof_bufs()
3489 ASSERT_EQ((size_t)write_req.result, sizeof(test_buf) * iovcount); in fs_write_alotof_bufs()
3500 r = uv_fs_close(NULL, &close_req, open_req1.result, NULL); in fs_write_alotof_bufs()
3502 ASSERT_OK(close_req.result); in fs_write_alotof_bufs()
3508 ASSERT_GE(open_req1.result, 0); in fs_write_alotof_bufs()
3511 r = uv_fs_read(NULL, &read_req, open_req1.result, iovs, iovcount, -1, NULL); in fs_write_alotof_bufs()
3515 ASSERT_EQ((size_t)read_req.result, sizeof(test_buf) * iovcount); in fs_write_alotof_bufs()
3525 ASSERT_EQ(lseek(open_req1.result, write_req.result, SEEK_SET), in fs_write_alotof_bufs()
3526 write_req.result); in fs_write_alotof_bufs()
3530 open_req1.result, in fs_write_alotof_bufs()
3536 ASSERT_OK(read_req.result); in fs_write_alotof_bufs()
3539 r = uv_fs_close(NULL, &close_req, open_req1.result, NULL); in fs_write_alotof_bufs()
3541 ASSERT_OK(close_req.result); in fs_write_alotof_bufs()
3588 ASSERT_GE(open_req1.result, 0); in fs_write_alotof_bufs_with_offset()
3592 r = uv_fs_write(NULL, &write_req, open_req1.result, &iov, 1, -1, NULL); in fs_write_alotof_bufs_with_offset()
3594 ASSERT_EQ(write_req.result, filler_len); in fs_write_alotof_bufs_with_offset()
3603 open_req1.result, in fs_write_alotof_bufs_with_offset()
3609 ASSERT_EQ((size_t)write_req.result, sizeof(test_buf) * iovcount); in fs_write_alotof_bufs_with_offset()
3620 r = uv_fs_read(NULL, &read_req, open_req1.result, in fs_write_alotof_bufs_with_offset()
3627 ASSERT_EQ((size_t)read_req.result, sizeof(test_buf) * iovcount); in fs_write_alotof_bufs_with_offset()
3640 offset + (int64_t)write_req.result); in fs_write_alotof_bufs_with_offset()
3646 open_req1.result, in fs_write_alotof_bufs_with_offset()
3649 offset + write_req.result, in fs_write_alotof_bufs_with_offset()
3652 ASSERT_OK(read_req.result); in fs_write_alotof_bufs_with_offset()
3655 r = uv_fs_close(NULL, &close_req, open_req1.result, NULL); in fs_write_alotof_bufs_with_offset()
3657 ASSERT_OK(close_req.result); in fs_write_alotof_bufs_with_offset()
3697 r = uv_fs_read(NULL, &read_req, open_req1.result, &iov, 1, 0, NULL); in TEST_IMPL()
3716 r = uv_fs_close(NULL, &close_req, open_req1.result, NULL); in TEST_IMPL()
3758 ssize_t result; in thread_main() local
3762 result = write(ctx->fd, data, nbytes); in thread_main()
3764 ASSERT_EQ(result, nbytes); in thread_main()
3766 result = read(ctx->fd, data, nbytes); in thread_main()
3770 ASSERT(result > 0 && result <= nbytes); in thread_main()
3774 size -= result; in thread_main()
3775 data += result; in thread_main()
3840 int result; in test_fs_partial() local
3841 result = uv_fs_read(loop, &read_req, pipe_fds[0], read_iovs, iovcount, -1, NULL); in test_fs_partial()
3842 if (result > 0) { in test_fs_partial()
3844 read_iovcount = uv_test_fs_buf_offset(read_iovs, result); in test_fs_partial()
3847 nread += result; in test_fs_partial()
3849 ASSERT_EQ(result, UV_EINTR); in test_fs_partial()
3854 int result; in test_fs_partial() local
3855 result = uv_fs_write(loop, &write_req, pipe_fds[1], iovs, iovcount, -1, NULL); in test_fs_partial()
3856 ASSERT_EQ(write_req.result, result); in test_fs_partial()
3857 ASSERT_EQ(result, ctx.size); in test_fs_partial()
3871 int result; in test_fs_partial() local
3872 result = uv_fs_read(loop, &read_req, pipe_fds[0], iovs, 1, -1, NULL); in test_fs_partial()
3873 ASSERT_OK(result); in test_fs_partial()
3974 ASSERT_GE(open_req1.result, 0); in TEST_IMPL()
3977 fd = uv_get_osfhandle(open_req1.result); in TEST_IMPL()
3984 r = uv_fs_close(NULL, &close_req, open_req1.result, NULL); in TEST_IMPL()
3986 ASSERT_OK(close_req.result); in TEST_IMPL()
4013 ASSERT_GE(open_req1.result, 0); in TEST_IMPL()
4016 handle = uv_get_osfhandle(open_req1.result); in TEST_IMPL()
4027 ASSERT_EQ(fd, open_req1.result); in TEST_IMPL()
4030 r = uv_fs_close(NULL, &close_req, open_req1.result, NULL); in TEST_IMPL()
4032 ASSERT_OK(close_req.result); in TEST_IMPL()
4057 r = uv_fs_write(NULL, &write_req, open_req1.result, &iov, 1, 0, NULL); in TEST_IMPL()
4059 ASSERT_OK(lseek(open_req1.result, 0, SEEK_CUR)); in TEST_IMPL()
4063 r = uv_fs_read(NULL, &read_req, open_req1.result, &iov, 1, 0, NULL); in TEST_IMPL()
4066 ASSERT_OK(lseek(open_req1.result, 0, SEEK_CUR)); in TEST_IMPL()
4069 r = uv_fs_close(NULL, &close_req, open_req1.result, NULL); in TEST_IMPL()
4085 r = uv_fs_write(NULL, &write_req, open_req1.result, &iov, 1, -1, NULL); in fs_file_pos_common()
4091 r = uv_fs_read(NULL, &read_req, open_req1.result, &iov, 1, 1, NULL); in fs_file_pos_common()
4097 r = uv_fs_read(NULL, &read_req, open_req1.result, &iov, 1, -1, NULL); in fs_file_pos_common()
4103 r = uv_fs_write(NULL, &write_req, open_req1.result, &iov, 1, -1, NULL); in fs_file_pos_common()
4108 r = uv_fs_read(NULL, &read_req, open_req1.result, &iov, 1, -1, NULL); in fs_file_pos_common()
4117 r = uv_fs_close(NULL, &close_req, open_req1.result, NULL); in fs_file_pos_close_check()
4124 ASSERT_GE(open_req1.result, 0); in fs_file_pos_close_check()
4128 r = uv_fs_read(NULL, &read_req, open_req1.result, &iov, 1, -1, NULL); in fs_file_pos_close_check()
4133 r = uv_fs_close(NULL, &close_req, open_req1.result, NULL); in fs_file_pos_close_check()
4160 r = uv_fs_write(NULL, &write_req, open_req1.result, &iov, 1, 1, NULL); in fs_file_pos_write()
4165 r = uv_fs_read(NULL, &read_req, open_req1.result, &iov, 1, -1, NULL); in fs_file_pos_write()
4199 r = uv_fs_write(NULL, &write_req, open_req1.result, &iov, 1, 1, NULL); in fs_file_pos_append()
4204 r = uv_fs_read(NULL, &read_req, open_req1.result, &iov, 1, -1, NULL); in fs_file_pos_append()
4339 ASSERT_GE(open_req1.result, 0); in TEST_IMPL()
4348 ASSERT_LT(open_req2.result, 0); in TEST_IMPL()
4351 r = uv_fs_close(NULL, &close_req, open_req1.result, NULL); in TEST_IMPL()
4353 ASSERT_OK(close_req.result); in TEST_IMPL()
4362 ASSERT_GE(open_req2.result, 0); in TEST_IMPL()
4365 r = uv_fs_close(NULL, &close_req, open_req2.result, NULL); in TEST_IMPL()
4367 ASSERT_OK(close_req.result); in TEST_IMPL()
4398 ASSERT_GE(open_req1.result, 0); in TEST_IMPL()
4401 r = uv_fs_close(NULL, &close_req, open_req1.result, NULL); in TEST_IMPL()
4403 ASSERT_OK(close_req.result); in TEST_IMPL()
4414 ASSERT_EQ(open_req2.result, UV_EINVAL); in TEST_IMPL()
4469 ASSERT_GE(open_req1.result, 0); in TEST_IMPL()
4471 r = uv_fs_close(NULL, &close_req, open_req1.result, NULL); in TEST_IMPL()
4473 ASSERT_OK(close_req.result); in TEST_IMPL()
4494 r = uv_fs_close(NULL, &close_req, open_req1.result, NULL); in TEST_IMPL()
4526 ASSERT_GE(req.result, 0); in TEST_IMPL()
4527 file = req.result; in TEST_IMPL()
4539 ASSERT_GE(req.result, 0); in TEST_IMPL()
4540 file = req.result; in TEST_IMPL()
4544 ASSERT_OK(req.result); in TEST_IMPL()
4669 ASSERT_EQ(1, scandir_req.result); in TEST_IMPL()