Home
last modified time | relevance | path

Searched refs:tempfile (Results 1 - 25 of 309) sorted by relevance

12345678910>>...13

/third_party/ltp/testcases/kernel/fs/stream/
H A 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/python/Lib/test/
H A Dtest_tempfile.py0 # tempfile.py unit tests.
2 import tempfile namespace
24 has_textmode = (tempfile._text_openflags != tempfile._bin_openflags)
34 # This is organized as one test for each chunk of code in tempfile.py,
40 self.assertIs(str, tempfile._infer_return_type(''))
41 self.assertIs(bytes, tempfile._infer_return_type(b''))
42 self.assertIs(str, tempfile._infer_return_type(None))
45 self.assertIs(str, tempfile._infer_return_type('', ''))
46 self.assertIs(bytes, tempfile
[all...]
H A Dmake_ssl_certs.py7 import tempfile namespace
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/syscalls/open/
H A 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/nix/test/sys/
H A 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() in test_ioctl_read()
[all...]
H A 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() in cancel()
[all...]
H A Dtest_aio_drop.rs21 use tempfile::tempfile; in test_drop()
25 let f = tempfile().unwrap(); in test_drop()
/third_party/rust/crates/rustix/tests/io/
H A 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/
H A 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 in test_readlink()
[all...]
H A 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()
H A 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 in test_mkdirat_success_path()
[all...]
/third_party/skia/third_party/externals/expat/expat/
H A Dbuildconf.sh48 local tempfile="$(mktemp)"
49 sed "${first_line_to_delete},${last_line_to_delete}d" "${filename}" > "${tempfile}"
50 mv "${tempfile}" "${filename}"
/third_party/toybox/toys/other/
H A Ddos2unix.c31 char *tempfile;
39 if (fd) outfd = copy_tempfile(fd, name, &TT.tempfile); in do_dos2unix()
65 if (fd) replace_tempfile(-1, outfd, &TT.tempfile); in do_dos2unix()
/third_party/python/Lib/test/test_tools/
H A Dtest_lll.py4 import tempfile namespace
20 with tempfile.TemporaryDirectory() as dir1, \
21 tempfile.TemporaryDirectory() as dir2:
/third_party/node/deps/v8/tools/
H A Dandroid-run.py45 import tempfile namespace
53 (fd_out, outname) = tempfile.mkstemp()
54 (fd_err, errname) = tempfile.mkstemp()
82 (fd, fname) = tempfile.mkstemp()
/third_party/mbedtls/scripts/
H A Decp_comb_table.py27 import tempfile namespace
171 binname = tempfile.mktemp(prefix="mbedtls")
172 fd, srcname = tempfile.mkstemp(prefix="mbedtls", suffix=".c")
/third_party/mbedtls/scripts/mbedtls_dev/
H A Dtest_case.py95 tempfile = filename + '.new'
96 with open(tempfile, 'w') as out:
102 os.replace(tempfile, filename)
/third_party/python/Tools/scripts/
H A Dget-remote-certificate.py12 import tempfile namespace
31 tn = tempfile.mktemp()
35 tn2 = (outfile or tempfile.mktemp())
/third_party/python/Doc/includes/
H A Demail-read-alternative.py3 import tempfile namespace
64 with tempfile.NamedTemporaryFile(suffix=extension, delete=False) as f:
71 with tempfile.NamedTemporaryFile(mode='w', delete=False) as f:
/third_party/skia/resources/sksl/
H A Dupdate_fuzzer.py18 import tempfile namespace
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/skia/third_party/externals/harfbuzz/test/subset/
H A Dgenerate-expected-outputs.py11 import tempfile namespace
31 fonttools_path = os.path.join(tempfile.mkdtemp (), font_name)
44 harfbuzz_path = os.path.join(tempfile.mkdtemp (), font_name)
/third_party/python/Lib/test/test_tomllib/
H A Dtest_misc.py10 import tempfile namespace
20 with tempfile.TemporaryDirectory() as tmp_dir_path:
30 with tempfile.TemporaryDirectory() as tmp_dir_path:
/third_party/cups-filters/backend/
H A 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/
H A 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/third_party/externals/spirv-tools/test/tools/
H A Dplaceholder.py25 import tempfile namespace
79 shader, self.filename = tempfile.mkstemp(
107 temp_fd, self.filename = tempfile.mkstemp(
138 shader, asm_filename = tempfile.mkstemp(

Completed in 9 milliseconds

12345678910>>...13