Lines Matching refs:s

174   uv_stat_t* s;  in check_permission()  local
180 s = &req.statbuf; in check_permission()
186 ASSERT((s->st_mode & 0777) & mode); in check_permission()
188 ASSERT((s->st_mode & 0777) == mode); in check_permission()
329 uv_stat_t* s = req->ptr; in fstat_cb() local
332 ASSERT_EQ(s->st_size, sizeof(test_buf)); in fstat_cb()
816 uv_stat_t* s; in check_utime() local
828 s = &req.statbuf; in check_utime()
830 if (s->st_atim.tv_nsec == 0 && s->st_mtim.tv_nsec == 0) { in check_utime()
843 ASSERT_EQ(s->st_atim.tv_sec, (long) atime); in check_utime()
845 ASSERT_EQ(s->st_mtim.tv_sec, (long) mtime); in check_utime()
846 ASSERT_GE(s->st_atim.tv_sec, (long) atime - 1); in check_utime()
847 ASSERT_GE(s->st_mtim.tv_sec, (long) mtime - 1); in check_utime()
848 ASSERT_LE(s->st_atim.tv_sec, (long) atime); in check_utime()
849 ASSERT_LE(s->st_mtim.tv_sec, (long) mtime); in check_utime()
855 ASSERT_DOUBLE_GE(s->st_atim.tv_nsec, 0); in check_utime()
856 ASSERT_DOUBLE_GE(s->st_mtim.tv_nsec, 0); in check_utime()
858 st_atim = s->st_atim.tv_sec + s->st_atim.tv_nsec / 1e9; in check_utime()
859 st_mtim = s->st_mtim.tv_sec + s->st_mtim.tv_nsec / 1e9; in check_utime()
1450 uv_stat_t* s; in TEST_IMPL() local
1479 s = req.ptr; in TEST_IMPL()
1481 ASSERT_EQ(s->st_birthtim.tv_sec, t.st_birthtimespec.tv_sec); in TEST_IMPL()
1482 ASSERT_EQ(s->st_birthtim.tv_nsec, t.st_birthtimespec.tv_nsec); in TEST_IMPL()
1487 ASSERT(s->st_birthtim.tv_sec == 0 || in TEST_IMPL()
1488 s->st_birthtim.tv_sec == t.st_ctim.tv_sec); in TEST_IMPL()
1489 ASSERT(s->st_birthtim.tv_nsec == 0 || in TEST_IMPL()
1490 s->st_birthtim.tv_nsec == t.st_ctim.tv_nsec); in TEST_IMPL()
1504 s = req.ptr; in TEST_IMPL()
1505 ASSERT_EQ(s->st_size, sizeof(test_buf)); in TEST_IMPL()
1511 ASSERT_EQ(s->st_dev, (uint64_t) t.st_dev); in TEST_IMPL()
1512 ASSERT_EQ(s->st_mode, (uint64_t) t.st_mode); in TEST_IMPL()
1513 ASSERT_EQ(s->st_nlink, (uint64_t) t.st_nlink); in TEST_IMPL()
1514 ASSERT_EQ(s->st_uid, (uint64_t) t.st_uid); in TEST_IMPL()
1515 ASSERT_EQ(s->st_gid, (uint64_t) t.st_gid); in TEST_IMPL()
1516 ASSERT_EQ(s->st_rdev, (uint64_t) t.st_rdev); in TEST_IMPL()
1517 ASSERT_EQ(s->st_ino, (uint64_t) t.st_ino); in TEST_IMPL()
1518 ASSERT_EQ(s->st_size, (uint64_t) t.st_size); in TEST_IMPL()
1519 ASSERT_EQ(s->st_blksize, (uint64_t) t.st_blksize); in TEST_IMPL()
1520 ASSERT_EQ(s->st_blocks, (uint64_t) t.st_blocks); in TEST_IMPL()
1522 ASSERT_EQ(s->st_atim.tv_sec, t.st_atimespec.tv_sec); in TEST_IMPL()
1523 ASSERT_EQ(s->st_atim.tv_nsec, t.st_atimespec.tv_nsec); in TEST_IMPL()
1524 ASSERT_EQ(s->st_mtim.tv_sec, t.st_mtimespec.tv_sec); in TEST_IMPL()
1525 ASSERT_EQ(s->st_mtim.tv_nsec, t.st_mtimespec.tv_nsec); in TEST_IMPL()
1526 ASSERT_EQ(s->st_ctim.tv_sec, t.st_ctimespec.tv_sec); in TEST_IMPL()
1527 ASSERT_EQ(s->st_ctim.tv_nsec, t.st_ctimespec.tv_nsec); in TEST_IMPL()
1530 ASSERT_EQ(s->st_atim.tv_sec, t.st_atime); in TEST_IMPL()
1531 ASSERT_OK(s->st_atim.tv_nsec); in TEST_IMPL()
1532 ASSERT_EQ(s->st_mtim.tv_sec, t.st_mtime); in TEST_IMPL()
1533 ASSERT_OK(s->st_mtim.tv_nsec); in TEST_IMPL()
1534 ASSERT_EQ(s->st_ctim.tv_sec, t.st_ctime); in TEST_IMPL()
1535 ASSERT_OK(s->st_ctim.tv_nsec); in TEST_IMPL()
1537 ASSERT_EQ(s->st_atim.tv_sec, t.st_atime); in TEST_IMPL()
1538 ASSERT_EQ(s->st_atim.tv_nsec, t.st_atimensec); in TEST_IMPL()
1539 ASSERT_EQ(s->st_mtim.tv_sec, t.st_mtime); in TEST_IMPL()
1540 ASSERT_EQ(s->st_mtim.tv_nsec, t.st_mtimensec); in TEST_IMPL()
1541 ASSERT_EQ(s->st_ctim.tv_sec, t.st_ctime); in TEST_IMPL()
1542 ASSERT_EQ(s->st_ctim.tv_nsec, t.st_ctimensec); in TEST_IMPL()
1553 ASSERT_EQ(s->st_atim.tv_sec, t.st_atim.tv_sec); in TEST_IMPL()
1554 ASSERT_EQ(s->st_atim.tv_nsec, t.st_atim.tv_nsec); in TEST_IMPL()
1555 ASSERT_EQ(s->st_mtim.tv_sec, t.st_mtim.tv_sec); in TEST_IMPL()
1556 ASSERT_EQ(s->st_mtim.tv_nsec, t.st_mtim.tv_nsec); in TEST_IMPL()
1557 ASSERT_EQ(s->st_ctim.tv_sec, t.st_ctim.tv_sec); in TEST_IMPL()
1558 ASSERT_EQ(s->st_ctim.tv_nsec, t.st_ctim.tv_nsec); in TEST_IMPL()
1561 ASSERT_EQ(s->st_birthtim.tv_sec, t.st_birthtim.tv_sec); in TEST_IMPL()
1562 ASSERT_EQ(s->st_birthtim.tv_nsec, t.st_birthtim.tv_nsec); in TEST_IMPL()
1565 ASSERT_EQ(s->st_atim.tv_sec, t.st_atime); in TEST_IMPL()
1566 ASSERT_OK(s->st_atim.tv_nsec); in TEST_IMPL()
1567 ASSERT_EQ(s->st_mtim.tv_sec, t.st_mtime); in TEST_IMPL()
1568 ASSERT_OK(s->st_mtim.tv_nsec); in TEST_IMPL()
1569 ASSERT_EQ(s->st_ctim.tv_sec, t.st_ctime); in TEST_IMPL()
1570 ASSERT_OK(s->st_ctim.tv_nsec); in TEST_IMPL()
1575 ASSERT_EQ(s->st_flags, t.st_flags); in TEST_IMPL()
1576 ASSERT_EQ(s->st_gen, t.st_gen); in TEST_IMPL()
1578 ASSERT_OK(s->st_flags); in TEST_IMPL()
1579 ASSERT_OK(s->st_gen); in TEST_IMPL()
2858 int r, s; in TEST_IMPL() local
2873 s = uv_fs_symlink(NULL, &req, path, symlink_path, 0, NULL); in TEST_IMPL()
2875 if (s == UV_EPERM) { in TEST_IMPL()
2884 ASSERT_OK(s); in TEST_IMPL()