Home
last modified time | relevance | path

Searched refs:open (Results 201 - 225 of 10037) sorted by relevance

12345678910>>...402

/third_party/python/Tools/iobench/
H A Diobench.py25 return open(fn, mode, encoding=encoding or TEXT_ENCODING)
29 return open(fn, mode)
261 with open(filename, "rb") as f:
331 run_test_family(read_tests, "t", binary_files, lambda fn: open(fn, "rb"))
342 with open(name, "rb") as f:
345 lambda fn: open(os.devnull, "wb"), make_test_source)
360 with open(name, "rb") as f:
363 lambda fn: open(fn, "r+b"), make_test_source)
381 with open(name, "wb") as f:
413 with open(nam
[all...]
/test/testfwk/developer_test/local_coverage/interface_coverage/
H A Dmake_report.py98 with os.fdopen(os.open(reportpath, FLAGS_WRITE, MODES), 'w') as report:
133 with os.fdopen(os.open(reportpath, FLAGS_ADD, MODES), 'a') as report:
169 with os.fdopen(os.open(reportpath, FLAGS_ADD, MODES), 'a') as report:
209 with os.fdopen(os.open(reportpath, FLAGS_ADD, MODES), 'a') as report:
245 with os.fdopen(os.open(reportpath, FLAGS_ADD, MODES), 'a') as report:
/test/testfwk/developer_test/local_coverage/restore_comment/
H A Dbuild_before_generate.py57 with open(path, "r", encoding="utf-8", errors="ignore") as read_fp:
62 with os.fdopen(os.open(f"{source_dir}_bk{suffix_name}", FLAGS, MODES), 'w') as write_fp:
87 with open(subsystem_config_path, "r", encoding="utf-8", errors="ignore") as fp:
106 with open(system_info_path, "r") as system_text:
115 with os.fdopen(os.open(part_path, FLAGS, MODES), 'w') as out_file:
/test/xts/hats/kernel/syscalls/fileio/preadv/
H A DPreadvApiTest.cpp53 int fd = open(TEST_FILE, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); in SetUp()
86 int fd = open(TEST_FILE, O_RDONLY); in HWTEST_F()
145 int fd = open(EMPTY_FILE, O_CREAT | O_RDWR, 0644); in HWTEST_F()
175 int fd = open(TEST_FILE, O_RDWR | O_APPEND, 0644); in HWTEST_F()
210 int fd = open(TEST_FILE, O_RDONLY); in HWTEST_F()
/test/xts/hats/kernel/syscalls/fileio/fsetxattr/
H A DFsetxattrApiTest.cpp74 int fd = open(TEST_FILE, O_RDWR | O_CREAT, MODE_0644); in HWTEST_F()
118 int fd = open(TEST_FILE, O_RDWR | O_CREAT, MODE_0644); in HWTEST_F()
147 int fd = open(TEST_FILE, O_RDWR | O_CREAT, MODE_0644); in HWTEST_F()
172 int fd = open(TEST_FILE, O_RDWR | O_CREAT, MODE_0644); in HWTEST_F()
195 int fd = open(TEST_FILE, O_RDWR | O_CREAT, MODE_0644); in HWTEST_F()
/test/xts/hats/kernel/syscalls/fileio/write/
H A DWriteApiTest.cpp72 fd = open(WRITE_TEST_FILE, O_WRONLY | O_CREAT | O_TRUNC, 0644); in HWTEST_F()
79 fd = open(WRITE_TEST_FILE, O_RDONLY); in HWTEST_F()
123 * @tc.desc : write fd is not open for write fail.
133 fd = open(WRITE_TEST_FILE, O_RDONLY | O_CREAT | O_TRUNC, 0644); in HWTEST_F()
142 fd = open(WRITE_TEST_FILE, O_APPEND | O_CREAT | O_TRUNC, 0644); in HWTEST_F()
166 fd = open(WRITE_TEST_FILE, O_WRONLY | O_CREAT | O_TRUNC, 0644); in HWTEST_F()
/test/xts/hats/kernel/syscalls/fileio/mknodat/
H A DMknodatApiTest.cpp68 int dirFd = open(OPEN_API_TEST_PATH, O_RDONLY); in HWTEST_F()
141 int dirFd = open(OPEN_API_TEST_PATH, O_RDONLY); in HWTEST_F()
162 int dirFd = open(OPEN_API_TEST_PATH, O_RDONLY); in HWTEST_F()
183 int dirFd = open(OPEN_API_TEST_PATH, O_RDONLY); in HWTEST_F()
204 int dirFd = open(OPEN_API_TEST_PATH, O_RDONLY); in HWTEST_F()
/third_party/node/test/parallel/
H A Dtest-fs-chmod.js31 // Need to hijack fs.open/close to make sure that things
33 fs._open = fs.open;
35 fs.open = open;
44 function open() { function
98 fs.open(file2, 'w', common.mustSucceed((fd) => {
/third_party/musl/libc-test/src/functionalext/supplement/mman/mman_gtest/
H A Dmman_mmap_test.cpp63 int fd = open("mmap.txt", O_RDWR | O_CREAT, 0777); in HWTEST_F()
78 int fd = open("mmap.txt", O_RDWR | O_CREAT, 0777); in HWTEST_F()
94 int fd = open("mmap.txt", O_RDWR | O_CREAT, 0777); in HWTEST_F()
113 int fd = open("mmap.txt", O_RDWR | O_CREAT, 0777); in HWTEST_F()
134 int fd = open("mmap.txt", O_RDWR | O_CREAT, 0777); in HWTEST_F()
/third_party/vk-gl-cts/external/amber/src/tools/
H A Dupdate_vk_wrappers.py30 with open(file, 'r') as f:
210 with open(outfile, 'r') as f:
213 with open(outfile, 'w') as f:
218 with open(hdrfile, 'r') as f:
221 with open(hdrfile, 'w') as f:
/third_party/skia/third_party/externals/freetype/tests/scripts/
H A Ddownload-test-fonts.py106 with open(path, "rb") as f:
123 with open(dest_path, "wb") as f:
171 file = archive.open(filepath)
173 digest = digest_data(archive.open(filepath).read())
190 with open(install_path, "rb") as f:
/third_party/skia/third_party/externals/harfbuzz/test/shape/data/text-rendering-tests/
H A Dupdate.py85 with open ('DISABLED', 'r') as f: disabled = f.read ()
93 with open ('text-rendering-tests/testcases/' + x, 'r') as f: content = f.read ()
94 with open (out, 'w') as f: f.write (extract_tests (content))
102 with open ('meson.build', 'w') as f: f.write ('\n'.join (
110 with open ('Makefile.sources', 'w') as f: f.write ('\n'.join (
/third_party/skia/gn/
H A Dgn_meta_sln.py22 with open(fileName, "w") as f:
27 with open(projFileName) as projFile:
61 slnLines = iter(open("out/" + config[0] + "/all.sln"))
134 with open(srcProjPath) as srcProjFile:
169 with open(dstProjPath, "w") as newProj:
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/
H A Dhdf_defconfig_patch.py47 with open(path, "rb") as f_read:
67 write_fd = os.open(path, config_info["flags"], config_info["modes"])
88 with open(path, "rb") as fread:
108 with open(path, "wb") as fwrite:
112 with open(path, "r+", encoding=codetype) as fread:
131 with open(path, "w", encoding=codetype) as fwrite:
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/
H A Di915_debugfs_params.c50 .open = i915_param_int_open,
59 .open = i915_param_int_open,
103 .open = i915_param_uint_open,
112 .open = i915_param_uint_open,
157 .open = i915_param_charp_open,
166 .open = i915_param_charp_open,
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/
H A Di915_debugfs_params.c72 .open = i915_param_int_open,
81 .open = i915_param_int_open,
135 .open = i915_param_uint_open,
144 .open = i915_param_uint_open,
189 .open = i915_param_charp_open,
198 .open = i915_param_charp_open,
/test/xts/acts/kernel_lite/ipc_posix/pipe_fifo/
H A DFifoTest.cpp58 fd = open(FIFO_PATH, O_WRONLY, S_IRUSR|S_IWUSR); in HWTEST_F()
67 fd = open(FIFO_PATH, O_RDONLY, S_IRUSR|S_IWUSR); in HWTEST_F()
68 EXPECT_NE(fd, -1) << "> open faild errno = " << errno; in HWTEST_F()
124 fd = open(FIFO_PATH, O_RDONLY, S_IRUSR|S_IWUSR); in HWTEST_F()
149 fd = open(FIFO_PATH, O_WRONLY, S_IRUSR|S_IWUSR); in HWTEST_F()
150 EXPECT_NE(fd, -1) << "> open faild errno = " << errno; in HWTEST_F()
188 fd = open(FIFO_PATH, O_RDONLY); in HWTEST_F()
209 fd = open(FIFO_PATH, O_WRONLY, S_IRUSR|S_IWUSR); in HWTEST_F()
210 EXPECT_NE(fd, -1) << "> open faild errno = " << errno; in HWTEST_F()
/test/xts/hats/kernel/syscalls/fileio/fchownat/
H A DFchownatApiTest.cpp75 int dirfd = open(TEST_FILE_PATH, O_RDONLY | O_DIRECTORY); in HWTEST_F()
78 int fd = open(TEST_FILE, O_RDWR | O_CREAT, MODE_0755); in HWTEST_F()
117 fd = open(TEST_FILE_NAME, O_RDWR | O_CREAT, MODE_0644); in HWTEST_F()
172 int fd = open(TEST_FILE, O_RDWR | O_CREAT, MODE_0755); in HWTEST_F()
215 int fd = open(TEST_FILE_NAME, O_RDWR | O_CREAT, MODE_0644); in HWTEST_F()
252 int fd = open(TEST_FILE, O_RDWR | O_CREAT, 0644); in HWTEST_F()
/third_party/ltp/testcases/kernel/security/tomoyo/
H A Dtomoyo_file_test.c111 show_prompt("open(O_RDONLY)"); in stage_file_test()
112 fd = open(dev_null_path, O_RDONLY); in stage_file_test()
117 show_prompt("open(O_WRONLY)"); in stage_file_test()
118 fd = open(dev_null_path, O_WRONLY); in stage_file_test()
123 show_prompt("open(O_RDWR)"); in stage_file_test()
124 fd = open(dev_null_path, O_RDWR); in stage_file_test()
129 show_prompt("open(O_CREAT | O_EXCL)"); in stage_file_test()
130 fd = open(open_creat_path, O_CREAT | O_EXCL, 0666); in stage_file_test()
135 show_prompt("open(O_TRUNC)"); in stage_file_test()
136 fd = open(truncate_pat in stage_file_test()
[all...]
/third_party/python/Lib/distutils/tests/
H A Dtest_build_py.py21 f = open(os.path.join(sources, "__init__.py"), "w")
26 f = open(os.path.join(sources, "README.txt"), "w")
71 open(os.path.join(sources, "__init__.py"), "w").close()
75 open(os.path.join(testdir, "testfile"), "w").close()
137 open(os.path.join(pkg_dir, "__init__.py"), "w").close()
141 open(os.path.join(docdir, "testfile"), "w").close()
/third_party/skia/tools/skqp/
H A Dcut_release.py68 with open(path, 'r') as f:
91 with open(path, 'r') as f:
113 with open(filelist_path, 'w') as o:
152 with open(ASSETS + '/skqp/rendertests.txt', 'w') as o:
158 with open(ASSETS + '/skqp/unittests.txt', 'w') as o:
161 with open(ASSETS + '/files.checksum', 'w') as o:
/third_party/python/Lib/test/
H A Dtest_iter.py447 f = open(TESTFN, "w", encoding="utf-8")
453 f = open(TESTFN, "r", encoding="utf-8")
476 f = open(TESTFN, "w", encoding="utf-8")
482 f = open(TESTFN, "r", encoding="utf-8")
509 f = open(TESTFN, "w", encoding="utf-8")
515 f = open(TESTFN, "r", encoding="utf-8")
586 f = open(TESTFN, "w", encoding="utf-8")
593 f = open(TESTFN, "r", encoding="utf-8")
619 f = open(TESTFN, "w", encoding="utf-8")
625 f = open(TESTF
[all...]
H A Dtest_marshal.py23 with open(os_helper.TESTFN, "wb") as f:
25 with open(os_helper.TESTFN, "rb") as f:
139 with open(sys.argv[1], 'rb') as f:
147 with open(os_helper.TESTFN, 'wb') as f:
313 with open(os_helper.TESTFN, 'wb') as f:
319 with open(os_helper.TESTFN, 'rb') as f:
515 with open(__file__, "rb") as f:
533 with open(__file__, "rb") as f:
577 with open(os_helper.TESTFN, 'rb') as f:
586 with open(os_helpe
[all...]
/kernel/linux/linux-5.10/scripts/
H A Dget_dvb_firmware224 open FW,">$tmpdir/opera.fw";
262 open $FW, ">$tmpdir/fwtmp3";
401 open IN, '<', $sourcefile or die "Couldn't open $sourcefile to extract $fwfile data\n";
403 open OUT, '>', $fwfile;
537 open INFILE, '<', "$tmpdir/Driver/Files/AF15BDA.sys";
538 open OUTFILE, '>', $outfile;
794 open FW,">$fwfile";
854 open(CMD, "md5sum \"$filename\"|");
872 open INFIL
[all...]
/kernel/linux/linux-6.6/scripts/
H A Dget_dvb_firmware224 open FW,">$tmpdir/opera.fw";
262 open $FW, ">$tmpdir/fwtmp3";
401 open IN, '<', $sourcefile or die "Couldn't open $sourcefile to extract $fwfile data\n";
403 open OUT, '>', $fwfile;
537 open INFILE, '<', "$tmpdir/Driver/Files/AF15BDA.sys";
538 open OUTFILE, '>', $outfile;
794 open FW,">$fwfile";
854 open(CMD, "md5sum \"$filename\"|");
872 open INFIL
[all...]

Completed in 26 milliseconds

12345678910>>...402