Home
last modified time | relevance | path

Searched refs:tmpfile (Results 1 – 25 of 139) sorted by relevance

123456

/third_party/musl/libc-test/src/functionalext/supplement/temp/
Dmkostemp.c28 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 …]
Dmkostemps.c28 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 …]
Dmkstemps.c26 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 …]
Dmkstemp.c27 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/
Dindex.js38 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/
Dmemfd_create.c27 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/
Dpresubmit.sh56 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/
Dmce_shell.sh22 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/
Dtest_timeout.sh55 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/
Dpdf.c160 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/
Dmcast-lib.sh97 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/
Dmmstress.c276 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/
Drun-arsymtest.sh23 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/
D20-test_mac.t139 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);
D20-test_dhparam_check.t75 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)));
D25-test_x509.t111 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/
Dwithlibctx.pl19 my ($tmpfh, $tmpfile) = tempfile();
22 open(STDOUT, '>>', $tmpfile);
26 rename($tmpfile, $file);
27 unlink($tmpfile);
/third_party/node/deps/openssl/openssl/util/
Dwithlibctx.pl19 my ($tmpfh, $tmpfile) = tempfile();
22 open(STDOUT, '>>', $tmpfile);
26 rename($tmpfile, $file);
27 unlink($tmpfile);
/third_party/musl/libc-test/src/functionalext/supplement/fcntl/
Dposix_fadvise.c28 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/
Dmcast-queryfld04.sh24 local tmpfile=$$
25 EXPECT_PASS $MCAST_LCMD -n $MCASTNUM_NORMAL -p $prefix \> $tmpfile
26 tst_res TINFO "joined $(grep groups $tmpfile)"
Dmcast-queryfld03.sh33 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)"
Dmcast-queryfld05.sh25 local tmpfile=$$
26 EXPECT_PASS $MCAST_LCMD -n $MCASTNUM_NORMAL -p $prefix \> $tmpfile
27 tst_res TINFO "joined $(grep groups $tmpfile)"
Dmcast-queryfld06.sh33 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/
Dipc.js6 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/
Drun-mem-stats-test.sh44 tmpfile=`mktemp`
45 …"$1" --mem-stats $tmpfile 2>&1 | grep -- "Ignoring JERRY_INIT_MEM_STATS flag because of !JMEM_STAT…
47 rm $tmpfile

123456