/third_party/musl/libc-test/src/functionalext/supplement/temp/ |
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() 56 EXPECT_TRUE("mkostemp_0200", cnt == strlen(tmpfile)); in mkostemp_0200() 59 int len = sprintf(rmfile, "rm %s", tmpfile); in mkostemp_0200() [all …]
|
D | mkostemps.c | 28 char tmpfile[] = "/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[] = "/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() 56 EXPECT_TRUE("mkostemps_0200", cnt == strlen(tmpfile)); in mkostemps_0200() 59 int len = sprintf(rmfile, "rm %s", tmpfile); in mkostemps_0200() [all …]
|
D | mkstemps.c | 26 char tmpfile[] = "/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[] = "/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() 53 EXPECT_TRUE("mkstemps_0200", cnt == strlen(tmpfile)); in mkstemps_0200() 56 int len = sprintf(rmfile, "rm %s", tmpfile); in mkstemps_0200() [all …]
|
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() 54 EXPECT_TRUE("mkstemp_0200", cnt == strlen(tmpfile)); in mkstemp_0200() 57 int len = sprintf(rmfile, "rm %s", tmpfile); in mkstemp_0200()
|
/third_party/node/deps/npm/node_modules/write-file-atomic/lib/ |
D | index.js | 38 function cleanupOnExit (tmpfile) { argument 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, options.chown.uid, options.chown.gid).catch(err => { 135 await promisify(fs.chmod)(tmpfile, options.mode).catch(err => { 142 await promisify(fs.rename)(tmpfile, truename) [all …]
|
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
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()
|
/third_party/skia/third_party/externals/swiftshader/tests/ |
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/testcases/kernel/mce-test/tools/ |
D | mce_shell.sh | 22 tmpfile=$(mktemp) 24 trap "rm $tmpfile" EXIT 26 cat <<"EOF" > $tmpfile 49 /bin/bash --rcfile $tmpfile 50 rm $tmpfile
|
/third_party/ltp/lib/newlib_tests/shell/ |
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/ |
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()
|
/third_party/ltp/testcases/network/stress/multicast/grp-operation/ |
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/kernel/mem/mtest05/ |
D | mmstress.c | 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_addr); in map_and_thread() 445 if (remove_files(tmpfile, map_addr) == FAILED) { in map_and_thread()
|
/third_party/elfutils/tests/ |
D | run-arsymtest.sh | 23 tmpfile=arsymtest.tmp 26 tempfiles $okfile $tmpfile $testfile 36 testrun ${abs_builddir}/arsymtest $lib $tmpfile || exit 1 37 sort $tmpfile > $testfile
|
/third_party/openssl/test/recipes/ |
D | 20-test_mac.t | 139 my $tmpfile = "input-$test_count.bin"; 146 open(my $in, '>', $tmpfile) or die "Could not open file"; 153 my @other = ('-in', $tmpfile, $type); 190 my $tmpfile = "input-$test_count.bin"; 196 open(my $in, '>', $tmpfile) or die "Could not open file"; 202 my @other = ("-binary", "-in", $tmpfile, "-out", $outfile, $type);
|
D | 20-test_dhparam_check.t | 75 my $tmpfile = 'out.txt'; 80 open(my $in, '<', $tmpfile) or die "Could not open file $tmpfile"; 90 …(app([qw{openssl pkeyparam -text -in}, data_file("valid/dh_ffdhe2048.pem")], stdout => $tmpfile)));
|
D | 25-test_x509.t | 111 my $tmpfile = 'out.txt'; 112 my $res = grep(/-text/, @opts) ? run(app([@args], stdout => $tmpfile)) 113 : !run(app([@args], stderr => $tmpfile)); 115 open(my $in, '<', $tmpfile) or die "Could not open file $tmpfile";
|
/third_party/openssl/util/ |
D | withlibctx.pl | 19 my ($tmpfh, $tmpfile) = tempfile(); 22 open(STDOUT, '>>', $tmpfile); 26 rename($tmpfile, $file); 27 unlink($tmpfile);
|
/third_party/node/deps/openssl/openssl/util/ |
D | withlibctx.pl | 19 my ($tmpfh, $tmpfile) = tempfile(); 22 open(STDOUT, '>>', $tmpfile); 26 rename($tmpfile, $file); 27 unlink($tmpfile);
|
/third_party/musl/libc-test/src/functionalext/supplement/fcntl/ |
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()
|
/third_party/ltp/testcases/network/stress/multicast/query-flood/ |
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)"
|
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)"
|
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)"
|
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/node/test/fixtures/watch-mode/ |
D | ipc.js | 6 const tmpfile = path.join(tmpdir.path, 'file'); constant 7 fs.writeFileSync(tmpfile, ''); 11 process.send({ 'watch:import': [url.pathToFileURL(tmpfile).toString()] });
|
/third_party/jerryscript/tools/ |
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_STAT… 47 rm $tmpfile
|