/third_party/musl/libc-test/src/functionalext/supplement/temp/ |
H A D | mkostemp.c | 28 char tmpfile[] = "/data/mkostemp_0100_XXXXXX"; in mkostemp_0100() local 29 int fd = mkostemp(tmpfile, O_APPEND); in mkostemp_0100() 32 int cnt = write(fd, tmpfile, strlen(tmpfile)); in mkostemp_0100() 33 EXPECT_TRUE("mkostemp_0100", cnt == strlen(tmpfile)); in mkostemp_0100() 36 int len = sprintf(rmfile, "rm %s", tmpfile); in mkostemp_0100() 51 char tmpfile[] = "/data/mkostemp_0200_XXXXXX"; in mkostemp_0200() local 52 int fd = mkostemp(tmpfile, O_CLOEXEC); in mkostemp_0200() 55 int cnt = write(fd, tmpfile, strlen(tmpfile)); in mkostemp_0200() 74 char tmpfile[] = "/data/mkostemp_0300_XXXXXX"; mkostemp_0300() local 97 char tmpfile[] = "/tmp/mkostemp_0400.dat"; mkostemp_0400() local 120 char tmpfile[] = "/tmp/mkostemp_0500.dat"; mkostemp_0500() local 143 char tmpfile[] = "/tmp/mkostemp_0600.dat"; mkostemp_0600() local [all...] |
H A D | mkostemps.c | 28 char tmpfile[] = "/data/local/tmp/mkostemps_0100_XXXXXX.dat"; in mkostemps_0100() local 29 int fd = mkostemps(tmpfile, strlen(".dat"), O_CREAT); in mkostemps_0100() 32 int cnt = write(fd, tmpfile, strlen(tmpfile)); in mkostemps_0100() 33 EXPECT_TRUE("mkostemps_0100", cnt == strlen(tmpfile)); in mkostemps_0100() 36 int len = sprintf(rmfile, "rm %s", tmpfile); in mkostemps_0100() 51 char tmpfile[] = "/data/local/tmp/mkostemps_0200_XXXXXX"; in mkostemps_0200() local 52 int fd = mkostemps(tmpfile, 0, O_CREAT); in mkostemps_0200() 55 int cnt = write(fd, tmpfile, strlen(tmpfile)); in mkostemps_0200() 73 char tmpfile[] = "/data/local/tmp/mkostemps_0300.dat"; mkostemps_0300() local [all...] |
H A D | mkstemps.c | 26 char tmpfile[] = "/data/local/tmp/mkstemps_0100_XXXXXX.dat"; in mkstemps_0100() local 27 int fd = mkstemps(tmpfile, strlen(".dat")); in mkstemps_0100() 30 int cnt = write(fd, tmpfile, strlen(tmpfile)); in mkstemps_0100() 31 EXPECT_TRUE("mkstemps_0100", cnt == strlen(tmpfile)); in mkstemps_0100() 34 int len = sprintf(rmfile, "rm %s", tmpfile); in mkstemps_0100() 48 char tmpfile[] = "/data/local/tmp/mkstemps_0200_XXXXXX"; in mkstemps_0200() local 49 int fd = mkstemps(tmpfile, 0); in mkstemps_0200() 52 int cnt = write(fd, tmpfile, strlen(tmpfile)); in mkstemps_0200() 70 char tmpfile[] = "/data/local/tmp/mkstemps_0300.dat"; mkstemps_0300() local [all...] |
H A D | mkstemp.c | 27 char tmpfile[] = "/data/mkstemp_0100_XXXXXX"; in mkstemp_0100() local 28 int fd = mkstemp(tmpfile); in mkstemp_0100() 31 int cnt = write(fd, tmpfile, strlen(tmpfile)); in mkstemp_0100() 32 EXPECT_TRUE("mkstemp_0100", cnt == strlen(tmpfile)); in mkstemp_0100() 35 int len = sprintf(rmfile, "rm %s", tmpfile); in mkstemp_0100() 49 char tmpfile[] = "/data/mkstemp_0200.dat"; in mkstemp_0200() local 50 int fd = mkstemp(tmpfile); in mkstemp_0200() 53 int cnt = write(fd, tmpfile, strlen(tmpfile)); in mkstemp_0200() [all...] |
/third_party/python/Tools/scripts/ |
H A D | update_file.py | 16 def updating_file_with_tmpfile(filename, tmpfile=None): 26 if not tmpfile: 27 tmpfile = filename + '.tmp' 28 elif os.path.isdir(tmpfile): 29 tmpfile = os.path.join(tmpfile, filename + '.tmp') 43 with open(tmpfile, 'w', newline=newline) as outfile: 46 update_file_with_tmpfile(filename, tmpfile) 49 def update_file_with_tmpfile(filename, tmpfile, *, create=False): 56 os.replace(tmpfile, filenam [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
H A D | memfd_create.c | 27 char tmpfile[] = "/data/memfd_create_0100.txt"; in memfd_create_0100() local 28 int fd = memfd_create(tmpfile, 0); in memfd_create_0100() 31 int cnt = write(fd, tmpfile, strlen(tmpfile)); in memfd_create_0100() 32 EXPECT_TRUE("memfd_create_0100", cnt == strlen(tmpfile)); in memfd_create_0100() 44 char tmpfile[] = "/data/memfd_create_0200.txt"; in memfd_create_0200() local 45 int fd = memfd_create(tmpfile, -1); in memfd_create_0200() 48 int cnt = write(fd, tmpfile, strlen(tmpfile)); in memfd_create_0200() 49 EXPECT_TRUE("memfd_create_0200", cnt == strlen(tmpfile)); in memfd_create_0200() [all...] |
/third_party/node/deps/npm/node_modules/write-file-atomic/lib/ |
H A D | index.js | 38 function cleanupOnExit (tmpfile) { 41 fs.unlinkSync(typeof tmpfile === 'function' ? tmpfile() : tmpfile) 84 let tmpfile 86 const removeOnExitHandler = onExit(cleanupOnExit(() => tmpfile)) 92 tmpfile = getTmpname(truename) 109 fd = await promisify(fs.open)(tmpfile, 'w', options.mode) 111 await options.tmpfileCreated(tmpfile) 127 await promisify(fs.chown)(tmpfile, option [all...] |
/third_party/skia/third_party/externals/swiftshader/tests/ |
H A D | presubmit.sh | 56 tmpfile=`mktemp` 61 done | grep -v "(standard input)" > ${tmpfile} 62 if test -s ${tmpfile}; then 65 cat ${tmpfile} 66 rm ${tmpfile} 70 rm ${tmpfile}
|
/third_party/ltp/lib/newlib_tests/shell/ |
H A D | test_timeout.sh | 55 local tmpfile start end; 57 tmpfile=$(mktemp -t ltp_timeout_XXXXXXXX) 73 LTP_TIMEOUT_MUL=$timeout $test 2>&1 | cat >$tmpfile 75 LTP_TIMEOUT_MUL=$timeout $test 1>$tmpfile 2>&1 82 test_output=$(cat $tmpfile) 83 rm $tmpfile
|
/third_party/cups-filters/filter/foomatic-rip/ |
H A D | pdf.c | 160 char tmpfile[PATH_MAX]; in render_pages_with_generic_command() local 171 if (!pdf_extract_pages(tmpfile, filename, firstpage, lastpage)) in render_pages_with_generic_command() 173 dstrcatf(cmd, " < %s", tmpfile); in render_pages_with_generic_command() 179 unlink(tmpfile); in render_pages_with_generic_command() 301 FILE *tmpfile; in print_pdf() local 310 tmpfile = fdopen(fd, "r+"); in print_pdf() 311 copy_file(tmpfile, stdin, alreadyread, len); in print_pdf() 312 fclose(tmpfile); in print_pdf()
|
H A D | foomaticrip.c | 618 FILE *tmpfile; in print_file() local 626 tmpfile = fdopen(fd, "r+"); in print_file() 627 copy_file(tmpfile, stdin, buf, n); in print_file() 628 fclose(tmpfile); in print_file() 711 FILE *tmpfile; in print_file() local 720 if ((tmpfile = fdopen(fd,"r+")) == 0) { in print_file() 727 copy_file(tmpfile, stdin, buf, n); in print_file() 728 if (fflush(tmpfile) == EOF) in print_file() 730 rewind(tmpfile); in print_file() 732 ret = print_ps(tmpfile, NUL in print_file() [all...] |
/third_party/ltp/testcases/kernel/mem/mtest05/ |
H A D | mmstress.c | 272 /* Input: char *tmpfile - name of temporary file that is created */ 276 int map_and_thread(char *tmpfile, in map_and_thread() argument 298 if (strcmp(tmpfile, "NULL")) { in map_and_thread() 300 open(tmpfile, O_RDWR | O_CREAT, in map_and_thread() 312 remove_files(tmpfile, NULL); in map_and_thread() 331 remove_files(tmpfile, NULL); in map_and_thread() 351 remove_files(tmpfile, NULL); in map_and_thread() 395 remove_files(tmpfile, map_addr); in map_and_thread() 419 remove_files(tmpfile, map_addr); in map_and_thread() 428 remove_files(tmpfile, map_add in map_and_thread() [all...] |
/third_party/ltp/testcases/network/stress/multicast/grp-operation/ |
H A D | mcast-lib.sh | 97 local param_multi_socket ret tmpfile 103 tmpfile=$$ 104 EXPECT_PASS $MCAST_LCMD $param_multi_socket -n $num -p $mprefix \> $tmpfile 105 tst_res TINFO "joined $(grep groups $tmpfile)" 156 local tmpfile=$$ 157 EXPECT_PASS $MCAST_LCMD -n 1 -p $prefix \> $tmpfile 158 tst_res TINFO "joined $(grep groups $tmpfile)"
|
/third_party/ltp/testcases/network/stress/multicast/query-flood/ |
H A D | mcast-queryfld04.sh | 24 local tmpfile=$$ 25 EXPECT_PASS $MCAST_LCMD -n $MCASTNUM_NORMAL -p $prefix \> $tmpfile 26 tst_res TINFO "joined $(grep groups $tmpfile)"
|
H A D | mcast-queryfld03.sh | 33 local tmpfile=$$ 34 EXPECT_PASS $MCAST_LCMD -n 1 -p $prefix -s $src_addr -F $FILTER_MODE \> $tmpfile 35 tst_res TINFO "joined $(grep groups $tmpfile)"
|
H A D | mcast-queryfld05.sh | 25 local tmpfile=$$ 26 EXPECT_PASS $MCAST_LCMD -n $MCASTNUM_NORMAL -p $prefix \> $tmpfile 27 tst_res TINFO "joined $(grep groups $tmpfile)"
|
H A D | mcast-queryfld06.sh | 33 local tmpfile=$$ 34 EXPECT_PASS $MCAST_LCMD -n $MCASTNUM_NORMAL -p $prefix -s $src_addr -F $FILTER_MODE \> $tmpfile 35 tst_res TINFO "joined $(grep groups $tmpfile)"
|
/third_party/musl/libc-test/src/functionalext/supplement/fcntl/ |
H A D | posix_fadvise.c | 28 FILE *fp = tmpfile(); in posix_fadvise_0100() 63 FILE *fp = tmpfile(); in posix_fadvise_0200() 88 FILE *fp = tmpfile(); in posix_fadvise_0300() 124 FILE *fp = tmpfile(); in posix_fadvise_0500()
|
H A D | posix_fallocate.c | 30 FILE *fp = tmpfile(); in posix_fallocate_0100() 58 FILE *fp = tmpfile(); in posix_fallocate_0200() 83 FILE *fp = tmpfile(); in posix_fallocate_0300()
|
/third_party/node/deps/openssl/openssl/util/ |
H A D | withlibctx.pl | 19 my ($tmpfh, $tmpfile) = tempfile(); 22 open(STDOUT, '>>', $tmpfile); 26 rename($tmpfile, $file); 27 unlink($tmpfile);
|
/third_party/openssl/util/ |
H A D | withlibctx.pl | 19 my ($tmpfh, $tmpfile) = tempfile(); 22 open(STDOUT, '>>', $tmpfile); 26 rename($tmpfile, $file); 27 unlink($tmpfile);
|
/third_party/jerryscript/tools/ |
H A D | run-mem-stats-test.sh | 44 tmpfile=`mktemp` 45 "$1" --mem-stats $tmpfile 2>&1 | grep -- "Ignoring JERRY_INIT_MEM_STATS flag because of !JMEM_STATS configuration." 2>&1 > /dev/null 47 rm $tmpfile
|
/third_party/python/ |
H A D | setup.py | 690 tmpfile = os.path.join(self.build_temp, 'multiarch') 694 '%s -print-multiarch > %s 2> /dev/null' % (CC, tmpfile)) 698 with open(tmpfile) as fp: 701 os.unlink(tmpfile) 715 tmpfile = os.path.join(self.build_temp, 'multiarch') 720 (opt, tmpfile)) 723 with open(tmpfile) as fp: 730 os.unlink(tmpfile) 756 tmpfile = os.path.join(self.build_temp, 'wrccpaths') 759 ret = run_command('%s --print-search-dirs >%s' % (CC, tmpfile)) [all...] |
/third_party/libinput/tools/ |
H A D | razer-quirks-lister.py | 52 tmpfile = Path(tmpdir) / "30-vendor-razer.quirks" variable 59 with open(tmpfile, "w") as output: 83 shutil.copy(tmpfile, quirksfile)
|
/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
H A D | pread.c | 32 FILE *fp = tmpfile(); in pread_0100() 57 FILE *fp = tmpfile(); in pread_0200() 81 FILE *fp = tmpfile(); in pread_0300()
|