/third_party/ltp/testcases/kernel/fs/stream/ |
H A D | stream05.c | 52 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 D | test_tempfile.py | 0 # 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 D | make_ssl_certs.py | 7 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 D | open09.c | 38 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 D | test_ioctl.rs | 202 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 D | test_aio.rs | 22 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 D | test_aio_drop.rs | 21 use tempfile::tempfile; in test_drop() 25 let f = tempfile().unwrap(); in test_drop()
|
/third_party/rust/crates/rustix/tests/io/ |
H A D | pipe.rs | 8 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 D | test_fcntl.rs | 29 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 D | test_sendfile.rs | 6 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 D | test_stat.rs | 99 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 D | buildconf.sh | 48 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 D | dos2unix.c | 31 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 D | test_lll.py | 4 import tempfile namespace 20 with tempfile.TemporaryDirectory() as dir1, \ 21 tempfile.TemporaryDirectory() as dir2:
|
/third_party/node/deps/v8/tools/ |
H A D | android-run.py | 45 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 D | ecp_comb_table.py | 27 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 D | test_case.py | 95 tempfile = filename + '.new' 96 with open(tempfile, 'w') as out: 102 os.replace(tempfile, filename)
|
/third_party/python/Tools/scripts/ |
H A D | get-remote-certificate.py | 12 import tempfile namespace 31 tn = tempfile.mktemp() 35 tn2 = (outfile or tempfile.mktemp())
|
/third_party/python/Doc/includes/ |
H A D | email-read-alternative.py | 3 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 D | update_fuzzer.py | 18 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 D | generate-expected-outputs.py | 11 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 D | test_misc.py | 10 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 D | implicitclass.c | 93 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 D | invalid_offset.rs | 17 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 D | placeholder.py | 25 import tempfile namespace 79 shader, self.filename = tempfile.mkstemp( 107 temp_fd, self.filename = tempfile.mkstemp( 138 shader, asm_filename = tempfile.mkstemp(
|