Home
last modified time | relevance | path

Searched refs:open (Results 176 - 200 of 9314) sorted by relevance

12345678910>>...373

/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/PyYAML/tests/lib/
H A Dtest_canonical.py5 with open(canonical_filename, 'rb') as file:
16 with open(canonical_filename, 'rb') as file:
27 with open(data_filename, 'rb') as file:
/third_party/mesa3d/bin/
H A Dgit_sha1_gen.py21 ], stderr=open(os.devnull, 'w')).decode("ascii")
34 with open(args.output, 'r') as file:
37 with open(args.output, 'w') as file:
/third_party/mesa3d/src/compiler/isaspec/
H A Ddecode.py303 with open(glue_h, 'w') as f:
307 with open(dst_c, 'w') as f:
310 with open(dst_h, 'w') as f:
/third_party/node/deps/v8/third_party/inspector_protocol/
H A Dconvert_protocol_to_json.py15 return open(path, 'w', encoding='utf-8')
17 return open(path, 'wb')
31 input_file = open(file_name, "r")
/third_party/ltp/testcases/kernel/syscalls/setresuid/
H A Dsetresuid04.c12 * to change euid to a non-root user and tries to open the file with RDWR
15 * inherits new euid and open fails with EACCES.
16 * Test verifies the successful open action after reverting the euid back
44 TST_EXP_FAIL2(open(TEMP_FILE, O_RDWR), EACCES); in run()
48 TST_EXP_FAIL2(open(TEMP_FILE, O_RDWR), EACCES); in run()
56 TST_EXP_FD(open(TEMP_FILE, O_RDWR)); in run()
/third_party/musl/libc-test/src/functionalext/supplement/dirent/
H A Dfdopendir.c34 int fd = open("/data/data", O_RDONLY); in fdopendir_0100()
61 int fd = open("/data/data/test.txt", O_RDONLY); in fdopendir_0300()
74 int fd = open("/data/data/test.txt", O_RDONLY); in fdopendir_0400()
/third_party/musl/libc-test/src/functionalext/supplement/fcntl/fcntl_gtest/
H A Dfcntl_open64_test.cpp13 * @tc.desc: Verify whether the "/proc/version" file could be successfully opened through open and open64 functions.
18 int file = open("/proc/version", O_RDONLY); in HWTEST_F()
28 * @tc.desc: Verify that the open64 interface has the same functionality and behavior as the open interface.
33 int file = open("/proc/version", O_WRONLY); in HWTEST_F()
43 * @tc.desc: Verify that the open64 interface has the same functionality and behavior as the open interface when opening
49 int file = open("/proc/version", O_RDWR); in HWTEST_F()
/third_party/skia/third_party/externals/harfbuzz/src/
H A Dgen-hb-version.py18 with open (OUTPUT, "r", encoding='utf-8') as old_output:
26 with open (INPUT, "r", encoding='utf-8') as template:
27 with open (OUTPUT, "wb") as output:
/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:

Completed in 9 milliseconds

12345678910>>...373