Home
last modified time | relevance | path

Searched refs:open (Results 401 - 425 of 4008) sorted by relevance

1...<<11121314151617181920>>...161

/third_party/rust/crates/nix/test/
H A Dtest_stat.rs117 fcntl::open(tempdir.path(), fcntl::OFlag::empty(), stat::Mode::empty()); in test_fstatat()
135 let link = File::open(&linkname).unwrap(); in test_stat_fstat_lstat()
181 fcntl::open(tempdir.path(), fcntl::OFlag::empty(), stat::Mode::empty()) in test_fchmodat()
275 let fd = fcntl::open(&fullpath, fcntl::OFlag::empty(), stat::Mode::empty()) in test_futimens()
292 fcntl::open(tempdir.path(), fcntl::OFlag::empty(), stat::Mode::empty()) in test_utimensat()
324 fcntl::open(tempdir.path(), fcntl::OFlag::empty(), stat::Mode::empty()) in test_mkdirat_success_path()
338 fcntl::open(tempdir.path(), fcntl::OFlag::empty(), stat::Mode::empty()) in test_mkdirat_success_mode()
354 let dirfd = fcntl::open( in test_mkdirat_fail()
403 Dir::open(tempdir.path(), OFlag::O_DIRECTORY, Mode::S_IRWXU).unwrap(); in test_mknodat()
/foundation/arkui/ui_lite/frameworks/imgdecode/
H A Dfile_img_decoder.cpp31 int32_t fd = open(dsc.path, O_RDONLY | O_BINARY); in Open()
33 int32_t fd = open(dsc.path, O_RDONLY); in Open()
69 fd = open(dsc.path, O_BINARY); in GetHeader()
71 fd = open(dsc.path, O_RDONLY); in GetHeader()
/foundation/filemanagement/app_file_service/utils/src/b_filesystem/
H A Db_file.cpp107 UniqueFd fdFrom(open(oldPath.data(), O_RDONLY)); in CopyFile()
109 HILOGE("failed to open the file %{public}s", from.c_str()); in CopyFile()
127 UniqueFd fdTo(open(newPath.data(), O_RDWR | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR)); in CopyFile()
129 HILOGE("failed to open the file %{public}s", to.c_str()); in CopyFile()
191 UniqueFd fdFrom(open(oldPath.data(), O_RDONLY)); in MoveFile()
193 HILOGE("failed to open the file %{public}s", GetAnonyPath(from).c_str()); in MoveFile()
196 UniqueFd fdTo(open(newPath.data(), O_RDWR | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR)); in MoveFile()
198 HILOGE("failed to open the file %{public}s", GetAnonyPath(to).c_str()); in MoveFile()
/third_party/googletest/googletest/test/
H A Dgoogletest-output-test.py284 golden_file = open(GOLDEN_PATH, 'rb')
313 open(os.path.join(
317 open(os.path.join(
333 golden_file = open(GOLDEN_PATH, 'wb')
/third_party/NuttX/fs/vfs/
H A Dfs_open.c288 if (filep->ops && filep->ops->open) in fp_open()
290 ret = filep->ops->open(filep); in fp_open()
344 * Name: open
346 * Description: Standard 'open' interface
350 int open(const char *path, int oflags, ...) in open() function
377 return open (__path, ((unsigned int)__oflag) | O_LARGEFILE, mode); in open64()
/third_party/mbedtls/scripts/
H A Dgenerate_driver_wrappers.py63 with open(file=os.path.join(output_dir, os.path.splitext(template_file_name)[0]),
102 with open(file=driver_file, mode='r', encoding='UTF-8') as f:
129 with open(file=file_path, mode='r', encoding='UTF-8') as file:
142 with open(file=os.path.join(json_directory, jsondriver_list),
/third_party/notofonts/scripts/
H A Dissue-stats.py21 sources = json.load(open("fontrepos.json"))
41 if i.state == "open":
76 open("docs/issues.json", "w"),
131 plt.title("Issues opened, closed, and open")
132 plt.savefig("docs/open-closed.png")
141 plt.title("Repositories with most open issues")
193 template = open("scripts/analytics-template.html", "r").read()
204 with open("docs/analytics.html", "w") as fh:
H A Dgather.py58 fontrepos = json.load(open("fontrepos.json"))
60 state = json.load(open("state.json"))
166 json.dump(state, open("state.json", "w"), indent=True, sort_keys=True)
180 json.dump(results, open("docs/noto.json", "w"), indent=True, sort_keys=True)
/third_party/libfuse/test/
H A Dtest_write_cache.c173 .open = tfs_open,
211 assert((fd = open("/dev/urandom", O_RDONLY)) != -1); in test_fs()
217 fd = open(fname, O_WRONLY); in test_fs()
225 rofd = open(fname, O_RDONLY); in test_fs()
/third_party/ltp/testcases/kernel/syscalls/mount/
H A Dmount03.c52 TST_EXP_FAIL(otfd = open(file, O_CREAT | O_RDWR, 0700), EROFS); in test_rdonly()
59 TST_EXP_FAIL(otfd = open(file, O_RDWR, 0700), EACCES); in test_nodev()
74 TST_EXP_FD(otfd = open(file, O_CREAT | O_RDWR, 0700)); in test_remount()
109 TST_EXP_FD_SILENT(otfd = open(file, O_CREAT | O_RDWR, 0700)); in test_file_dir_noatime()
/third_party/ltp/testcases/kernel/pty/
H A Dpty01.c104 slavefd = open(slavename, O_RDWR); in test1()
106 tst_brkm(TBROK, NULL, "open didn't fail as expected!"); in test1()
257 "trying TIOCGWINSZ on master with no open slave " in test3()
291 slavefd2 = open(slavename, O_RDWR); in test4()
293 tst_brkm(TFAIL | TERRNO, NULL, "Could not open %s (again)", in test4()
297 slavefd3 = open(slavename, O_RDWR); in test4()
299 tst_brkm(TFAIL | TERRNO, NULL, "Could not open %s (once more)", in test4()
342 masterfd = open(MASTERCLONE, O_RDWR); in test5()
/third_party/musl/libc-test/src/functionalext/fortify/
H A Dfcntl_ext.c37 * @tc.desc : test open normal condition
42 int fd = open("/proc/version", O_RDWR | O_CREAT, FILE_MODE_ALL); in open_0010()
51 * @tc.desc : test open O_CREAT without mode
69 open("/proc/version", flags); in open_0020()
85 * @tc.desc : test open O_TMPFILE without mode
103 open("/proc/version", flags); in open_0030()
119 * @tc.desc : test open only O_RDWR
124 int fd = open("/proc/version", O_RDWR); in open_0040()
/third_party/node/deps/openssl/openssl/crypto/store/
H A Dstore_register.c69 loader->open = open_function; in OSSL_STORE_LOADER_set_open()
187 if (loader->open == NULL || loader->load == NULL || loader->eof == NULL in ossl_store_register_loader_int()
220 template.open = NULL; in ossl_store_get0_loader_int()
251 template.open = NULL; in ossl_store_unregister_loader_int()
/third_party/python/Lib/test/
H A Dtest__osx_support.py44 with open(self.prog_name, 'w') as f:
56 with open(self.prog_name, 'w') as f:
147 with open(c_name, 'w') as f:
226 with open(c_name, 'w') as f:
/third_party/python/Lib/idlelib/
H A Dgrep.py24 instance and open the dialog. If text is selected, it is
40 dialog.open(text, searchphrase, io)
90 def open(self, text, searchphrase, io=None): member in GrepDialog
93 Extend the SearchDialogBase open() to set the initial value
101 SearchDialogBase.open(self, text, searchphrase)
155 For the each file in the path directory, open the file and
175 with open(fn, errors='replace') as f:
184 print(f"Hits found: {hits}\n(Hint: right-click to open locations.)"
/third_party/skia/third_party/externals/angle2/scripts/
H A Dgenerate_new_renderer.py168 impl_h_file = open(impl_h_file_path, 'r')
210 with open(impl_h_file_path, 'r') as impl_h_file:
226 h_file = open(h_file_path, 'w')
227 cpp_file = open(cpp_file_path, 'w')
H A Dgen_proc_table.py189 with open(out_file_name_gles, 'w') as out_file:
232 with open(out_file_name_gl, 'w') as out_file:
267 with open(out_file_name_cl, 'w') as out_file:
278 with open(out_file_name_cl_map, 'w') as out_file:
/third_party/openssl/crypto/store/
H A Dstore_register.c69 loader->open = open_function; in OSSL_STORE_LOADER_set_open()
187 if (loader->open == NULL || loader->load == NULL || loader->eof == NULL in ossl_store_register_loader_int()
220 template.open = NULL; in ossl_store_get0_loader_int()
251 template.open = NULL; in ossl_store_unregister_loader_int()
/third_party/skia/third_party/externals/angle2/src/tests/restricted_traces/
H A Dretrace_restricted_traces.py71 with open(header_file, 'rt') as f:
82 with open(header_file, 'rt') as f:
97 with open(header_file, 'wt') as f:
141 with open(os.path.join(script_dir, DEFAULT_TEST_JSON)) as f:
/third_party/skia/tools/android/
H A Dupload_to_android.py72 with open(repo_binary, 'w') as f:
140 with open(SK_USER_CONFIG_PATH, 'a') as f:
179 with open(config_file) as f:
190 with open(config_file, 'w') as f:
203 Please open the above URL to review and land the change.
/third_party/skia/tools/skpbench/
H A Dsheet.py32 (3) Run parseskpbench.py with the --open flag.
41 __argparse.add_argument('-o', '--open',
43 help="generate a temp file and open it (theoretically in a web browser)")
46 help="if using --open, a name for the temp file")
146 with open(src, mode='r') as infile:
150 if not FLAGS.open:
158 with open(pathname, mode='w') as tmpfile:
162 webbrowser.open(fileuri)
/third_party/vixl/tools/
H A Dlint.py120 with open(filename, 'rb') as f:
178 with open(filename, 'rb') as f:
208 with open(cached_results_pkl_filename, 'rb') as pkl_file:
214 with open(cached_results_pkl_filename, 'wb') as pkl_file:
/vendor/hihope/dayu210/bluetooth/src/
H A Dupio.c148 int fd = open(path, O_RDONLY); in init_rfkill()
150 HILOGE("init_rfkill : open(%s) failed: %s (%d)\n", in init_rfkill()
317 fd = open(rfkill_state_path, O_WRONLY); in upio_set_bluetooth_power()
319 HILOGE("set_bluetooth_power : open(%s) for write failed: %s (%d)", in upio_set_bluetooth_power()
367 fd = open(VENDOR_LPM_PROC_NODE, O_WRONLY); in upio_set()
369 LOGE("upio_set : open(%s) for write failed: %s (%d)", in upio_set()
455 fd = open(VENDOR_BTWRITE_PROC_NODE, O_WRONLY); in upio_set()
457 LOGE("upio_set : open(%s) for write failed: %s (%d)", in upio_set()
/vendor/hihope/rk3568/bluetooth/src/
H A Dupio.c148 fd = open(path, O_RDONLY); in init_rfkill()
150 HILOGE("init_rfkill : open(%s) failed: %s (%d)\n", in init_rfkill()
317 fd = open(rfkill_state_path, O_WRONLY); in upio_set_bluetooth_power()
319 HILOGE("set_bluetooth_power : open(%s) for write failed: %s (%d)", in upio_set_bluetooth_power()
367 fd = open(VENDOR_LPM_PROC_NODE, O_WRONLY); in upio_set()
369 LOGE("upio_set : open(%s) for write failed: %s (%d)", in upio_set()
455 fd = open(VENDOR_BTWRITE_PROC_NODE, O_WRONLY); in upio_set()
457 LOGE("upio_set : open(%s) for write failed: %s (%d)", in upio_set()
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/osal/linux/
H A Dosal_proc.c81 if ((sentry != NULL) && (sentry->open != NULL)) { in osal_procopen()
82 sentry->open(sentry); in osal_procopen()
98 .open = osal_procopen,
140 sentry->open = NULL; in osal_create_proc()
167 sentry->open = NULL; in osal_create_proc()

Completed in 13 milliseconds

1...<<11121314151617181920>>...161