Lines Matching +full:auto +full:- +full:mode

1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
44 #define VNOVAL (-1) /* Defined in sys/vnode.h */
70 /* Test an OK creation of a file with the given mode and device number */
72 mode_t mode, dev_t dev) in expect_mknod() argument
75 ResultOf([=](auto in) { in expect_mknod()
80 in.body.mknod.mode == mode && in expect_mknod()
86 ).WillOnce(Invoke(ReturnImmediate([=](auto in __unused, auto& out) { in expect_mknod()
88 out.body.entry.attr.mode = mode; in expect_mknod()
113 /* Test an OK creation of a file with the given mode and device number */
115 mode_t mode, dev_t dev) in expect_mknod() argument
118 ResultOf([=](auto in) { in expect_mknod()
123 in.body.mknod.mode == mode && in expect_mknod()
128 ).WillOnce(Invoke(ReturnImmediate([=](auto in __unused, auto& out) { in expect_mknod()
130 out.body.entry.attr.mode = mode; in expect_mknod()
149 mode_t mode = S_IFBLK | 0755; in TEST_F() local
155 expect_mknod(FUSE_ROOT_ID, RELPATH, ino, mode, rdev); in TEST_F()
157 EXPECT_EQ(0, mknod(FULLPATH, mode, rdev)) << strerror(errno); in TEST_F()
164 mode_t mode = S_IFCHR | 0755; in TEST_F() local
170 expect_mknod(FUSE_ROOT_ID, RELPATH, ino, mode, rdev); in TEST_F()
172 EXPECT_EQ(0, mknod(FULLPATH, mode, rdev)) << strerror(errno); in TEST_F()
183 mode_t mode = S_IFIFO | 0755; in TEST_F() local
189 ResultOf([=](auto in) { in TEST_F()
193 in.body.mknod.mode == mode && in TEST_F()
198 EXPECT_NE(0, mkfifo(FULLPATH, mode)); in TEST_F()
206 mode_t mode = S_IFIFO | 0755; in TEST_F() local
212 expect_mknod(FUSE_ROOT_ID, RELPATH, ino, mode, rdev); in TEST_F()
214 EXPECT_EQ(0, mkfifo(FULLPATH, mode)) << strerror(errno); in TEST_F()
218 * Create a unix-domain socket.
226 mode_t mode = S_IFSOCK | 0755; in TEST_F() local
229 dev_t rdev = -1; /* Really it's a don't care */ in TEST_F()
234 expect_mknod(FUSE_ROOT_ID, RELPATH, ino, mode, rdev); in TEST_F()
257 mode_t mode = S_IFSOCK | 0755; in TEST_F() local
261 dev_t rdev = -1; /* Really it's a don't care */ in TEST_F()
269 expect_mknod(ino, RELPATH, ino, mode, rdev); in TEST_F()
277 ASSERT_EQ(-1, bind(fd, (struct sockaddr*)&sa, sizeof(sa))); in TEST_F()
293 mode_t mode = S_IFWHT | 0755; in TEST_F() local
299 expect_mknod(FUSE_ROOT_ID, RELPATH, ino, mode, rdev); in TEST_F()
301 EXPECT_EQ(0, mknod(FULLPATH, mode, 0)) << strerror(errno); in TEST_F()
309 mode_t mode = S_IFIFO | 0755; in TEST_F() local
315 expect_mknod(FUSE_ROOT_ID, RELPATH, ino, mode, rdev); in TEST_F()
317 EXPECT_EQ(0, mkfifo(FULLPATH, mode)) << strerror(errno); in TEST_F()