Home
last modified time | relevance | path

Searched refs:in_file (Results 1 - 25 of 44) sorted by relevance

12

/third_party/python/Lib/distutils/tests/
H A Dtest_text_file.py62 in_file = TextFile(filename, strip_comments=0, skip_blanks=0,
65 test_input(1, "no processing", in_file, result1)
67 in_file.close()
69 in_file = TextFile(filename, strip_comments=1, skip_blanks=0,
72 test_input(2, "strip comments", in_file, result2)
74 in_file.close()
76 in_file = TextFile(filename, strip_comments=0, skip_blanks=1,
79 test_input(3, "strip blanks", in_file, result3)
81 in_file.close()
83 in_file
[all...]
/third_party/python/Lib/
H A Duu.py29 encode(in_file, out_file [,name, mode], *, backtick=False)
30 decode(in_file [, out_file, mode, quiet])
45 def encode(in_file, out_file, name=None, mode=None, *, backtick=False):
48 # If in_file is a pathname open it and change defaults
52 if in_file == '-':
53 in_file = sys.stdin.buffer
54 elif isinstance(in_file, str):
56 name = os.path.basename(in_file)
59 mode = os.stat(in_file).st_mode
62 in_file
[all...]
/third_party/elfutils/tests/
H A Drun-large-elf-file.sh75 in_file="$1"
76 readelf_out="${in_file}.readelf.out"
77 out_file_strip="${in_file}.strip"
78 out_file_debug="${in_file}.debug"
80 testfiles ${in_file}
84 echo "addsections 2 ${in_file} 2147483648"
85 testrun ${abs_builddir}/addsections 2 ${in_file} 2147483648
86 testrun ${abs_top_builddir}/src/readelf -S ${in_file} > ${readelf_out}
94 echo "strip -o ${out_file_strip} -f ${out_file_debug} ${in_file}"
96 -f ${out_file_debug} ${in_file}
[all...]
H A Drun-copyadd-sections.sh22 in_file="$1"
23 out_file="${in_file}.copy"
26 testfiles ${in_file}
30 testrun ${abs_builddir}/elfcopy ${in_file} ${out_file}
31 testrun ${abs_top_builddir}/src/elfcmp ${in_file} ${out_file}
44 testrun ${abs_builddir}/elfcopy --mmap ${in_file} ${out_file_mmap}
45 testrun ${abs_top_builddir}/src/elfcmp ${in_file} ${out_file_mmap}
H A Drun-reverse-sections.sh22 in_file="$1"
23 out_file="${in_file}.rev"
26 testfiles ${in_file}
30 testrun ${abs_builddir}/elfcopy --reverse-offs ${in_file} ${out_file}
31 testrun ${abs_top_builddir}/src/elfcmp ${in_file} ${out_file}
35 testrun ${abs_top_builddir}/src/elfcmp ${in_file} ${out_file}
H A Drun-reverse-sections-self.sh22 in_file="$1"
23 base_name="$(basename ${in_file})"
30 testrun ${abs_builddir}/elfcopy --reverse-offs ${in_file} ${out_file}
31 testrun ${abs_top_builddir}/src/elfcmp ${in_file} ${out_file}
35 testrun ${abs_top_builddir}/src/elfcmp ${in_file} ${out_file}
H A Drun-copymany-sections.sh27 in_file="$1"
28 out_file="${in_file}.copy"
34 testrun ${abs_builddir}/elfcopy ${in_file} ${out_file}
35 testrun ${abs_top_builddir}/src/elfcmp ${in_file} ${out_file}
49 testrun ${abs_builddir}/elfcopy --mmap ${in_file} ${out_file_mmap}
50 testrun ${abs_top_builddir}/src/elfcmp ${in_file} ${out_file_mmap}
/kernel/uniproton/cmake/common/build_auxiliary_script/
H A DKconfig2macro.py29 def headerType(in_file):
30 with open(in_file, 'r') as fd_in:
112 def write_config(in_file, out_file, flag):
113 with codecs.open(out_file, 'a+') as fd_out, open(in_file) as fd_in:
165 def kconfig2macro(in_file, out_file, flag):
166 header_type = headerType(in_file)
174 ret = write_config(in_file, out_file, flag)
192 in_file = ".config"
212 in_file = arg
220 if os.path.exists(in_file)
[all...]
/third_party/skia/third_party/externals/brotli/python/tests/
H A Dcompressor_test.py29 with open(temp_compressed, 'rb') as in_file:
30 out_file.write(brotli.decompress(in_file.read()))
37 with open(test_data, 'rb') as in_file:
38 out_file.write(self.compressor.process(in_file.read()))
46 with open(test_data, 'rb') as in_file:
47 read_chunk = functools.partial(in_file.read, self.CHUNK_SIZE)
57 with open(test_data, 'rb') as in_file:
58 read_chunk = functools.partial(in_file.read, self.CHUNK_SIZE)
H A Dcompress_test.py23 with open(temp_compressed, 'rb') as in_file:
24 out_file.write(brotli.decompress(in_file.read(), **kwargs))
30 with open(test_data, 'rb') as in_file:
31 out_file.write(brotli.compress(in_file.read(), **kwargs))
H A Dbro_test.py37 with open(test_data, 'rb') as in_file:
39 args, stdin=in_file, stdout=out_file, env=TEST_ENV)
85 with open(test_data, 'rb') as in_file:
87 args, stdin=in_file, stdout=out_file, env=TEST_ENV)
/third_party/icu/tools/unicode/py/
H A Dpreparseucd.py361 def ReadUCDLines(in_file, want_ranges=True, want_other=False,
367 for line in in_file:
450 def ParsePropertyAliases(in_file):
460 for data in ReadUCDLines(in_file, want_ranges=False,
568 def ParsePropertyValueAliases(in_file):
570 for data in ReadUCDLines(in_file, want_ranges=False,
631 def ParseBlocks(in_file):
632 for data in ReadUCDLines(in_file, want_missing=True):
654 def ParseUnicodeData(in_file):
658 for data in ReadUCDLines(in_file, want_missin
[all...]
/third_party/skia/third_party/externals/spirv-tools/tools/lint/
H A Dlint.cpp36 // On return, this function stores the name of the input program in |in_file|.
39 LintStatus ParseFlags(int argc, const char** argv, const char** in_file) { in ParseFlags() argument
43 "expected exactly one argument: in_file"); in ParseFlags()
47 *in_file = argv[1]; in ParseFlags()
54 const char* in_file = nullptr; in main() local
61 LintStatus status = ParseFlags(argc, argv, &in_file); in main()
68 if (!ReadBinaryFile(in_file, &binary)) { in main()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/tools/lint/
H A Dlint.cpp36 // On return, this function stores the name of the input program in |in_file|.
39 LintStatus ParseFlags(int argc, const char** argv, const char** in_file) { in ParseFlags() argument
43 "expected exactly one argument: in_file"); in ParseFlags()
47 *in_file = argv[1]; in ParseFlags()
54 const char* in_file = nullptr; in main() local
61 LintStatus status = ParseFlags(argc, argv, &in_file); in main()
68 if (!ReadBinaryFile(in_file, &binary)) { in main()
/kernel/linux/linux-5.10/init/
H A Ddo_mounts_rd.c17 static struct file *in_file, *out_file; variable
202 in_file = filp_open(from, O_RDONLY, 0); in rd_load_image()
203 if (IS_ERR(in_file)) in rd_load_image()
207 nblocks = identify_ramdisk_image(in_file, in_pos, &decompressor); in rd_load_image()
234 devblocks = nr_blocks(in_file); in rd_load_image()
253 fput(in_file); in rd_load_image()
256 kernel_read(in_file, buf, BLOCK_SIZE, &in_pos); in rd_load_image()
270 fput(in_file); in rd_load_image()
291 long r = kernel_read(in_file, buf, len, &in_pos); in compr_fill()
/kernel/linux/linux-6.6/init/
H A Ddo_mounts_rd.c17 static struct file *in_file, *out_file; variable
202 in_file = filp_open(from, O_RDONLY, 0); in rd_load_image()
203 if (IS_ERR(in_file)) in rd_load_image()
207 nblocks = identify_ramdisk_image(in_file, in_pos, &decompressor); in rd_load_image()
234 devblocks = nr_blocks(in_file); in rd_load_image()
253 fput(in_file); in rd_load_image()
256 kernel_read(in_file, buf, BLOCK_SIZE, &in_pos); in rd_load_image()
270 fput(in_file); in rd_load_image()
291 long r = kernel_read(in_file, buf, len, &in_pos); in compr_fill()
/third_party/skia/third_party/externals/tint/fuzzers/
H A Dgenerate_wgsl_corpus.py52 for in_file in list_wgsl_files(input_dir):
53 if in_file.endswith(".expected.wgsl"):
55 out_file = in_file[len(input_dir) + 1:].replace(os.sep, '_')
56 shutil.copy(in_file, corpus_dir + os.sep + out_file)
H A Dgenerate_spirv_corpus.py65 for in_file in list_spvasm_files(input_dir):
66 if in_file.endswith(".expected.spvasm"):
69 in_file[len(input_dir) + 1:]
74 in_file,
/third_party/skia/third_party/externals/spirv-tools/tools/opt/
H A Dopt.cpp588 spvtools::Optimizer* optimizer, const char** in_file,
596 // |optimizer|, |in_file|, |out_file|, |validator_options|, and
601 spvtools::Optimizer* optimizer, const char** in_file, in ParseOconfigFlag()
628 ParseFlags(static_cast<int>(flags.size()), new_argv, optimizer, in_file, in ParseOconfigFlag()
678 // On return, this function stores the name of the input program in |in_file|.
683 spvtools::Optimizer* optimizer, const char** in_file, in ParseFlags()
707 if (!*in_file) { in ParseFlags()
708 *in_file = cur_arg; in ParseFlags()
716 ParseOconfigFlag(argv[0], cur_arg, optimizer, in_file, out_file, in ParseFlags()
789 if (!*in_file) { in ParseFlags()
600 ParseOconfigFlag(const char* prog_name, const char* opt_flag, spvtools::Optimizer* optimizer, const char** in_file, const char** out_file, spvtools::ValidatorOptions* validator_options, spvtools::OptimizerOptions* optimizer_options) ParseOconfigFlag() argument
682 ParseFlags(int argc, const char** argv, spvtools::Optimizer* optimizer, const char** in_file, const char** out_file, spvtools::ValidatorOptions* validator_options, spvtools::OptimizerOptions* optimizer_options) ParseFlags() argument
809 const char* in_file = nullptr; main() local
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/tools/opt/
H A Dopt.cpp588 spvtools::Optimizer* optimizer, const char** in_file,
596 // |optimizer|, |in_file|, |out_file|, |validator_options|, and
601 spvtools::Optimizer* optimizer, const char** in_file, in ParseOconfigFlag()
628 ParseFlags(static_cast<int>(flags.size()), new_argv, optimizer, in_file, in ParseOconfigFlag()
678 // On return, this function stores the name of the input program in |in_file|.
683 spvtools::Optimizer* optimizer, const char** in_file, in ParseFlags()
707 if (!*in_file) { in ParseFlags()
708 *in_file = cur_arg; in ParseFlags()
716 ParseOconfigFlag(argv[0], cur_arg, optimizer, in_file, out_file, in ParseFlags()
789 if (!*in_file) { in ParseFlags()
600 ParseOconfigFlag(const char* prog_name, const char* opt_flag, spvtools::Optimizer* optimizer, const char** in_file, const char** out_file, spvtools::ValidatorOptions* validator_options, spvtools::OptimizerOptions* optimizer_options) ParseOconfigFlag() argument
682 ParseFlags(int argc, const char** argv, spvtools::Optimizer* optimizer, const char** in_file, const char** out_file, spvtools::ValidatorOptions* validator_options, spvtools::OptimizerOptions* optimizer_options) ParseFlags() argument
809 const char* in_file = nullptr; main() local
[all...]
/third_party/spirv-tools/tools/opt/
H A Dopt.cpp604 spvtools::Optimizer* optimizer, const char** in_file,
612 // |optimizer|, |in_file|, |out_file|, |validator_options|, and
617 spvtools::Optimizer* optimizer, const char** in_file, in ParseOconfigFlag()
644 ParseFlags(static_cast<int>(flags.size()), new_argv, optimizer, in_file, in ParseOconfigFlag()
694 // On return, this function stores the name of the input program in |in_file|.
699 spvtools::Optimizer* optimizer, const char** in_file, in ParseFlags()
723 if (!*in_file) { in ParseFlags()
724 *in_file = cur_arg; in ParseFlags()
732 ParseOconfigFlag(argv[0], cur_arg, optimizer, in_file, out_file, in ParseFlags()
805 if (!*in_file) { in ParseFlags()
616 ParseOconfigFlag(const char* prog_name, const char* opt_flag, spvtools::Optimizer* optimizer, const char** in_file, const char** out_file, spvtools::ValidatorOptions* validator_options, spvtools::OptimizerOptions* optimizer_options) ParseOconfigFlag() argument
698 ParseFlags(int argc, const char** argv, spvtools::Optimizer* optimizer, const char** in_file, const char** out_file, spvtools::ValidatorOptions* validator_options, spvtools::OptimizerOptions* optimizer_options) ParseFlags() argument
825 const char* in_file = nullptr; main() local
[all...]
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/
H A Dgenanchorlinks.py11 def genAnchorLinks(in_file, out_file):
13 with open(in_file, 'r', encoding='utf8') as f: data = f.read()
15 print('Error: File %s does not exist.' % in_file)
/third_party/mesa3d/bin/
H A Dgen_vs_module_defs.py38 def gen_vs_module_def(in_file: str, out_file: str, compiler_id: str, cpu_family: str) -> None:
40 with open(in_file, 'r', encoding='utf-8') as f:
74 python ./bin/gen_vs_module_defs.py --in_file src/gallium/targets/libgl-gdi/opengl32.def.in --out_file src/gallium/targets/libgl-gdi/opengl32.def --compiler_id gcc --cpu_family x86_64
75 python ./bin/gen_vs_module_defs.py --in_file src/gallium/targets/libgl-gdi/opengl32.def.in --out_file src/gallium/targets/libgl-gdi/opengl32.mingw.def --compiler_id gcc --cpu_family x86
77 python ./bin/gen_vs_module_defs.py --in_file src/gallium/targets/osmesa/osmesa.def.in --out_file src/gallium/targets/osmesa/osmesa.def --compiler_id gcc --cpu_family x86_64
78 python ./bin/gen_vs_module_defs.py --in_file src/gallium/targets/osmesa/osmesa.def.in --out_file src/gallium/targets/osmesa/osmesa.mingw.def --compiler_id gcc --cpu_family x86
80 python ./bin/gen_vs_module_defs.py --in_file src/gallium/targets/wgl/gallium_wgl.def.in --out_file src/gallium/targets/wgl/gallium_wgl.def --compiler_id gcc --cpu_family x86_64
81 python ./bin/gen_vs_module_defs.py --in_file src/gallium/targets/wgl/gallium_wgl.def.in --out_file src/gallium/targets/wgl/gallium_wgl.mingw.def --compiler_id gcc --cpu_family x86
83 python ./bin/gen_vs_module_defs.py --in_file src/egl/main/egl.def.in --out_file src/egl/main/egl.def --compiler_id gcc --cpu_family x86_64
84 python ./bin/gen_vs_module_defs.py --in_file sr
[all...]
/third_party/skia/third_party/externals/libwebp/examples/
H A Ddwebp.c78 printf("Usage: dwebp in_file [options] [-o out_file]\n\n" in Help()
182 const char* in_file = NULL; in main() local
291 if (c < argc - 1) in_file = (const char*)GET_WARGV(argv, ++c); in main()
298 in_file = (const char*)GET_WARGV(argv, c); in main()
307 if (in_file == NULL) { in main()
318 if (!LoadWebP(in_file, &data, &data_size, bitstream)) { in main()
389 PrintWebPError(in_file, status); in main()
396 WFPRINTF(stderr, "Decoded %s.", (const W_CHAR*)in_file); in main()
405 WFPRINTF(stderr, "File %s can be decoded ", (const W_CHAR*)in_file); in main()
/third_party/node/tools/gyp/
H A Dsetup.py13 with open(path.join(here, "README.md")) as in_file:
14 long_description = in_file.read()

Completed in 10 milliseconds

12