• Home
  • Raw
  • Download

Lines Matching refs:buf

26   char buf[10];  in TEST()  local
28 ASSERT_EQ(4, getxattr(tf.path, "user.foo", buf, sizeof(buf))); in TEST()
29 ASSERT_STREQ("bar", buf); in TEST()
30 buf[0] = '\0'; in TEST()
31 ASSERT_EQ(4, lgetxattr(tf.path, "user.foo", buf, sizeof(buf))); in TEST()
32 ASSERT_STREQ("bar", buf); in TEST()
37 char buf[10]; in TEST() local
39 ASSERT_EQ(4, fgetxattr(tf.fd, "user.foo", buf, sizeof(buf))); in TEST()
40 ASSERT_STREQ("bar", buf); in TEST()
45 char buf[10]; in TEST() local
47 ASSERT_EQ(0, fgetxattr(tf.fd, "user.foo", buf, sizeof(buf))); in TEST()
52 char buf[10]; in TEST() local
54 ASSERT_EQ(-1, fgetxattr(tf.fd, "user.foo", buf, sizeof(buf))); in TEST()
59 char buf[10]; in TEST() local
64 ASSERT_EQ(-1, fgetxattr(65535, "user.foo", buf, sizeof(buf))); in TEST()
75 char buf[10]; in TEST() local
77 ASSERT_EQ(4, fgetxattr(fd, "user.foo", buf, sizeof(buf))); in TEST()
78 ASSERT_STREQ("bar", buf); in TEST()
93 char buf[10]; in TEST() local
95 ASSERT_EQ(-1, fgetxattr(fd, "user.foo", buf, sizeof(buf))); in TEST()
106 char buf[65536]; // 64kB is max possible xattr list size. See "man 7 xattr". in TEST() local
108 ssize_t result = flistxattr(tf.fd, buf, sizeof(buf)); in TEST()
110 ASSERT_TRUE(memmem(buf, sizeof(buf), "user.foo", 9) != nullptr); in TEST()
115 char buf[65536]; // 64kB is max possible xattr list size. See "man 7 xattr". in TEST() local
119 ssize_t res = flistxattr(fd, buf, sizeof(buf)); in TEST()
122 ASSERT_TRUE(static_cast<size_t>(res) <= sizeof(buf)); in TEST()
123 ASSERT_TRUE(memmem(buf, res, "user.foo", 9) != nullptr); in TEST()