Lines Matching refs:statx

35 _Static_assert (sizeof (struct statx) == 256, "statx size");
36 _Static_assert (offsetof (struct statx, stx_nlink) == 16, "statx nlink");
37 _Static_assert (offsetof (struct statx, stx_ino) == 32, "statx ino");
38 _Static_assert (offsetof (struct statx, stx_atime) == 64, "statx atime");
39 _Static_assert (offsetof (struct statx, stx_rdev_major) == 128, "statx rdev");
40 _Static_assert (offsetof (struct statx, __statx_pad2) == 144, "statx pad2");
45 struct statx *);
52 struct statx buf; in kernel_supports_statx()
66 struct statx buf = { 0, }; in both_implementations_tests()
67 TEST_COMPARE (statx (fd, "", AT_EMPTY_PATH, STATX_BASIC_STATS, &buf), 0); in both_implementations_tests()
72 struct statx buf = { 0, }; in both_implementations_tests()
73 TEST_COMPARE (statx (AT_FDCWD, path, 0, STATX_BASIC_STATS, &buf), 0); in both_implementations_tests()
78 struct statx stx = { 0, }; in both_implementations_tests()
79 TEST_COMPARE (statx (fd, "", AT_EMPTY_PATH, STATX_BASIC_STATS, &stx), 0); in both_implementations_tests()
87 struct statx stx = { 0, }; in both_implementations_tests()
88 TEST_COMPARE (statx (AT_FDCWD, "/dev/null", 0, STATX_BASIC_STATS, &stx), in both_implementations_tests()
107 struct statx buf; in non_kernel_tests()
126 both_implementations_tests (&statx, path, fd); in do_test()
132 struct statx buf; in do_test()
134 TEST_COMPARE (statx (fd, "", AT_EMPTY_PATH | AT_STATX_FORCE_SYNC, in do_test()
139 TEST_COMPARE (statx (fd, "", AT_EMPTY_PATH | AT_STATX_DONT_SYNC, in do_test()
147 non_kernel_tests (&statx, fd); in do_test()