Lines Matching refs:tf
25 TemporaryFile tf; in TEST() local
27 ASSERT_EQ(0, setxattr(tf.path, "user.foo", "bar", 4, 0)); in TEST()
28 ASSERT_EQ(4, getxattr(tf.path, "user.foo", buf, sizeof(buf))); in TEST()
31 ASSERT_EQ(4, lgetxattr(tf.path, "user.foo", buf, sizeof(buf))); in TEST()
36 TemporaryFile tf; in TEST() local
38 ASSERT_EQ(0, fsetxattr(tf.fd, "user.foo", "bar", 4, 0)); in TEST()
39 ASSERT_EQ(4, fgetxattr(tf.fd, "user.foo", buf, sizeof(buf))); in TEST()
44 TemporaryFile tf; in TEST() local
46 ASSERT_EQ(0, fsetxattr(tf.fd, "user.foo", "", 0, 0)); in TEST()
47 ASSERT_EQ(0, fgetxattr(tf.fd, "user.foo", buf, sizeof(buf))); in TEST()
51 TemporaryFile tf; in TEST() local
53 ASSERT_EQ(0, fsetxattr(tf.fd, "user.foo", "01234567890123456789", 21, 0)); in TEST()
54 ASSERT_EQ(-1, fgetxattr(tf.fd, "user.foo", buf, sizeof(buf))); in TEST()
69 TemporaryFile tf; in TEST() local
70 int fd = open(tf.path, O_PATH); in TEST()
87 TemporaryFile tf; in TEST() local
88 int fd = open(tf.path, O_PATH); in TEST()
105 TemporaryFile tf; in TEST() local
107 ASSERT_EQ(0, fsetxattr(tf.fd, "user.foo", "bar", 4, 0)); in TEST()
108 ssize_t result = flistxattr(tf.fd, buf, sizeof(buf)); in TEST()
114 TemporaryFile tf; in TEST() local
116 ASSERT_EQ(0, fsetxattr(tf.fd, "user.foo", "bar", 4, 0)); in TEST()
117 int fd = open(tf.path, O_PATH); in TEST()