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()
77 TEST_F(Open, chr) in TEST_F() argument
93 ASSERT_EQ(-1, open(FULLPATH, O_RDONLY)); in TEST_F()
100 * kernel checked for it with lookup and tried to open it
102 TEST_F(Open, enoent) in TEST_F() argument
123 ASSERT_EQ(-1, open(FULLPATH, O_RDONLY)); in TEST_F()
134 TEST_F(Open, eperm) in TEST_F() argument
148 ASSERT_EQ(-1, open(FULLPATH, O_RDONLY)); in TEST_F()
154 * credentials open the same file, even if they use the same mode. This is
157 TEST_F(Open, multiple_creds) in TEST_F() argument
165 /* Fork a child to open the file with different credentials */ in TEST_F()
178 out.body.open.fh = fh0; in TEST_F()
180 SET_OUT_HEADER_LEN(out, open); in TEST_F()
192 out.body.open.fh = fh1; in TEST_F()
194 SET_OUT_HEADER_LEN(out, open); in TEST_F()
200 fd1 = open(FULLPATH, O_RDONLY); in TEST_F()
205 fd0 = open(FULLPATH, O_RDONLY); in TEST_F()
207 perror("open"); in TEST_F()
220 TEST_F(Open, DISABLED_o_append) in TEST_F() argument
226 TEST_F(Open, o_creat) in TEST_F() argument
232 TEST_F(Open, DISABLED_o_direct) in TEST_F() argument
238 TEST_F(Open, o_excl) in TEST_F() argument
243 TEST_F(Open, o_exec) in TEST_F() argument
249 TEST_F(Open, o_noctty) in TEST_F() argument
254 TEST_F(Open, o_rdonly) in TEST_F() argument
260 TEST_F(Open, DISABLED_o_trunc) in TEST_F() argument
265 TEST_F(Open, o_wronly) in TEST_F() argument
270 TEST_F(Open, o_rdwr) in TEST_F() argument
280 TEST_F(Open, enosys) in TEST_F() argument
291 in.body.open.flags == (uint32_t)O_RDONLY && in TEST_F()
299 fd = open(FULLPATH, O_RDONLY); in TEST_F()
303 fd = open(FULLPATH, O_RDONLY); in TEST_F()