Lines Matching refs:buff
101 struct statx buff;
103 TEST(statx(AT_FDCWD, TESTFILE, 0, 0, &buff));
106 "statx(AT_FDCWD, %s, 0, 0, &buff)", TESTFILE);
109 "statx(AT_FDCWD, %s, 0, 0, &buff)", TESTFILE);
111 if (geteuid() == buff.stx_uid)
112 tst_res(TPASS, "stx_uid(%u) is correct", buff.stx_uid);
115 buff.stx_uid, geteuid());
117 if (getegid() == buff.stx_gid)
118 tst_res(TPASS, "stx_gid(%u) is correct", buff.stx_gid);
121 buff.stx_gid, getegid());
123 if (buff.stx_size == SIZE)
125 "stx_size(%"PRIu64") is correct", (uint64_t)buff.stx_size);
129 (uint64_t)buff.stx_size, SIZE);
131 if ((buff.stx_mode & ~(S_IFMT)) == MODE)
132 tst_res(TPASS, "stx_mode(%u) is correct", buff.stx_mode);
135 buff.stx_mode, MODE);
137 if (buff.stx_blocks <= buff.stx_blksize/512 * 2)
139 (uint64_t)buff.stx_blocks);
142 (uint64_t)buff.stx_blocks);
144 if (buff.stx_nlink == 1)
148 buff.stx_nlink);
151 test_mnt_id(&buff);
159 struct statx buff;
161 TEST(statx(AT_FDCWD, DEVICEFILE, 0, 0, &buff));
164 "statx(AT_FDCWD, %s, 0, 0, &buff)", DEVICEFILE);
167 "statx(AT_FDCWD, %s, 0, 0, &buff)", DEVICEFILE);
169 if (buff.stx_rdev_major == MAJOR)
171 buff.stx_rdev_major);
175 buff.stx_rdev_major, MAJOR);
177 if (buff.stx_rdev_minor == MINOR)
179 buff.stx_rdev_minor);
183 buff.stx_rdev_minor, MINOR);