Lines Matching refs:tf
27 TemporaryFile tf; in TEST() local
29 ASSERT_EQ(0, setxattr(tf.path, "user.foo", "bar", 4, 0)); in TEST()
30 ASSERT_EQ(4, getxattr(tf.path, "user.foo", buf, sizeof(buf))); in TEST()
33 ASSERT_EQ(4, lgetxattr(tf.path, "user.foo", buf, sizeof(buf))); in TEST()
38 TemporaryFile tf; in TEST() local
40 ASSERT_EQ(0, fsetxattr(tf.fd, "user.foo", "bar", 4, 0)); in TEST()
41 ASSERT_EQ(4, fgetxattr(tf.fd, "user.foo", buf, sizeof(buf))); in TEST()
46 TemporaryFile tf; in TEST() local
48 ASSERT_EQ(0, fsetxattr(tf.fd, "user.foo", "", 0, 0)); in TEST()
49 ASSERT_EQ(0, fgetxattr(tf.fd, "user.foo", buf, sizeof(buf))); in TEST()
53 TemporaryFile tf; in TEST() local
55 ASSERT_EQ(0, fsetxattr(tf.fd, "user.foo", "01234567890123456789", 21, 0)); in TEST()
56 ASSERT_EQ(-1, fgetxattr(tf.fd, "user.foo", buf, sizeof(buf))); in TEST()
71 TemporaryFile tf; in TEST() local
72 int fd = open(tf.path, O_PATH); in TEST()
89 TemporaryFile tf; in TEST() local
90 int fd = open(tf.path, O_PATH); in TEST()
107 TemporaryFile tf; in TEST() local
109 ASSERT_EQ(0, fsetxattr(tf.fd, "user.foo", "bar", 4, 0)); in TEST()
110 ssize_t result = flistxattr(tf.fd, buf, sizeof(buf)); in TEST()
116 TemporaryFile tf; in TEST() local
118 ASSERT_EQ(0, fsetxattr(tf.fd, "user.foo", "bar", 4, 0)); in TEST()
119 int fd = open(tf.path, O_PATH); in TEST()