Searched refs:tmpfile2 (Results 1 - 6 of 6) sorted by relevance

/openbsd-current/gnu/usr.bin/perl/t/win32/
H A Dsymlink.t19 my $tmpfile2 = tempfile();
21 my $ok = symlink($tmpfile1, $tmpfile2);
26 ok(-l $tmpfile2, "-l sees it as a symlink");
27 ok(unlink($tmpfile2), "and remove it");
31 ok(symlink($tmpfile1, $tmpfile2), "and symlink to it");
32 ok(-l $tmpfile2, "which does look like a symlink");
34 ok(-d $tmpfile2, "normal -d sees it as a directory");
35 is(readlink($tmpfile2), $tmpfile1, "readlink works");
36 check_stat($tmpfile1, $tmpfile2, "check directory and link stat are the same");
37 ok(unlink($tmpfile2), "an
[all...]
H A Dfs.t19 my $tmpfile2 = tempfile();
22 ok(!link($tmpfile1, $tmpfile2),
28 open my $fh, ">", $tmpfile2
31 ok(!link($tmpfile1, $tmpfile2),
H A Dstat.t23 my $tmpfile2 = tempfile();
272 unlink $tmpfile2;
273 if (system("mklink $tmpfile2 $tmpfile1") == 0) {
274 ok(-l $tmpfile2, "symlink to socket is a symlink (via lstat)");
275 ok(-S $tmpfile2, "symlink to socket is also a socket (via stat)");
276 unlink $tmpfile2;
288 if (system("mklink $tmpfile1 $tmpfile2") == 0
289 && system("mklink $tmpfile2 $tmpfile1") == 0) {
294 unlink $tmpfile2;
299 unlink $tmpfile1, $tmpfile2;
[all...]
/openbsd-current/gnu/usr.bin/perl/t/run/
H A Dcloexec.t63 my $tmpfile2 = tempfile();
65 my $tmpfile2_contents = "tmpfile2 line 1\ntmpfile2 line 2\n";
67 make_tmp_file($tmpfile2, $tmpfile2_contents);
85 ok( -f $tmpfile2, "tmpfile '$tmpfile2' exists" );
121 open FHPARENT2, "<$tmpfile2" or die "open '$tmpfile2': $!";
126 close FHPARENT2 or die "close '$tmpfile2': $!";
140 open FHPARENT2, "<$tmpfile2" or die "open '$tmpfile2'
[all...]
/openbsd-current/gnu/usr.bin/cvs/src/
H A Drcscmds.c390 char *tmpfile2; local
395 tmpfile2 = NULL;
431 tmpfile2 = cvs_temp_name ();
433 tmpfile2, (RCSCHECKOUTPROC)0, NULL);
445 use_file2 = tmpfile2;
475 if (tmpfile2 != NULL)
479 if (unlink_file (tmpfile2) < 0)
482 error (0, errno, "cannot remove temp file %s", tmpfile2);
485 free (tmpfile2);
H A Dpatch.c40 static char *tmpfile2 = NULL; variable
524 if ((fp2 = cvs_temp_file (&tmpfile2)) == NULL)
526 error (0, errno, "cannot create temporary file %s", tmpfile2);
532 error (0, errno, "warning: cannot close %s", tmpfile2);
570 rev2, options, tmpfile2,
583 (void) utime (tmpfile2, &t);
586 switch (diff_exec (tmpfile1, tmpfile2, NULL, NULL, unidiff ? "-u" : "-c", tmpfile3))
733 if (CVS_UNLINK (tmpfile2) < 0)
734 error (0, errno, "cannot unlink %s", tmpfile2);
738 free (tmpfile2);
[all...]

Completed in 77 milliseconds