Home
last modified time | relevance | path

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

12345

/openbsd/gnu/usr.bin/perl/t/op/
H A Dstat.t64 my $tmpfile = tempfile();
67 chmod 0666, $tmpfile;
68 unlink_all $tmpfile;
249 ok(-o $tmpfile, '-o');
251 ok(-e $tmpfile, '-e');
452 $_ = $tmpfile;
554 chmod 0077, $tmpfile;
568 lstat($tmpfile);
573 unlink $tmpfile;
592 unlink $tmpfile;
[all …]
H A Dwhile.t11 my $tmpfile = tempfile();
12 open (tmp,'>', $tmpfile) || die "Can't create Cmd_while.tmp.";
22 open(fh, $tmpfile) || die "Can't open Cmd_while.tmp.";
31 open(fh, $tmpfile) || die "Can't open Cmd_while.tmp.";
41 open(fh,$tmpfile) || die "Can't open Cmd_while.tmp.";
57 open(fh,$tmpfile) || die "Can't open Cmd_while.tmp.";
70 open(fh,$tmpfile) || die "Can't open Cmd_while.tmp.";
84 open(fh,$tmpfile) || die "Can't open Cmd_while.tmp.";
H A Dread.t34 my $tmpfile = tempfile();
58 open FH, ">$tmpfile" or die "Can't open $tmpfile: $!";
82 open FH, $tmpfile or die "Can't open $tmpfile: $!";
/openbsd/gnu/llvm/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_libc_test.cpp117 char tmpfile[128]; in TEST() local
118 temp_file_name(tmpfile, sizeof(tmpfile), "sanitizer_common.fileops.tmp."); in TEST()
174 Unlink(tmpfile); in TEST()
316 char tmpfile[128]; in TEST() local
317 temp_file_name(tmpfile, sizeof(tmpfile), in TEST()
347 char tmpfile[128]; in TEST() local
348 temp_file_name(tmpfile, sizeof(tmpfile), in TEST()
352 EXPECT_EQ(internal_strncmp(tmpfile, path, strlen(tmpfile)), 0); in TEST()
355 Unlink(tmpfile); in TEST()
359 char tmpfile[128]; in TEST() local
[all …]
/openbsd/gnu/usr.bin/gcc/contrib/
H A Dwarn_summary137 tmpfile=/tmp/tmp-warn.$$
140 trap "rm -f $tmpfile" 0
141 trap "rm -f $tmpfile ; exit 1" 1 2 3 5 9 13 15
177 stageNfilter < $file | subdirectoryFilter > $tmpfile
182 warningFilter < $tmpfile
184 cat $tmpfile
198 count=`warningFilter < $tmpfile | wc -l`
203 warningFilter < $tmpfile | srcdirFilter | $AWK -F: '{print$1}' | sort | \
208 warningFilter < $tmpfile | keywordFilter | sort | uniq -c | sort -nr
/openbsd/gnu/usr.bin/perl/t/io/
H A Dfs.t310 my $tmpfile = tempfile();
320 eval { truncate $tmpfile, 5; };
324 is(-s $tmpfile, 5, "truncation to five bytes");
326 truncate $tmpfile, 0;
328 ok(-z $tmpfile, "truncation to zero bytes");
332 open(FH, ">$tmpfile") or die "Can't create $tmpfile";
337 open(FH, ">>$tmpfile") or die "Can't open $tmpfile for appending";
351 close (FH); open (FH, ">>$tmpfile") or die "Can't reopen $tmpfile";
359 close (FH); open (FH, ">>$tmpfile") or die "Can't reopen $tmpfile";
366 open(FH, ">>$tmpfile") or die "Can't open $tmpfile for appending";
[all …]
H A Dread.t15 my $tmpfile = tempfile();
17 open(A,"+>$tmpfile");
/openbsd/gnu/usr.bin/perl/cpan/Test-Simple/t/Legacy/Builder/
H A Doutput.t26 my $tmpfile = 'foo.tmp';
27 END { 1 while unlink($tmpfile) }
31 my $out = $tb->output($tmpfile);
38 open(IN, $tmpfile) or die $!;
48 open(FOO, ">>$tmpfile") or die $!;
55 open(IN, $tmpfile) or die $!;
/openbsd/gnu/usr.bin/cvs/contrib/
H A Drcs2sccs.sh14 tmpfile=/tmp/rcs2sccs_$$_tmp
15 rm -f $tmpfile
40 sed -e 's/;/\\$/g' $sedfile > $tmpfile
41 cp $tmpfile $sedfile
74 sed -f $sedfile $file > $tmpfile
81 cp $tmpfile $file
118 sed -e "s;^d D $rev ../../.. ..:..:.. [^ ][^ ]*;d D $rev $date $author;" SCCS/s.$file > $tmpfile
120 cp $tmpfile SCCS/s.$file
136 rm -f $tmpfile $emptyfile $initialfile $sedfile $commentfile
H A Dsccs2rcs.in84 rm -f $tmpfile
232 ed $tmpfile >>& $logfile <<EOF
238 ci -f -r$rev -d"$date" -w$author $file < $tmpfile >>& $logfile
254 rm -f $tmpfile $emptyfile $initialfile $sedfile
279 rm -f $tmpfile $emptyfile $initialfile $sedfile $revfile
/openbsd/gnu/usr.bin/perl/cpan/HTTP-Tiny/t/
H A D170_keepalive.t69 set_socket_source( tmpfile(), tmpfile($response) );
80 set_socket_source( tmpfile(), tmpfile($response) );
92 set_socket_source( tmpfile(), tmpfile($response) );
H A D030_response.t23 my $fh = tmpfile($response);
31 my $fh = tmpfile($response);
40 my $fh = tmpfile($response);
49 my $fh = tmpfile($response);
59 my $fh = tmpfile($response);
69 my $fh = tmpfile($response);
H A D020_headers.t19 my $fh = tmpfile($header);
28 my $fh = tmpfile($header);
37 my $fh = tmpfile($header);
45 my $fh = tmpfile();
54 my $fh = tmpfile();
H A D002_croakage.t34 my $res_fh = tmpfile();
35 my $req_fh = tmpfile();
/openbsd/gnu/usr.bin/perl/ext/B/t/
H A Doptree_misc.t114 my $tmpfile = tempfile();
115 open my $fh, '>', $tmpfile or die "Cannot open $tmpfile: $!";
121 progfile => $tmpfile,
416 unlink $tmpfile;
/openbsd/gnu/share/
H A Dconfigure672 trap "rm -f Makefile.tem ${tmpfile}.com ${tmpfile}.tgt ${tmpfile}.hst ${tmpfile}.pos; exit 1" 0 1 2…
676 sed -e '/^# per\-host:/,$d' ${srcdir}/configure.in > ${tmpfile}.com
680 sed -e '1,/^# post\-target:/d' ${srcdir}/configure.in > ${tmpfile}.pos
682 sed -e '1,/^# per\-target:/d' ${srcdir}/configure.in > ${tmpfile}.tgt
683 echo >${tmpfile}.pos
693 . ${tmpfile}.com
699 rm -f Makefile* ${tmpfile}.com ${tmpfile}.tgt ${tmpfile}.hst ${tmpfile}.pos
750 . ${tmpfile}.hst
763 . ${tmpfile}.tgt
1472 . ${tmpfile}.pos
[all …]
/openbsd/gnu/usr.bin/perl/dist/ExtUtils-ParseXS/t/
H A D512-t-file.t34 my $tmpfile = File::Spec->catfile($tmpdir, 'simple.typemap');
36 $map->write(file => $tmpfile);
37 is($map->as_string(), slurp($tmpfile), "Simple typemap write matches as_string");
39 is(ExtUtils::Typemaps->new(file => $tmpfile)->as_string(), $cmp_typemap_str, "Simple typemap roundt…
/openbsd/gnu/usr.bin/perl/t/re/
H A Drecompile.t32 my $tmpfile = tempfile();
41 open my $tf, ">$tmpfile" or die "Cannot open $tmpfile: $!";
52 close $tf or die "Cannot close $tmpfile: $!";
55 progfile => $tmpfile,
/openbsd/gnu/usr.bin/perl/cpan/autodie/t/
H A Dtruncate.t10 my ($truncate_status, $tmpfh, $tmpfile);
14 ($tmpfh, $tmpfile) = tempfile(UNLINK => 1);
84 open(TRUNCATE_FH, '+<', $tmpfile);
/openbsd/gnu/usr.bin/perl/cpan/File-Temp/t/
H A Dmktemp.t106 my $tmpfile = mktemp($template);
108 print "# MKTEMP: Tempfile is $template -> $tmpfile\n";
113 ok( ($tmpfile !~ /XXXXX$/) );
/openbsd/regress/bin/ksh/
H A Dheredoc.t145 name: heredoc-tmpfile-1
170 name: heredoc-tmpfile-2
193 name: heredoc-tmpfile-3
224 name: heredoc-tmpfile-4
242 name: heredoc-tmpfile-5
267 name: heredoc-tmpfile-6
285 name: heredoc-tmpfile-7
303 name: heredoc-tmpfile-8
/openbsd/gnu/usr.bin/perl/t/run/
H A DswitchC.t18 my $tmpfile = tempfile();
51 prog => "open(F, q(>$tmpfile)); print F chr(256); close F",
56 prog => "open(F, q(<$tmpfile)); print ord(<F>); close F",
61 print S "open(F, q(<$tmpfile)); print ord(<F>); close F";
/openbsd/gnu/usr.bin/perl/cpan/OpenBSD-Unveil/t/
H A DOpenBSD-Unveil.t85 my $tmpfile = File::Temp->new("OpenBSD-Unveil-XXXXXXXXX", TMPDIR => 1);
86 $tmpfile->printflush("This is a test\n");
88 ok OpenBSD::Unveil::_unveil("$tmpfile", 'r'),
106 ok -w $tmpfile, "Stat says we can write to tempfile";
117 ok open(my $rfh, '<', $tmpfile), "Opened tempfile for reading";
123 ok !open(my $wfh, '>', $tmpfile),
/openbsd/lib/libc/stdio/
H A Dtmpfile.c43 tmpfile(void) in tmpfile() function
70 DEF_STRONG(tmpfile);
/openbsd/gnu/llvm/clang/utils/
H A Dcreduce-clang-crash.py225 with tempfile.NamedTemporaryFile() as tmpfile:
226 cmd_preprocess = self.get_crash_cmd() + ['-E', '-o', tmpfile.name]
230 if self.check_expected_output(filename=tmpfile.name):
232 shutil.copy(tmpfile.name, self.file_to_reduce)
235 if self.check_expected_output(filename=tmpfile.name):
237 shutil.copy(tmpfile.name, self.file_to_reduce)

12345