Home
last modified time | relevance | path

Searched refs:tmpfile1 (Results 1 – 6 of 6) sorted by relevance

/openbsd-src/gnu/usr.bin/perl/t/win32/
H A Dstat.t22 my $tmpfile1 = tempfile();
28 ok(link($0, $tmpfile1), "make a link to test nlink");
78 unlink($tmpfile1); # no more hard link
80 if (open my $fh, ">", "$tmpfile1.bat") {
81 ok(-x "$tmpfile1.bat", 'batch file is "executable"');
88 unlink "$tmpfile1.bat";
94 if (system("mklink $tmpfile1 win32\\stat.t") == 0) {
95 ok(-l $tmpfile1, "lstat sees a symlink");
99 my @lst = stat $tmpfile1;
108 is((lstat($tmpfile1))[7], length(readlink($tmpfile1)),
[all …]
H A Dsymlink.t18 my $tmpfile1 = tempfile();
21 my $ok = symlink($tmpfile1, $tmpfile2);
29 ok(mkdir($tmpfile1), "make a directory");
30 ok(!-l $tmpfile1, "doesn't look like a symlink");
31 ok(symlink($tmpfile1, $tmpfile2), "and symlink to it");
35 is(readlink($tmpfile2), $tmpfile1, "readlink works");
36 check_stat($tmpfile1, $tmpfile2, "check directory and link stat are the same");
69 ok(!unlink($tmpfile1), "we can't unlink the original directory");
71 ok(rmdir($tmpfile1), "we can rmdir it");
73 ok(open(my $fh, ">", $tmpfile1), "make a file");
[all …]
H A Dfs.t18 my $tmpfile1 = tempfile();
22 ok(!link($tmpfile1, $tmpfile2),
25 open my $fh, ">", $tmpfile1
31 ok(!link($tmpfile1, $tmpfile2),
/openbsd-src/gnu/usr.bin/perl/t/run/
H A Dcloexec.t62 my $tmpfile1 = tempfile();
66 make_tmp_file($tmpfile1, $tmpfile1_contents);
105 ok( -f $tmpfile1, "tmpfile '$tmpfile1' exists" );
131 open FHPARENT1, "<$tmpfile1" or die "open '$tmpfile1': $!";
136 close FHPARENT1 or die "close '$tmpfile1': $!";
139 open FHPARENT1, "<$tmpfile1" or die "open '$tmpfile1': $!";
146 close FHPARENT1 or die "close '$tmpfile1': $!";
151 open FHPARENT1, "<$tmpfile1" or die "open '$tmpfile1': $!";
156 close FHPARENT1 or die "close '$tmpfile1': $!";
/openbsd-src/gnu/usr.bin/cvs/src/
H A Dpatch.c39 static char *tmpfile1 = NULL; variable
515 if ((fp1 = cvs_temp_file (&tmpfile1)) == NULL)
517 error (0, errno, "cannot create temporary file %s", tmpfile1);
523 error (0, errno, "warning: cannot close %s", tmpfile1);
546 rev1, options, tmpfile1,
560 (void) utime (tmpfile1, &t);
586 switch (diff_exec (tmpfile1, tmpfile2, NULL, NULL, unidiff ? "-u" : "-c", tmpfile3))
731 if (CVS_UNLINK (tmpfile1) < 0)
732 error (0, errno, "cannot unlink %s", tmpfile1);
737 free (tmpfile1);
[all …]
H A Drcscmds.c389 char *tmpfile1; local
394 tmpfile1 = cvs_temp_name ();
409 status = RCS_checkout (rcsfile, NULL, rev1, NULL, options, tmpfile1,
449 status = diff_execv (tmpfile1, use_file2, label1, label2, opts, RUN_TTY);
458 "cannot diff %s and %s", tmpfile1, use_file2);
467 if (unlink_file (tmpfile1) < 0)
470 error (0, errno, "cannot remove temp file %s", tmpfile1);
474 free (tmpfile1);