/third_party/rust/crates/io-lifetimes/tests/ |
H A D | api.rs | 94 let file = std::fs::File::open("Cargo.toml").unwrap(); in test_api() 110 Tester::from_file(std::fs::File::open("Cargo.toml").unwrap().into_filelike()); in test_api() 112 std::fs::File::open("Cargo.toml") in test_api() 129 Tester::from_into_file(std::fs::File::open("Cargo.toml").unwrap().into_filelike()); in test_api() 139 let file = std::fs::File::open("Cargo.toml").unwrap(); in test_as()
|
/third_party/python/Lib/test/ |
H A D | test_unicode_file_functions.py | 2 # open, os.open, os.stat. os.listdir, os.rename, os.remove, os.mkdir, os.chdir, os.rmdir 75 with open(name, 'wb') as f: 101 self._apply_failure(open, name) 116 f = open(name, 'wb') 125 # open(), os.stat(), etc. don't raise any exception. 138 self._apply_failure(open, name) 170 with open(filename, 'wb') as f:
|
/third_party/spirv-tools/test/diff/diff_files/ |
H A D | generate_tests.py | 118 with open(in_path, 'r') as fin: 119 with open(out_path, 'w') as fout: 145 with open(file_name, 'r') as f: 263 with open(test_file_name, 'wb') as fout: 277 with open('diff_test_files_autogen.cmake', 'wb') as fout:
|
/third_party/skia/third_party/externals/angle2/scripts/ |
H A D | run_code_generation.py | 55 f = open(os.path.basename(script), 'r') 151 with open(fname, "r") as f: 202 with open(hash_fname) as hash_file: 237 f = open(os.path.basename(script), "r") 271 open(hash_fname, "w"),
|
/third_party/zlib/contrib/iostream/ |
H A D | zfstream.cpp | 18 gzfilebuf *gzfilebuf::open( const char *name, in open() function in gzfilebuf 270 void gzfilestream_common::open( const char *name, int io_mode ) { in open() function in gzfilestream_common 272 if ( !buffer.open( name, io_mode ) ) in open() 300 gzfilestream_common::open( name, io_mode ); in gzifstream() 320 gzfilestream_common::open( name, io_mode ); in gzofstream()
|
/kernel/linux/linux-5.10/tools/testing/selftests/proc/ |
H A D | setns-sysvipc.c | 94 nsfd = open(buf, O_RDONLY); in main() 101 (void)open("/proc/sysvipc/shm", O_RDONLY); in main() 115 fd = open("/proc/sysvipc/shm", O_RDONLY); in main()
|
/kernel/linux/linux-5.10/tools/usb/usbip/libsrc/ |
H A D | usbip_host_common.h | 25 int (*open)(struct usbip_host_driver *hdriver); member 57 if (!hdriver->ops.open) in usbip_driver_open() 59 return hdriver->ops.open(hdriver); in usbip_driver_open()
|
/kernel/linux/linux-6.6/tools/testing/selftests/proc/ |
H A D | setns-sysvipc.c | 94 nsfd = open(buf, O_RDONLY); in main() 101 (void)open("/proc/sysvipc/shm", O_RDONLY); in main() 115 fd = open("/proc/sysvipc/shm", O_RDONLY); in main()
|
/kernel/linux/linux-6.6/tools/usb/usbip/libsrc/ |
H A D | usbip_host_common.h | 25 int (*open)(struct usbip_host_driver *hdriver); member 57 if (!hdriver->ops.open) in usbip_driver_open() 59 return hdriver->ops.open(hdriver); in usbip_driver_open()
|
/kernel/liteos_m/testsuites/unittest/posix/src/fs/api/ |
H A D | posix_fs_read_test.c | 44 int32_t fd = open(tmpFileName, O_CREAT | O_RDWR); 71 int32_t fd = open(tmpFileName, O_CREAT | O_RDWR); 98 int32_t fd = open(tmpFileName, O_CREAT | O_WRONLY);
|
/third_party/PyYAML/tests/lib/ |
H A D | test_tokens.py | 47 with open(tokens_filename, 'r') as file: 50 with open(data_filename, 'rb') as file: 68 with open(filename, 'rb') as file:
|
/third_party/mesa3d/ohos/ |
H A D | meson_cross_process.py | 94 with open("cross_file", 'w+') as file:
105 with open(file_raw, 'r+') as file_raw:
106 with open(filename, "w+") as pc_file:
|
/third_party/node/deps/v8/tools/ |
H A D | compare_torque_output.py | 25 with open(results_file_name, "w") as results_file: 51 with open(left_file) as f1, open(right_file) as f2:
|
H A D | dump-cpp.py | 41 with open(log_file, 'r') as f: 56 with open(log_file) as f: 70 with open(log_file, 'w') as f:
|
/third_party/node/tools/ |
H A D | mkssldef.py | 18 if option == '-o': out = open(filenames.pop(0), 'w') 28 for line in open(filename).readlines(): 46 for line in open(filename).readlines():
|
/third_party/ltp/testcases/misc/math/float/exp_log/ |
H A D | genmodf.c | 71 fp = open(F_name, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Result_file() 72 fp1 = open(F_name1, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Result_file() 105 fp = open(F_name, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Data_file()
|
H A D | genfrexp.c | 57 fp = open(F_name, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Result_file() 58 fp1 = open(F_name1, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Result_file() 91 fp = open(F_name, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Data_file()
|
/third_party/ltp/testcases/misc/math/float/bessel/ |
H A D | genlgamma.c | 57 fp = open(F_name, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Result_file() 58 fpsi = open(F_namesign, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Result_file() 92 fp = open(F_name, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Data_file()
|
/third_party/ltp/testcases/misc/math/float/power/ |
H A D | genfabs.c | 49 fpi = open(F_naminp, O_RDONLY, 0777); in create_Result_file() 61 fp = open(F_name, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Result_file() 92 fp = open(F_name, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Data_file()
|
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
H A D | sync_file_range.c | 35 fd = open(path, O_RDWR | O_CREAT, TEST_MODE); in sync_file_range_0100() 37 t_error("%s open failed\n", __func__); in sync_file_range_0100() 80 fd = open(path, O_RDWR | O_CREAT, TEST_MODE); in sync_file_range_0300() 82 t_error("%s open failed\n", __func__); in sync_file_range_0300() 109 fd = open(path, O_RDWR | O_CREAT, TEST_MODE); in sync_file_range_0400() 111 t_error("%s open failed\n", __func__); in sync_file_range_0400()
|
/third_party/musl/libc-test/src/functionalext/supplement/misc/ |
H A D | pty.c | 45 int fd = open("/dev/ptmx", O_RDWR | O_NOCTTY); in ptsname_r_0100() 63 int fd = open("/dev/ptmx", O_RDWR | O_NOCTTY); in ptsname_r_0200() 93 int fd = open("/dev/ptmx", O_RDWR | O_NOCTTY); in ptsname_r_0400()
|
/third_party/python/Tools/scripts/ |
H A D | generate_sre_constants.py | 7 with open(file, 'r') as fobj: 12 with open(file, 'w') as fobj: 38 with open(infile) as fp:
|
H A D | gprof2html.py | 27 with open(filename, encoding="utf-8") as fp: 82 with open(outputfilename, "w", encoding="utf-8") as output: 84 webbrowser.open("file:" + os.path.abspath(outputfilename))
|
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/ |
H A D | json_validate.py | 44 with open(base_schema_filename) as baseSchemaFile: 46 with open(vkpcc_schema_filename) as vkSchemaFile: 48 with open(args.json_file) as jsonFile:
|
/third_party/skia/third_party/externals/spirv-tools/utils/ |
H A D | update_build_version.py | 89 with open(changes_file, mode='r') as f: 140 with open(output_file, 'r') as f: 144 with open(output_file, 'w') as f:
|