Home
last modified time | relevance | path

Searched refs:open (Results 1 - 25 of 6462) sorted by relevance

12345678910>>...259

/kernel/linux/linux-6.6/io_uring/
H A Dopenclose.c34 static bool io_openat_force_async(struct io_open *open) in io_openat_force_async() argument
37 * Don't bother trying for O_TRUNC, O_CREAT, or O_TMPFILE open, in io_openat_force_async()
42 return open->how.flags & (O_TRUNC | O_CREAT | __O_TMPFILE); in io_openat_force_async()
47 struct io_open *open = io_kiocb_to_cmd(req, struct io_open); in __io_openat_prep() local
56 /* open.how should be already initialised */ in __io_openat_prep()
57 if (!(open->how.flags & O_PATH) && force_o_largefile()) in __io_openat_prep()
58 open->how.flags |= O_LARGEFILE; in __io_openat_prep()
60 open->dfd = READ_ONCE(sqe->fd); in __io_openat_prep()
62 open->filename = getname(fname); in __io_openat_prep()
63 if (IS_ERR(open in __io_openat_prep()
82 struct io_open *open = io_kiocb_to_cmd(req, struct io_open); io_openat_prep() local
92 struct io_open *open = io_kiocb_to_cmd(req, struct io_open); io_openat2_prep() local
111 struct io_open *open = io_kiocb_to_cmd(req, struct io_open); io_openat2() local
177 struct io_open *open = io_kiocb_to_cmd(req, struct io_open); io_open_cleanup() local
[all...]
/kernel/linux/linux-5.10/sound/isa/sb/
H A Dsb8_midi.c41 if (chip->open & SB_OPEN_MIDI_INPUT_TRIGGER) { in snd_sb8dsp_midi_interrupt()
60 if (chip->open & ~valid_open_flags) { in snd_sb8dsp_midi_input_open()
64 chip->open |= SB_OPEN_MIDI_INPUT; in snd_sb8dsp_midi_input_open()
66 if (!(chip->open & SB_OPEN_MIDI_OUTPUT)) { in snd_sb8dsp_midi_input_open()
87 if (chip->open & ~valid_open_flags) { in snd_sb8dsp_midi_output_open()
91 chip->open |= SB_OPEN_MIDI_OUTPUT; in snd_sb8dsp_midi_output_open()
93 if (!(chip->open & SB_OPEN_MIDI_INPUT)) { in snd_sb8dsp_midi_output_open()
111 chip->open &= ~(SB_OPEN_MIDI_INPUT | SB_OPEN_MIDI_INPUT_TRIGGER); in snd_sb8dsp_midi_input_close()
113 if (!(chip->open & SB_OPEN_MIDI_OUTPUT)) { in snd_sb8dsp_midi_input_close()
130 chip->open in snd_sb8dsp_midi_output_close()
[all...]
/kernel/linux/linux-6.6/sound/isa/sb/
H A Dsb8_midi.c41 if (chip->open & SB_OPEN_MIDI_INPUT_TRIGGER) { in snd_sb8dsp_midi_interrupt()
60 if (chip->open & ~valid_open_flags) { in snd_sb8dsp_midi_input_open()
64 chip->open |= SB_OPEN_MIDI_INPUT; in snd_sb8dsp_midi_input_open()
66 if (!(chip->open & SB_OPEN_MIDI_OUTPUT)) { in snd_sb8dsp_midi_input_open()
87 if (chip->open & ~valid_open_flags) { in snd_sb8dsp_midi_output_open()
91 chip->open |= SB_OPEN_MIDI_OUTPUT; in snd_sb8dsp_midi_output_open()
93 if (!(chip->open & SB_OPEN_MIDI_INPUT)) { in snd_sb8dsp_midi_output_open()
111 chip->open &= ~(SB_OPEN_MIDI_INPUT | SB_OPEN_MIDI_INPUT_TRIGGER); in snd_sb8dsp_midi_input_close()
113 if (!(chip->open & SB_OPEN_MIDI_OUTPUT)) { in snd_sb8dsp_midi_input_close()
130 chip->open in snd_sb8dsp_midi_output_close()
[all...]
/test/xts/acts/kernel_lite/fs_posix/src/
H A DFsFcntlTest.cpp47 EXPECT_NE((fd = open(FILE0, O_CREAT | O_RDWR, 0777)), -1) << "> open faild errno = " << errno; in HWTEST_F()
52 EXPECT_NE((fd = open(FILE0, O_RDONLY, 0777)), -1) << "> open faild errno = " << errno; in HWTEST_F()
70 EXPECT_NE((fd = open(FILE0, O_CREAT | O_RDWR, 0777)), -1) << "> open faild errno = " << errno; in HWTEST_F()
74 EXPECT_NE((fd = open(FILE0, flagReadWrite, 0777)), -1) << "> open faild errno = " << errno; in HWTEST_F()
91 EXPECT_NE((fd = open(FILE0, O_CREAT | O_RDWR, 0777)), -1) << "> open fail in HWTEST_F()
[all...]
/kernel/uniproton/cmake/common/build_auxiliary_script/
H A DKconfig2macro.py30 with open(in_file, 'r') as fd_in:
40 with codecs.open(out_file,
113 with codecs.open(out_file, 'a+') as fd_out, open(in_file) as fd_in:
125 with open(filename, 'r', errors='ignore') as fp:
130 with codecs.open(file, 'a+') as fd_in:
138 with codecs.open(out_file, 'a+') as fd_out:
147 with codecs.open(out_file, 'a+') as fd_out:
157 with codecs.open(out_file, 'a+') as fd_out:
/test/xts/hats/kernel/syscalls/fileio/unlinkat/
H A DUnlinkatApiTest.cpp72 fileFd = open(UNLINKAT_TEST_FILE, O_RDWR | O_CREAT | O_TRUNC, 0644); in HWTEST_F()
76 dirFd = open(UNLINKAT_TEST_DIR, O_RDONLY); in HWTEST_F()
83 fileFd = open(UNLINKAT_TEST_FILE, O_RDWR, 0644); in HWTEST_F()
147 fileFd = open(unlinkatNewFile2, O_RDWR | O_CREAT, 0777); in HWTEST_F()
152 fileFd = open(unlinkatNewFile2, O_RDWR | O_CREAT, 0777); in HWTEST_F()
179 fileFd = open(UNLINKAT_TEST_FILE, O_RDWR | O_TRUNC, 0644); in HWTEST_F()
183 dirFd = open(UNLINKAT_TEST_DIR, O_RDONLY); in HWTEST_F()
239 fileFd = open(UNLINKAT_TEST_FILE, O_RDWR | O_CREAT | O_TRUNC, 0644); in HWTEST_F()
243 dirFd = open(UNLINKAT_TEST_DIR, O_RDONLY); in HWTEST_F()
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/
H A Dstdioextndk1.cpp39 int fileDescribe = open(TEMP_FILE, O_CREAT, PARAM_0777); in FBufSize_One()
62 int fileDescribe = open(TEMP_FILE, O_CREAT, PARAM_0777); in FBufSize_Two()
86 int fileDescribe = open(TEMP_FILE, O_CREAT, PARAM_0777); in Flbf_One()
109 int fileDescribe = open(TEMP_FILE, O_CREAT, PARAM_0777); in Flbf_Two()
132 int fileDescribe = open(TEMP_FILE, O_CREAT, PARAM_0777); in Flbf_Three()
154 int fileDescribe = open(TEMP_FILE, O_CREAT | O_WRONLY); in Fpending_One()
176 int fileDescribe = open(TEMP_FILE, O_CREAT | O_WRONLY); in Fpending_Two()
200 int fileDescribe = open(TEMP_FILE, O_CREAT | O_WRONLY); in Fpurge_One()
224 int fileDescribe = open(TEMP_FILE, O_CREAT, PARAM_0777); in Freadable_One()
245 int fileDescribe = open(TEMP_FIL in Freadable_Two()
[all...]
H A Dxattrndk.cpp54 int fd = open("/data/storage/el2/base/files/test.txt", O_RDWR | O_CREAT, perms); in Lgetxattr()
81 int fd = open("/data/storage/el2/base/files/test.txt", O_RDWR | O_CREAT, perms); in Setxattr()
102 int fd = open("/data/storage/el2/base/files/test.txt", O_RDWR | O_CREAT, perms); in Getxattr()
129 int fd = open("/data/storage/el2/base/files/test.txt", O_RDWR | O_CREAT, perms); in Listxattr()
157 int fd = open("/data/storage/el2/base/files/test.txt", O_RDWR | O_CREAT, perms); in LListxattr()
186 int firstParam = open("/data/storage/el2/base/files/Fzl.txt", O_CREAT, PARAM_0777); in FListXAttr()
198 int fd = open("/data/storage/el2/base/files/test.txt", O_RDWR | O_CREAT, perms); in Lsetxattr()
216 int fd = open(path, O_CREAT | O_WRONLY, PARAM_0667); in Removexattr()
228 int fd = open(path, O_CREAT | O_WRONLY, PARAM_0667); in Lremovexattr()
244 int fd = open(pat in Fremovexattr()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/wireguard/qemu/
H A Dinit.c72 fd = open("/dev/urandom", O_WRONLY); in seed_rng()
74 panic("open(urandom)"); in seed_rng()
113 fd = open("/proc/sys/kernel/printk", O_WRONLY); in enable_logging()
119 fd = open("/proc/sys/debug/exception-trace", O_WRONLY); in enable_logging()
125 fd = open("/proc/sys/kernel/panic_on_warn", O_WRONLY); in enable_logging()
184 fd = open("/proc/cmdline", O_RDONLY); in launch_tests()
186 panic("open(/proc/cmdline)"); in launch_tests()
200 fd = open(success_dev, O_WRONLY); in launch_tests()
202 panic("open(success_dev)"); in launch_tests()
224 int fd = open("/de in ensure_console()
[all...]
/test/xts/hats/kernel/syscalls/fileio/copyfilerange/
H A DCopyFileRangeApiTest.cpp79 int fdIn = open(TEST_SRC_FILE, O_RDWR | O_CREAT | O_TRUNC, MODE_0644); in HWTEST_F()
83 int fdOut = open(TEST_DES_FILE, O_RDWR | O_CREAT | O_TRUNC, MODE_0644); in HWTEST_F()
112 int fd = open(TEST_FILE, O_RDWR | O_CREAT | O_TRUNC, MODE_0644); in HWTEST_F()
142 int fdIn = open(TEST_SRC_FILE, O_RDWR | O_CREAT | O_TRUNC, MODE_0644); in HWTEST_F()
144 int fdOut = open(TEST_DES_FILE, O_RDWR | O_CREAT | O_TRUNC, MODE_0644); in HWTEST_F()
172 int fdIn = open(TEST_SRC_FILE, O_WRONLY | O_CREAT, MODE_0644); in HWTEST_F()
176 int fdOut = open(TEST_DES_FILE, O_RDONLY | O_CREAT, MODE_0644); in HWTEST_F()
178 int fd = open(TEST_FILE, O_RDWR | O_CREAT, MODE_0644); in HWTEST_F()
217 int fdIn = open(TEST_SRC_DIR, O_RDONLY | O_DIRECTORY); in HWTEST_F()
223 int fdOut = open(TEST_DES_DI in HWTEST_F()
[all...]
/test/xts/hats/kernel/syscalls/fileio/linkat/
H A DLinkatApiTest.cpp69 dirFd = open(TEST_DIR, O_DIRECTORY); in HWTEST_F()
71 int fd = open(OLD_FILE_NAME, O_CREAT | O_RDWR, 0644); in HWTEST_F()
93 int fd = open(OLD_FILE_NAME, O_CREAT | O_RDWR, 0644); in HWTEST_F()
117 dirFd = open(TEST_DIR, O_DIRECTORY); in HWTEST_F()
119 int fd = open(OLD_FILE_NAME, O_CREAT | O_RDWR, 0644); in HWTEST_F()
143 dirFd = open(TEST_DIR, O_DIRECTORY); in HWTEST_F()
145 int fd = open(OLD_FILE_NAME, O_CREAT | O_RDWR, 0644); in HWTEST_F()
/build/ohos/images/mkimage/
H A Dimkcovert.py39 indata = os.fdopen(os.open(inputfile, flags, modes), 'a')
69 with open(inputfile, 'rb') as indata:
79 with open(sparseimagefile, 'r') as header:
98 with open(sparseimagefile, 'rb') as inputrow:
100 output = os.fdopen(os.open(imagefile, flags, modes), 'wb')
112 with open(imagefile, 'r+') as output:
156 with open(imagefile, 'rb') as inputrow, os.fdopen(os.open(temp_file, flags, modes), 'wb') as outputtemp:
176 outputrow = os.fdopen(os.open(sparseimagefile, flags, modes), 'w')
192 outputrow = os.fdopen(os.open(sparseimagefil
[all...]
/kernel/linux/linux-5.10/drivers/staging/fwserial/
H A Ddma_fifo.c27 * private helper fn to determine if check is in open interval (lo,hi)
79 fifo->open = 0; in dma_fifo_alloc()
126 fifo->open = 0; in dma_fifo_reset()
198 if (fifo->open == fifo->open_limit) in dma_fifo_out_pend()
223 ++fifo->open; in dma_fifo_out_pend()
225 if (FAIL(fifo, fifo->open > fifo->open_limit, in dma_fifo_out_pend()
226 "past open limit:%d (limit:%d)", in dma_fifo_out_pend()
227 fifo->open, fifo->open_limit)) in dma_fifo_out_pend()
250 if (list_empty(&fifo->pending) && fifo->open == 0) in dma_fifo_out_complete()
253 if (FAIL(fifo, list_empty(&fifo->pending) != (fifo->open in dma_fifo_out_complete()
[all...]
/kernel/linux/linux-6.6/fs/nfsd/
H A Dnfs4proc.c105 struct nfsd4_compound_state *cstate, struct nfsd4_open *open) in nfsd4_check_open_attributes()
109 if (open->op_create == NFS4_OPEN_CREATE) { in nfsd4_check_open_attributes()
110 if (open->op_createmode == NFS4_CREATE_UNCHECKED in nfsd4_check_open_attributes()
111 || open->op_createmode == NFS4_CREATE_GUARDED) in nfsd4_check_open_attributes()
113 open->op_bmval, nfsd_attrmask); in nfsd4_check_open_attributes()
114 else if (open->op_createmode == NFS4_CREATE_EXCLUSIVE4_1) in nfsd4_check_open_attributes()
116 open->op_bmval, nfsd41_ex_attrmask); in nfsd4_check_open_attributes()
123 is_create_with_attrs(struct nfsd4_open *open) in is_create_with_attrs() argument
125 return open->op_create == NFS4_OPEN_CREATE in is_create_with_attrs()
126 && (open in is_create_with_attrs()
104 nfsd4_check_open_attributes(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_open *open) nfsd4_check_open_attributes() argument
142 do_open_permission(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_open *open, int accmode) do_open_permission() argument
179 nfsd4_set_open_owner_reply_cache(struct nfsd4_compound_state *cstate, struct nfsd4_open *open, struct svc_fh *resfh) nfsd4_set_open_owner_reply_cache() argument
194 nfsd4_vfs_create(struct svc_fh *fhp, struct dentry *child, struct nfsd4_open *open) nfsd4_vfs_create() argument
232 nfsd4_create_file(struct svc_rqst *rqstp, struct svc_fh *fhp, struct svc_fh *resfhp, struct nfsd4_open *open) nfsd4_create_file() argument
418 do_open_lookup(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_open *open, struct svc_fh **resfh) do_open_lookup() argument
485 do_open_fhandle(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_open *open) do_open_fhandle() argument
529 struct nfsd4_open *open = &u->open; nfsd4_open() local
653 struct nfsd4_open *open = &op->u.open; nfsd4_open_omfg() local
[all...]
/kernel/linux/linux-6.6/tools/testing/kunit/
H A Dkunit_tool_test.py101 with open(log_path) as file:
112 with open(log_path) as file:
141 with open(all_passed_log) as file:
148 with open(all_passed_log) as file:
155 with open(kselftest_log) as file:
162 with open(failed_log) as file:
169 with open(empty_log) as file:
179 with open(missing_plan_log) as file:
189 with open(header_log) as file:
198 with open(no_plan_lo
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/wireguard/qemu/
H A Dinit.c66 fd = open("/dev/random", O_WRONLY); in seed_rng()
68 panic("open(random)"); in seed_rng()
114 fd = open("/proc/sys/kernel/printk", O_WRONLY); in enable_logging()
120 fd = open("/proc/sys/debug/exception-trace", O_WRONLY); in enable_logging()
179 fd = open("/proc/cmdline", O_RDONLY); in launch_tests()
181 panic("open(/proc/cmdline)"); in launch_tests()
195 fd = open(success_dev, O_WRONLY); in launch_tests()
197 panic("open(success_dev)"); in launch_tests()
219 int fd = open("/dev/console", O_RDWR); in ensure_console()
231 panic("Unable to open consol in ensure_console()
[all...]
/kernel/linux/build/test/unittest/accesstokenid/
H A Daccesstokenid_test.cpp74 fd = open("/dev/random", O_RDONLY); in GenRand64()
88 int fd = open(DEV_ACCESSTOKENID, O_RDWR); in GetTokenid()
90 printf("open %s failed\r\n", DEV_ACCESSTOKENID); in GetTokenid()
107 int fd = open(DEV_ACCESSTOKENID, O_RDWR); in SetTokenid()
109 printf("open %s failed\r\n", DEV_ACCESSTOKENID); in SetTokenid()
126 int fd = open(DEV_ACCESSTOKENID, O_RDWR); in GetfTokenid()
128 printf("open %s failed\r\n", DEV_ACCESSTOKENID); in GetfTokenid()
145 int fd = open(DEV_ACCESSTOKENID, O_RDWR); in SetfTokenid()
147 printf("open %s failed\r\n", DEV_ACCESSTOKENID); in SetfTokenid()
368 int fd = open(DEV_ACCESSTOKENI in HWTEST_F()
[all...]
/test/xts/hats/kernel/accesstokenid/
H A Daccesstokenid_test.cpp78 fd = open("/dev/random", O_RDONLY); in GenRand64()
92 int fd = open(dev_accesstokenid, O_RDWR); in GetTokenid()
94 printf("open %s failed\r\n", dev_accesstokenid); in GetTokenid()
111 int fd = open(dev_accesstokenid, O_RDWR); in SetTokenid()
113 printf("open %s failed\r\n", dev_accesstokenid); in SetTokenid()
130 int fd = open(dev_accesstokenid, O_RDWR); in GetfTokenid()
132 printf("open %s failed\r\n", dev_accesstokenid); in GetfTokenid()
149 int fd = open(dev_accesstokenid, O_RDWR); in SetfTokenid()
151 printf("open %s failed\r\n", dev_accesstokenid); in SetfTokenid()
372 int fd = open(dev_accesstokeni in HWTEST_F()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/drivers/sdsi/
H A Dsdsi_test.py29 with open(file, mode='rb') as f:
49 f = open(file, "r")
121 f = open(folder + "provision_cap", "wb", 0)
128 f = open(folder + "provision_akc", "wb", 0)
141 f = open(folder + "registers", "rb")
159 f = open(node, 'wb', 0)
173 f = open(node, 'wb', 0)
174 g = open(node, 'wb', 0)
176 with open(driver_dir + 'unbind', 'w') as k:
211 with open(driver_di
[all...]
/build/toolchain/
H A Dmini_debug_info.py27 with os.fdopen(os.open(tmp_file, os.O_RDWR | os.O_CREAT), 'w', encoding='utf-8') as output_file:
31 with os.fdopen(os.open(symbols_path, os.O_RDWR | os.O_CREAT), 'w', encoding='utf-8') as output_file:
70 with os.fdopen(os.open(tmp_file1, os.O_RDWR | os.O_CREAT), 'w', encoding='utf-8') as output_file:
73 with os.fdopen(os.open(tmp_file1, os.O_RDWR | os.O_CREAT), 'r', encoding='utf-8') as output_file:
88 with os.fdopen(os.open(tmp_file1, os.O_RDWR | os.O_CREAT), 'w', encoding='utf-8') as output_file:
91 with os.fdopen(os.open(tmp_file1, os.O_RDWR | os.O_CREAT), 'r', encoding='utf-8') as output_file:
104 with os.fdopen(os.open(keep_path, os.O_RDWR | os.O_CREAT), 'w', encoding='utf-8') as output_file:
/test/xts/hats/kernel/syscalls/fileio/utimensat/
H A DUtimensatApiTest.cpp77 fd = open(UTIMENSAT_TEST_FILE, O_RDONLY); in HWTEST_F()
84 fd = open(UTIMENSAT_TEST_FILE, O_RDONLY | O_CREAT | O_TRUNC, 0644); in HWTEST_F()
125 fd = open(UTIMENSAT_TEST_FILE, O_RDONLY); in HWTEST_F()
132 fd = open(UTIMENSAT_TEST_FILE, O_RDONLY | O_CREAT | O_TRUNC, 0644); in HWTEST_F()
166 fd = open(UTIMENSAT_TEST_FILE, O_RDONLY); in HWTEST_F()
200 fd = open(UTIMENSAT_TEST_FILE, O_RDONLY); in HWTEST_F()
207 fd = open(UTIMENSAT_TEST_FILE, O_RDONLY | O_CREAT | O_TRUNC, 0644); in HWTEST_F()
/kernel/linux/linux-5.10/tools/testing/kunit/
H A Dkunit_tool_test.py103 file = open(log_path)
116 with open(log_path) as file:
146 file = open(all_passed_log)
156 file = open(failed_log)
166 file = open(empty_log)
178 file = open(crash_log)
189 file = open(crashed_log)
199 with open(prefix_log) as file:
209 with open(prefix_log) as file:
219 with open(mixed_prefix_lo
[all...]
/test/xts/hats/kernel/syscalls/fileio/lsetxattr/
H A DLsetxattrApiTest.cpp99 int fd = open(targetFilePath, O_WRONLY | O_CREAT, 0644); in HWTEST_F()
133 int fd = open(targetFilePath, O_WRONLY | O_CREAT, 0644); in HWTEST_F()
178 int fd = open(targetFilePath, O_WRONLY | O_CREAT, 0644); in HWTEST_F()
212 int fd = open(targetFilePath, O_WRONLY | O_CREAT, 0644); in HWTEST_F()
244 int fd = open(targetFilePath, O_WRONLY | O_CREAT, 0644); in HWTEST_F()
288 int fd = open(targetFilePath, O_WRONLY | O_CREAT, 0644); in HWTEST_F()
292 int newFd = open(OPEN_API_TEST_FILE, O_RDONLY, 0644); in HWTEST_F()
329 int fd = open(targetFilePath, O_WRONLY | O_CREAT, 0644); in HWTEST_F()
333 int newFd = open(OPEN_API_TEST_FILE, O_RDONLY, 0644); in HWTEST_F()
375 int fd = open(targetFilePat in HWTEST_F()
[all...]
/kernel/liteos_m/testsuites/unittest/posix/src/fs/api/
H A Dposix_fs_open_test.c35 * @tc.name open
43 int32_t fd = open(tmpFileName, O_CREAT | O_RDWR, TEST_MODE_HIGH);
49 fd = open(tmpFileName, O_CREAT | O_RDWR, TEST_MODE_NORMAL);
63 * @tc.name open
71 int32_t fd = open(tmpFileName1, O_CREAT | O_RDWR);
75 fd = open(tmpFileName2, O_CREAT | O_RDWR);
84 * @tc.name open
94 fd = open(tmpFileName, O_CREAT | O_RDWR);
/test/xts/acts/commonlibrary/toolchain/libc-test/
H A Dtar_files.py39 with open(source_f, "rb") as fp1:
40 with open(target_f, "wb") as fp:
45 with open(source_f, "rb") as fp1:
46 with open(target_f, "wb") as fp:
51 tar = tarfile.open(output_filename, "w")

Completed in 16 milliseconds

12345678910>>...259