Home
last modified time | relevance | path

Searched refs:tempfile (Results 1 – 25 of 904) sorted by relevance

12345678910>>...37

/external/ltp/testcases/kernel/fs/stream/
Dstream05.c52 char tempfile[40] = ""; variable
73 sprintf(tempfile, "stream05.%d", getpid()); in main()
76 if ((stream = fopen(tempfile, "a+")) == NULL) { in main()
78 tempfile, in main()
84 if ((stream = fopen(tempfile, "r+")) == NULL) { in main()
86 tempfile, in main()
135 if ((stream = fopen(tempfile, "r+")) == NULL) { in main()
137 tempfile, in main()
182 if ((stream = fopen(tempfile, "rb")) == NULL) { in main()
184 tempfile, in main()
[all …]
/external/python/cpython3/Lib/test/
Dtest_tempfile.py2 import tempfile
21 has_textmode = (tempfile._text_openflags != tempfile._bin_openflags)
37 self.assertIs(str, tempfile._infer_return_type(''))
38 self.assertIs(bytes, tempfile._infer_return_type(b''))
39 self.assertIs(str, tempfile._infer_return_type(None))
42 self.assertIs(str, tempfile._infer_return_type('', ''))
43 self.assertIs(bytes, tempfile._infer_return_type(b'', b''))
45 tempfile._infer_return_type('', b'')
47 tempfile._infer_return_type(b'', '')
50 self.assertIs(str, tempfile._infer_return_type(None, ''))
[all …]
/external/python/cpython2/Lib/test/
Dtest_tempfile.py2 import tempfile
26 has_textmode = (tempfile._text_openflags != tempfile._bin_openflags)
73 dict = tempfile.__dict__
103 self.r = tempfile._RandomNameSequence()
181 cand = tempfile._candidate_tempdir_list()
197 cand = tempfile._candidate_tempdir_list()
223 our_temp_directory = tempfile.mkdtemp()
229 with support.swap_attr(tempfile, "_candidate_tempdir_list",
232 tempfile._get_default_tempdir()
241 tempfile._get_default_tempdir()
[all …]
Dmake_ssl_certs.py7 import tempfile
95 with tempfile.NamedTemporaryFile(delete=False) as f:
106 with tempfile.NamedTemporaryFile(delete=False) as f:
144 with tempfile.NamedTemporaryFile("w") as t:
147 with tempfile.NamedTemporaryFile() as f:
/external/parameter-framework/upstream/test/functional-tests-legacy/PfwTestCase/Domains/
DtDomain_creation_deletion.py282 tempfile = open("tempfile", "w")
283 tempfile.write(out)
284 tempfile.close()
287 tempfile = open("tempfile", "r")
289 line=tempfile.readline()
291 line=tempfile.readline()
293 tempfile.close()
295 tempfile = open("tempfile", "r")
299 domain_created = tempfile.readline().strip('\n\r'),
302 domain_created = tempfile.readline()
[all …]
/external/ltp/testcases/kernel/syscalls/open/
Dopen09.c38 static char tempfile[40] = ""; variable
57 fildes = open(tempfile, O_WRONLY); in main()
69 fildes = open(tempfile, O_RDONLY); in main()
94 sprintf(tempfile, "open09.%d", getpid()); in setup()
96 fildes = creat(tempfile, 0600); in setup()
99 tempfile); in setup()
107 unlink(tempfile); in cleanup()
/external/oss-fuzz/infra/cifuzz/
Dcifuzz_test.py21 import tempfile
38 with tempfile.TemporaryDirectory() as tmp_dir:
51 with tempfile.TemporaryDirectory() as tmp_dir:
63 with tempfile.TemporaryDirectory() as tmp_dir:
74 with tempfile.TemporaryDirectory() as tmp_dir:
84 with tempfile.TemporaryDirectory() as tmp_dir:
94 with tempfile.TemporaryDirectory() as tmp_dir:
117 with tempfile.TemporaryDirectory() as tmp_dir:
133 with tempfile.TemporaryDirectory() as tmp_dir:
142 with tempfile.TemporaryDirectory() as tmp_dir:
/external/oss-fuzz/infra/
Drepo_manager_test.py18 import tempfile
34 with tempfile.TemporaryDirectory() as tmp_dir:
43 with tempfile.TemporaryDirectory() as tmp_dir:
58 with tempfile.TemporaryDirectory() as tmp_dir:
66 with tempfile.TemporaryDirectory() as tmp_dir:
83 with tempfile.TemporaryDirectory() as tmp_dir:
99 with tempfile.TemporaryDirectory() as tmp_dir:
117 with tempfile.TemporaryDirectory() as tmp_dir:
125 with tempfile.TemporaryDirectory() as tmp_dir:
/external/tensorflow/tensorflow/lite/schema/
Dupgrade_schema_test.py22 import tempfile
257 non_existent = tempfile.mktemp(suffix=".json")
263 invalid_extension = tempfile.mktemp(suffix=".foo")
266 with tempfile.NamedTemporaryFile(suffix=".json", mode="w+") as in_json:
279 with tempfile.NamedTemporaryFile(suffix=".json", mode="w+") as in_json, \
280 tempfile.NamedTemporaryFile(
282 tempfile.NamedTemporaryFile(
284 tempfile.NamedTemporaryFile(
/external/tensorflow/tensorflow/lite/micro/tools/make/
Ddownload_and_extract.sh95 local tempfile=${tempdir}/temp_file
108 CURL_RESULT=$(curl -Ls --retry 5 "${url}" > ${tempfile} || true)
122 DOWNLOADED_MD5=$(openssl dgst -md5 ${tempfile} | sed 's/.* //g')
129 tar -C "${dir}" --strip-components=1 -xzf ${tempfile}
131 tar -C "${dir}" --strip-components=1 -xf ${tempfile}
134 tar -C "${dir}" --strip-components=1 -xjf ${tempfile}
136 unzip ${tempfile} -d ${tempdir2} 2>&1 1>/dev/null
/external/swiftshader/third_party/llvm-7.0/llvm/utils/release/
Dmerge.sh76 tempfile=`mktemp /tmp/merge.XXXXXX` || exit 1
79 echo "Reverting r$rev:" > $tempfile
81 echo "Merging r$rev:" > $tempfile
83 svn log -c $rev http://llvm.org/svn/llvm-project/$proj/trunk >> $tempfile 2>&1
99 echo svn commit -F $tempfile
/external/llvm/utils/release/
Dmerge.sh76 tempfile=`mktemp /tmp/merge.XXXXXX` || exit 1
79 echo "Reverting r$rev:" > $tempfile
81 echo "Merging r$rev:" > $tempfile
83 svn log -c $rev http://llvm.org/svn/llvm-project/$proj/trunk >> $tempfile 2>&1
99 echo svn commit -F $tempfile
/external/autotest/client/common_lib/
Dtest_unittest.py8 import tempfile
202 self.test.resultsdir = tempfile.mkdtemp()
212 self.test.resultsdir = tempfile.mkdtemp()
225 self.test.resultsdir = tempfile.mkdtemp()
238 self.test.resultsdir = tempfile.mkdtemp()
253 self.test.resultsdir = tempfile.mkdtemp()
266 self.test.resultsdir = tempfile.mkdtemp()
280 self.test.resultsdir = tempfile.mkdtemp()
294 self.test.resultsdir = tempfile.mkdtemp()
306 self.test.resultsdir = tempfile.mkdtemp()
[all …]
/external/toolchain-utils/afdo_tools/bisection/
Dafdo_prof_analysis_e2e_test.py14 import tempfile
89 temp_dir = tempfile.mkdtemp()
99 fd_first, first_result = tempfile.mkstemp(dir=temp_dir)
101 fd_state, state_file = tempfile.mkstemp(dir=temp_dir)
110 fd_second, second_result = tempfile.mkstemp(dir=temp_dir)
128 temp_dir = tempfile.mkdtemp()
131 fd_state, state_file = tempfile.mkstemp(dir=temp_dir)
236 temp_dir = tempfile.mkdtemp()
/external/expat/
Dfix-xmltest-log.sh37 tempfile="$(mktemp)"
47 "${filename}" > "${tempfile}"
48 mv "${tempfile}" "${filename}"
/external/libcups/cups/
Dppd-util.c144 char tempfile[1024] = ""; /* Temporary filename */ in cupsGetPPD3() local
372 fd = cupsTempFd(tempfile, sizeof(tempfile)); in cupsGetPPD3()
410 if (tempfile[0]) in cupsGetPPD3()
411 strlcpy(buffer, tempfile, bufsize); in cupsGetPPD3()
419 else if (tempfile[0]) in cupsGetPPD3()
420 unlink(tempfile); in cupsGetPPD3()
422 else if (tempfile[0]) in cupsGetPPD3()
423 unlink(tempfile); in cupsGetPPD3()
/external/tensorflow/tensorflow/lite/toco/python/
Dtoco_from_protos_test.py20 import tempfile
60 with tempfile.NamedTemporaryFile() as fp_toco, \
61 tempfile.NamedTemporaryFile() as fp_model, \
62 tempfile.NamedTemporaryFile() as fp_input, \
63 tempfile.NamedTemporaryFile() as fp_output:
/external/autotest/site_utils/lxc/
Dlxc_config_unittest.py9 import tempfile
48 'source': tempfile.mkdtemp(dir=tmpdir),
55 'source': tempfile.mkdtemp(dir=tmpdir),
106 self.rootfs = tempfile.mkdtemp()
165 with tempfile.NamedTemporaryFile() as tmp:
/external/autotest/client/cros/
Dtpm_store.py5 import tempfile
51 pem_file = tempfile.NamedTemporaryFile()
54 der_file = tempfile.NamedTemporaryFile()
66 self._directory = tempfile.mkdtemp()
/external/toolchain-utils/deprecated/fdo_scripts/
Ddivide_and_merge_profiles_test.py10 import tempfile
26 self._program_dir = tempfile.mkdtemp()
34 profile_dir = tempfile.mkdtemp()
90 my_output = tempfile.mkdtemp()
103 reference_output = tempfile.mkdtemp()
/external/python/setuptools/setuptools/
Dpy31compat.py17 from tempfile import TemporaryDirectory
20 import tempfile
31 self.name = tempfile.mkdtemp()
/external/fonttools/MetaTools/
DroundTrip.py19 import tempfile
34 xmlFile1 = tempfile.mktemp(".%s.ttx1" % fn)
35 ttFile2 = tempfile.mktemp(".%s" % fn)
36 xmlFile2 = tempfile.mktemp(".%s.ttx2" % fn)
/external/autotest/client/cros/image_comparison/
Dpdiff_image_comparer.py9 import tempfile
39 tmp_golden_img_file = tempfile.NamedTemporaryFile(suffix=ext)
40 tmp_test_img_file = tempfile.NamedTemporaryFile(suffix=ext)
66 tmp_diff_file = tempfile.NamedTemporaryFile(suffix='.png', delete=False)
/external/python/cpython3/Tools/scripts/
Dget-remote-certificate.py12 import tempfile
31 tn = tempfile.mktemp()
35 tn2 = (outfile or tempfile.mktemp())
49 tfile = tempfile.mktemp()
/external/chromium-trace/catapult/devil/devil/android/
Ddevice_blacklist_test.py7 import tempfile
16 with tempfile.NamedTemporaryFile() as blacklist_file:
25 with tempfile.NamedTemporaryFile(delete=False) as blacklist_file:

12345678910>>...37