Home
last modified time | relevance | path

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

12345678910>>...15

/third_party/python/Lib/test/
Dtest_tempfile.py2 import tempfile
23 has_textmode = (tempfile._text_openflags != tempfile._bin_openflags)
39 self.assertIs(str, tempfile._infer_return_type(''))
40 self.assertIs(bytes, tempfile._infer_return_type(b''))
41 self.assertIs(str, tempfile._infer_return_type(None))
44 self.assertIs(str, tempfile._infer_return_type('', ''))
45 self.assertIs(bytes, tempfile._infer_return_type(b'', b''))
47 tempfile._infer_return_type('', b'')
49 tempfile._infer_return_type(b'', '')
52 self.assertIs(str, tempfile._infer_return_type(None, ''))
[all …]
Dmake_ssl_certs.py7 import tempfile
124 with tempfile.NamedTemporaryFile(delete=False) as f:
141 with tempfile.NamedTemporaryFile(delete=False) as f:
189 with tempfile.NamedTemporaryFile("w") as t:
198 with tempfile.NamedTemporaryFile() as f:
/third_party/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 …]
/third_party/rust/crates/nix/test/sys/
Dtest_ioctl.rs202 use tempfile::tempfile;
209 let file = tempfile().unwrap(); in test_ioctl_none_bad()
217 let file = tempfile().unwrap(); in test_ioctl_read_bad()
226 let file = tempfile().unwrap(); in test_ioctl_write_int_bad()
234 let file = tempfile().unwrap(); in test_ioctl_write_ptr_bad()
246 let file = tempfile().unwrap(); in test_ioctl_none()
264 let file = tempfile().unwrap(); in test_ioctl_write_ptr()
276 let file = tempfile().unwrap(); in test_ioctl_write_int()
285 let file = tempfile().unwrap(); in test_ioctl_read()
295 let file = tempfile().unwrap(); in test_ioctl_readwrite()
[all …]
Dtest_aio.rs22 use tempfile::tempfile;
79 let mut f = tempfile().unwrap(); in error()
95 let mut f = tempfile().unwrap(); in ok()
143 let mut f = tempfile().unwrap(); in cancel()
166 let mut f = tempfile().unwrap(); in error()
186 let mut f = tempfile().unwrap(); in ok()
213 let mut f = tempfile().unwrap(); in on_stack()
272 let mut f = tempfile().unwrap(); in ok()
330 let f = tempfile().unwrap(); in cancel()
359 let mut f = tempfile().unwrap(); in ok()
[all …]
Dtest_aio_drop.rs21 use tempfile::tempfile; in test_drop()
25 let f = tempfile().unwrap(); in test_drop()
/third_party/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()
/third_party/rust/crates/rustix/tests/io/
Dpipe.rs8 let mut src = tempfile::tempfile().unwrap(); in test_splice_cursor()
9 let mut dest = tempfile::tempfile().unwrap(); in test_splice_cursor()
34 let mut src = tempfile::tempfile().unwrap(); in test_splice_offset()
35 let mut dest = tempfile::tempfile().unwrap(); in test_splice_offset()
/third_party/rust/crates/nix/test/
Dtest_fcntl.rs29 use tempfile::{self, NamedTempFile};
63 let old_dir = tempfile::tempdir().unwrap(); in test_renameat()
68 let new_dir = tempfile::tempdir().unwrap(); in test_renameat()
93 let old_dir = tempfile::tempdir().unwrap(); in test_renameat2_behaves_like_renameat_with_no_flags()
98 let new_dir = tempfile::tempdir().unwrap(); in test_renameat2_behaves_like_renameat_with_no_flags()
137 let old_dir = tempfile::tempdir().unwrap(); in test_renameat2_exchange()
145 let new_dir = tempfile::tempdir().unwrap(); in test_renameat2_exchange()
185 let old_dir = tempfile::tempdir().unwrap(); in test_renameat2_noreplace()
190 let new_dir = tempfile::tempdir().unwrap(); in test_renameat2_noreplace()
215 let tempdir = tempfile::tempdir().unwrap(); in test_readlink()
[all …]
Dtest_stat.rs99 let tempdir = tempfile::tempdir().unwrap(); in test_stat_and_fstat()
113 let tempdir = tempfile::tempdir().unwrap(); in test_fstatat()
129 let tempdir = tempfile::tempdir().unwrap(); in test_stat_fstat_lstat()
151 let tempdir = tempfile::tempdir().unwrap(); in test_fchmod()
175 let tempdir = tempfile::tempdir().unwrap(); in test_fchmodat()
226 let tempdir = tempfile::tempdir().unwrap(); in test_utimes()
244 let tempdir = tempfile::tempdir().unwrap(); in test_lutimes()
271 let tempdir = tempfile::tempdir().unwrap(); in test_futimens()
286 let tempdir = tempfile::tempdir().unwrap(); in test_utimensat()
321 let tempdir = tempfile::tempdir().unwrap(); in test_mkdirat_success_path()
[all …]
Dtest_sendfile.rs6 use tempfile::tempfile;
21 let mut tmp = tempfile().unwrap(); in test_sendfile_linux()
43 let mut tmp = tempfile().unwrap(); in test_sendfile64_linux()
72 let mut tmp = tempfile().unwrap(); in test_sendfile_freebsd()
123 let mut tmp = tempfile().unwrap(); in test_sendfile_dragonfly()
172 let mut tmp = tempfile().unwrap(); in test_sendfile_darwin()
Dtest_mount.rs32 let tempdir = tempfile::tempdir().unwrap(); in test_mount_tmpfs_without_flags_allows_rwx()
98 let tempdir = tempfile::tempdir().unwrap(); in test_mount_rdonly_disallows_write()
123 let tempdir = tempfile::tempdir().unwrap(); in test_mount_noexec_disallows_exec()
172 let tempdir = tempfile::tempdir().unwrap(); in test_mount_bind()
176 let mount_point = tempfile::tempdir().unwrap(); in test_mount_bind()
/third_party/skia/third_party/externals/expat/expat/
Dfix-xmltest-log.sh37 tempfile="$(mktemp)"
47 "${filename}" > "${tempfile}"
48 mv "${tempfile}" "${filename}"
Dbuildconf.sh48 local tempfile="$(mktemp)"
49 sed "${first_line_to_delete},${last_line_to_delete}d" "${filename}" > "${tempfile}"
50 mv "${tempfile}" "${filename}"
/third_party/python/Tools/scripts/
Dget-remote-certificate.py12 import tempfile
31 tn = tempfile.mktemp()
35 tn2 = (outfile or tempfile.mktemp())
49 tfile = tempfile.mktemp()
/third_party/node/deps/v8/tools/
Dandroid-run.py45 import tempfile
53 (fd_out, outname) = tempfile.mkstemp()
54 (fd_err, errname) = tempfile.mkstemp()
82 (fd, fname) = tempfile.mkstemp()
/third_party/python/Doc/library/
Dtempfile.rst1 :mod:`tempfile` --- Generate temporary files and directories
4 .. module:: tempfile
9 **Source code:** :source:`Lib/tempfile.py`
45 :ref:`tempfile-examples`). On completion of the context or
65 .. audit-event:: tempfile.mkstemp fullpath tempfile.TemporaryFile
90 .. audit-event:: tempfile.mkstemp fullpath tempfile.NamedTemporaryFile
125 :ref:`tempfile-examples`). On completion of the context or destruction
143 .. audit-event:: tempfile.mkdtemp fullpath tempfile.TemporaryDirectory
194 .. audit-event:: tempfile.mkstemp fullpath tempfile.mkstemp
220 .. audit-event:: tempfile.mkdtemp fullpath tempfile.mkdtemp
[all …]
/third_party/openssl/test/recipes/
D70-test_tlsextms.t97 (undef, my $session) = tempfile();
114 (undef, $session) = tempfile();
131 (undef, $session) = tempfile();
148 (undef, $session) = tempfile();
165 (undef, $session) = tempfile();
/third_party/toybox/toys/other/
Ddos2unix.c31 char *tempfile; in GLOBALS() argument
39 if (fd) outfd = copy_tempfile(fd, name, &TT.tempfile);
65 if (fd) replace_tempfile(-1, outfd, &TT.tempfile);
/third_party/python/Lib/test/test_tools/
Dtest_lll.py4 import tempfile
20 with tempfile.TemporaryDirectory() as dir1, \
21 tempfile.TemporaryDirectory() as dir2:
/third_party/cups-filters/backend/
Dimplicitclass.c93 tempfile[1024], in main() local
293 if ((fd = cupsTempFd(tempfile, sizeof(tempfile))) < 0){ in main()
298 tempfile); in main()
302 filename = tempfile; in main()
306 tempfile[0] = '\0'; in main()
/third_party/rust/crates/rustix/tests/fs/
Dinvalid_offset.rs17 let tmp = tempfile::tempdir().unwrap(); in invalid_offset_seek()
46 let tmp = tempfile::tempdir().unwrap(); in invalid_offset_fallocate()
76 let tmp = tempfile::tempdir().unwrap(); in invalid_offset_fadvise()
108 let tmp = tempfile::tempdir().unwrap(); in invalid_offset_pread()
128 let tmp = tempfile::tempdir().unwrap(); in invalid_offset_pwrite()
148 let tmp = tempfile::tempdir().unwrap(); in invalid_offset_copy_file_range()
/third_party/skia/resources/sksl/
Dupdate_fuzzer.py18 import tempfile
26 with tempfile.NamedTemporaryFile(suffix='primary.zip', delete=False, mode='w') as pathToPrimaryZip:
27 with tempfile.NamedTemporaryFile(suffix='pad.zip', delete=False, mode='w') as pathToPaddedZip:
/third_party/cups-filters/filter/
Dsys5ippprinter.c93 tempfile[1024]; /* Temporary file */ in main() local
172 if ((fd = cupsTempFd(tempfile, sizeof(tempfile))) < 0) in main()
179 tempfile); in main()
186 filename = tempfile; in main()
195 tempfile[0] = '\0'; in main()
469 if (tempfile[0]) in main()
470 unlink(tempfile); in main()
/third_party/python/Doc/includes/
Demail-read-alternative.py3 import tempfile
57 with tempfile.NamedTemporaryFile(suffix=extension, delete=False) as f:
64 with tempfile.NamedTemporaryFile(mode='w', delete=False) as f:

12345678910>>...15