Lines Matching +full:open +full:- +full:source

1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
9 * Redistribution and use in source and binary forms, with or without
12 * 1. Redistributions of source code must retain the above copyright
43 class Open: public FuseTest { class
47 /* Test an OK open of a file with the given flags */
58 in.body.open.flags == (uint32_t)fuse_flags && in test_ok()
64 SET_OUT_HEADER_LEN(out, open); in test_ok()
67 fd = open(FULLPATH, os_flags); in test_ok()
85 TEST_F(Open, chr) in TEST_F() argument
101 ASSERT_EQ(-1, open(FULLPATH, O_RDONLY)); in TEST_F()
108 * kernel checked for it with lookup and tried to open it
110 TEST_F(Open, enoent) in TEST_F() argument
131 ASSERT_EQ(-1, open(FULLPATH, O_RDONLY)); in TEST_F()
142 TEST_F(Open, eperm) in TEST_F() argument
156 ASSERT_EQ(-1, open(FULLPATH, O_RDONLY)); in TEST_F()
162 * credentials open the same file, even if they use the same mode. This is
165 TEST_F(Open, multiple_creds) in TEST_F() argument
173 /* Fork a child to open the file with different credentials */ in TEST_F()
186 out.body.open.fh = fh0; in TEST_F()
188 SET_OUT_HEADER_LEN(out, open); in TEST_F()
200 out.body.open.fh = fh1; in TEST_F()
202 SET_OUT_HEADER_LEN(out, open); in TEST_F()
208 fd1 = open(FULLPATH, O_RDONLY); in TEST_F()
213 fd0 = open(FULLPATH, O_RDONLY); in TEST_F()
215 perror("open"); in TEST_F()
228 TEST_F(Open, DISABLED_o_append) in TEST_F() argument
234 TEST_F(Open, o_creat) in TEST_F() argument
240 TEST_F(Open, DISABLED_o_direct) in TEST_F() argument
246 TEST_F(Open, o_excl) in TEST_F() argument
251 TEST_F(Open, o_exec) in TEST_F() argument
257 TEST_F(Open, o_noctty) in TEST_F() argument
262 TEST_F(Open, o_rdonly) in TEST_F() argument
268 TEST_F(Open, DISABLED_o_trunc) in TEST_F() argument
273 TEST_F(Open, o_wronly) in TEST_F() argument
278 TEST_F(Open, o_rdwr) in TEST_F() argument
286 TEST_F(Open, enosys) in TEST_F() argument
297 in.body.open.flags == (uint32_t)O_RDONLY && in TEST_F()
304 fd = open(FULLPATH, O_RDONLY); in TEST_F()
305 ASSERT_EQ(-1, fd) << strerror(errno); in TEST_F()
325 in.body.open.flags == (uint32_t)O_RDONLY && in TEST_F()
333 fd = open(FULLPATH, O_RDONLY); in TEST_F()
337 fd = open(FULLPATH, O_RDONLY); in TEST_F()