/third_party/python/Lib/importlib/resources/ |
H A D | abc.py | 76 with self.open('rb') as strm: 83 with self.open(encoding=encoding) as strm: 115 def open(self, mode='r', *args, **kwargs): member in Traversable 117 mode may be 'r' or 'rb' to open as text or binary. Return a handle 118 suitable for reading (same as pathlib.Path.open). 142 return self.files().joinpath(resource).open('rb')
|
/third_party/skia/third_party/externals/brotli/python/tests/ |
H A D | bro_test.py | 36 with open(temp_uncompressed, 'wb') as out_file: 37 with open(test_data, 'rb') as in_file: 84 with open(temp_compressed, 'wb') as out_file: 85 with open(test_data, 'rb') as in_file:
|
/third_party/skia/tools/skqp/ |
H A D | download_model.py | 19 with open(path, 'rb') as f: 35 with open(path, 'wb') as o: 51 with open(checksum_path, 'r') as f: 55 with open(file_list_file, 'r') as f:
|
/third_party/vk-gl-cts/scripts/src_util/ |
H A D | check_encoding.py | 44 f = open(filename, 'rb') 83 with open(filename, 'rb') as file: 110 file = open(filename, 'rt') 114 file = open(filename, 'rt', encoding=generalEncoding)
|
/third_party/python/Lib/test/ |
H A D | test_posix.py | 57 with open(os_helper.TESTFN, "wb"): 163 fp = open(os_helper.TESTFN) 173 fp = open(os_helper.TESTFN, 'w+') 184 with open(os_helper.TESTFN, 'w') as fp: 192 fp = os.open(sys.executable, os.O_RDONLY) 262 with open(r, "rb") as f: 278 fd = os.open(os_helper.TESTFN, os.O_WRONLY | os.O_CREAT) 290 fd = os.open(os_helper.TESTFN, os.O_RDWR | os.O_CREAT) 302 fd = os.open(os_helper.TESTFN, os.O_RDWR | os.O_CREAT) 314 fd = os.open(os_helpe [all...] |
H A D | test_fileinput.py | 47 with open(fd, mode, encoding=encoding) as f: 275 return open(*args, encoding="utf-8") 284 with open(TESTFN, 'wb') as f: 307 with open(TESTFN, 'wb') as f: 326 with open(temp_file, 'rb') as f: 336 with open(temp_file, 'rb') as f: 496 with open(t1, encoding="utf-8") as f: 865 original_open = gzip.open 866 gzip.open = self.fake_open 870 gzip.open [all...] |
H A D | test_linecache.py | 59 with tokenize.open(self.file_name) as fp: 119 with open(filename, encoding='utf-8') as file: 129 with open(os_helper.TESTFN, "w", encoding='utf-8') as fp: 156 with open(source_name, 'w', encoding='utf-8') as source: 162 with open(source_name, encoding='utf-8') as source: 167 with open(source_name, 'w', encoding='utf-8') as source: 179 with open(source_name, encoding='utf-8') as source: 254 with open(fname, 'w', encoding='utf-8') as source: 262 with open(self.modified_file, 'w', encoding='utf-8') as source:
|
/kernel/linux/linux-5.10/drivers/net/ethernet/amd/xgbe/ |
H A D | xgbe-debugfs.c | 222 .open = simple_open, 229 .open = simple_open, 300 .open = simple_open, 307 .open = simple_open, 314 .open = simple_open, 367 .open = simple_open, 374 .open = simple_open, 427 .open = simple_open, 434 .open = simple_open,
|
/kernel/linux/linux-5.10/drivers/usb/misc/ |
H A D | chaoskey.c | 79 int open; /* open count */ member 242 if (!dev->open) { in chaoskey_disconnect() 261 usb_dbg(interface, "open"); in chaoskey_open() 265 usb_dbg(interface, "open (dev)"); in chaoskey_open() 271 ++dev->open; in chaoskey_open() 274 usb_dbg(interface, "open success"); in chaoskey_open() 292 usb_dbg(interface, "open count at release is %d", dev->open); in chaoskey_release() 294 if (dev->open < in chaoskey_release() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/amd/xgbe/ |
H A D | xgbe-debugfs.c | 222 .open = simple_open, 229 .open = simple_open, 300 .open = simple_open, 307 .open = simple_open, 314 .open = simple_open, 367 .open = simple_open, 374 .open = simple_open, 427 .open = simple_open, 434 .open = simple_open,
|
/kernel/linux/linux-6.6/drivers/usb/misc/ |
H A D | chaoskey.c | 79 int open; /* open count */ member 241 if (!dev->open) { in chaoskey_disconnect() 260 usb_dbg(interface, "open"); in chaoskey_open() 264 usb_dbg(interface, "open (dev)"); in chaoskey_open() 270 ++dev->open; in chaoskey_open() 273 usb_dbg(interface, "open success"); in chaoskey_open() 291 usb_dbg(interface, "open count at release is %d", dev->open); in chaoskey_release() 293 if (dev->open < in chaoskey_release() [all...] |
/kernel/liteos_m/testsuites/unittest/posix/src/fs/full/ |
H A D | posix_fs_full_test.c | 45 * @tc.name open close unlink 55 fd1 = open(tmpFileName, O_CREAT | O_RDWR, TEST_MODE_HIGH); 59 fd2 = open(tmpFileName, O_CREAT | O_RDWR, TEST_MODE_HIGH); 66 fd2 = open(tmpFileName, O_CREAT | O_RDWR, TEST_MODE_HIGH); 80 * @tc.name open write read lseek read close unlink 95 fd = open(tmpFileName, O_CREAT | O_RDWR, TEST_MODE_HIGH); 150 fd[i] = open(tmpFileName, O_CREAT | O_RDWR, TEST_MODE_HIGH); 278 fd = open(tmpFileName, O_CREAT | O_RDWR); 311 * @tc.name open fstat close unlink 320 int32_t fd = open(tmpFileNam [all...] |
/third_party/node/lib/internal/fs/ |
H A D | streams.js | 54 if (stream.open !== openWriteFs && stream.open !== openReadFs) { 55 // Backwards compat for monkey patching open(). 58 if (args[0] === 'open') { 69 stream.open(); 71 stream[kFs].open(stream.path, stream.flags, stream.mode, (er, fd) => { 77 stream.emit('open', stream.fd); 87 open: (path, flags, mode, cb) => { 88 throw new ERR_METHOD_NOT_IMPLEMENTED('open()'); 166 validateFunction(this[kFs].open, 'option [all...] |
/third_party/libfuse/example/ |
H A D | passthrough.c | 283 res = open(path, fi->flags, mode); in xmp_create() 295 res = open(path, fi->flags); in xmp_open() 310 fd = open(path, O_RDONLY); in xmp_read() 334 fd = open(path, O_WRONLY); in xmp_write() 393 fd = open(path, O_WRONLY); in xmp_fallocate() 456 fd_in = open(path_in, O_RDONLY); in xmp_copy_file_range() 464 fd_out = open(path_out, O_WRONLY); in xmp_copy_file_range() 493 fd = open(path, O_RDONLY); in xmp_lseek() 528 .open = xmp_open,
|
/third_party/python/Lib/idlelib/ |
H A D | iomenu.py | 28 self.__id_open = self.text.bind("<<open-window-from-file>>", self.open) 39 self.text.unbind("<<open-window-from-file>>", self.__id_open) 77 def open(self, event=None, editFile=None): member in IOBinding 86 # If editFile is valid and already open, flist.open will 90 # pass self.loadfile to flist.open so it will load the file 91 # in the current window (if the file is not already open) 97 flist.open(filename, self.loadfile) 99 flist.open(filenam 415 def open(self, event): global() member in _io_binding.MyEditWin [all...] |
/kernel/linux/linux-5.10/fs/proc/ |
H A D | inode.c | 499 typeof_member(struct proc_ops, proc_open) open; in proc_reg_open() 504 open = pde->proc_ops->proc_open; in proc_reg_open() 505 if (open) in proc_reg_open() 506 rv = open(inode, file); in proc_reg_open() 536 open = pde->proc_ops->proc_open; in proc_reg_open() 537 if (open) in proc_reg_open() 538 rv = open(inode, file); in proc_reg_open() 592 .open = proc_reg_open, 605 .open = proc_reg_open, 619 .open [all...] |
/kernel/linux/linux-6.6/fs/proc/ |
H A D | inode.c | 493 typeof_member(struct proc_ops, proc_open) open; in proc_reg_open() 501 open = pde->proc_ops->proc_open; in proc_reg_open() 502 if (open) in proc_reg_open() 503 rv = open(inode, file); in proc_reg_open() 530 open = pde->proc_ops->proc_open; in proc_reg_open() 531 if (open) in proc_reg_open() 532 rv = open(inode, file); in proc_reg_open() 586 .open = proc_reg_open, 599 .open = proc_reg_open, 613 .open [all...] |
/kernel/linux/linux-5.10/drivers/watchdog/ |
H A D | pika_wdt.c | 52 unsigned long open; member 92 (!nowayout && !pikawdt_private.open)) { in pikawdt_ping() 117 if (test_and_set_bit(0, &pikawdt_private.open)) in pikawdt_open() 134 clear_bit(0, &pikawdt_private.open); in pikawdt_release() 213 .open = pikawdt_open,
|
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/ |
H A D | msm_perf.c | 28 bool open; member 160 if (perf->open || !gpu) { in perf_open() 166 perf->open = true; in perf_open() 183 perf->open = false; in perf_release() 190 .open = perf_open,
|
/kernel/linux/linux-6.6/drivers/watchdog/ |
H A D | pika_wdt.c | 52 unsigned long open; member 92 (!nowayout && !pikawdt_private.open)) { in pikawdt_ping() 117 if (test_and_set_bit(0, &pikawdt_private.open)) in pikawdt_open() 134 clear_bit(0, &pikawdt_private.open); in pikawdt_release() 213 .open = pikawdt_open,
|
/kernel/linux/linux-6.6/drivers/gpu/drm/msm/ |
H A D | msm_perf.c | 28 bool open; member 163 if (perf->open) { in perf_open() 169 perf->open = true; in perf_open() 186 perf->open = false; in perf_release() 193 .open = perf_open,
|
/third_party/libsnd/tests/ |
H A D | win32_test.c | 119 if ((fd = open (filename, mode, flags)) < 0) in show_fstat_error() 120 { printf ("\n\nLine %d: open() failed : %s\n\n", __LINE__, strerror (errno)) ; in show_fstat_error() 126 printf ("1) Re-open file in read/write mode and write another %d bytes at the end.\n", SIGNED_SIZEOF (data)) ; in show_fstat_error() 129 if ((fd = open (filename, mode, flags)) < 0) in show_fstat_error() 130 { printf ("\n\nLine %d: open() failed : %s\n\n", __LINE__, strerror (errno)) ; in show_fstat_error() 179 if ((fd = open (filename, mode, flags)) < 0) in show_lseek_error() 180 { printf ("\n\nLine %d: open() failed : %s\n\n", __LINE__, strerror (errno)) ; in show_lseek_error() 186 printf ("1) Re-open file in read/write mode and write another %d bytes at the end.\n", SIGNED_SIZEOF (data)) ; in show_lseek_error() 189 if ((fd = open (filename, mode, flags)) < 0) in show_lseek_error() 190 { printf ("\n\nLine %d: open() faile in show_lseek_error() [all...] |
/third_party/node/test/pseudo-tty/ |
H A D | testcfg.py | 59 f = open(self.expected) 101 source = open(self.file).read() 109 return (open(self.file).read() 111 + open(self.expected).read()) 116 fd = os.open(self.input, os.O_RDONLY)
|
/third_party/musl/scripts/ |
H A D | print_so_deps.py | 94 with os.fdopen(os.open("dep.dot", os.O_CREAT | os.O_WRONLY, 0o755), 'w', encoding='utf-8') as f: 107 with os.fdopen(os.open("dep.json", os.O_CREAT | os.O_WRONLY, 0o755), 'w', encoding='utf-8') as f: 113 with os.fdopen(os.open("dep.ext", os.O_CREAT | os.O_WRONLY, 0o755), 'w', encoding='utf-8') as f: 119 with os.fdopen(os.open("dep.csv", os.O_CREAT | os.O_WRONLY, 0o755), 'w', encoding='utf-8') as f: 181 with os.fdopen(os.open(args.path, os.O_RDONLY, 0o755), 'r', encoding='utf-8') as f:
|
/third_party/musl/libc-test/src/functionalext/supplement/misc/ |
H A D | nftw.c | 113 int fd = open(file, O_WRONLY | O_CREAT, 0644); in nftw_build_testfile() 115 t_error("%s error in open normal_file.txt! \n", __func__); in nftw_build_testfile() 125 fd = open(file, O_WRONLY | O_CREAT, 0666); in nftw_build_testfile() 127 t_error("%s error in open normal_file.txt! \n", __func__); in nftw_build_testfile() 137 fd = open(file, O_WRONLY | O_CREAT, 0000); in nftw_build_testfile() 139 t_error("%s error in open normal_file.txt! \n", __func__); in nftw_build_testfile() 149 fd = open(file, O_WRONLY | O_CREAT, 0644); in nftw_build_testfile() 151 t_error("%s error in open hidden_file.txt! \n", __func__); in nftw_build_testfile() 161 fd = open(file, O_WRONLY | O_CREAT, 0444); in nftw_build_testfile() 163 t_error("%s error in open read_only_fil in nftw_build_testfile() [all...] |