Searched refs:tempfile (Results 1 - 25 of 27) sorted by relevance

12

/opensolaris-onvv-gate/usr/src/cmd/perl/5.8.4/distrib/lib/File/Temp/t/
H A Dtempfile.t2 # Test for File::Temp - tempfile function
35 use File::Temp qw/ tempfile tempdir/;
42 # Open tempfile in some directory, unlink at end
43 my ($fh, $tempfile) = tempfile(
48 ok( (-f $tempfile) );
51 ok( (-f $tempfile) );
53 push(@files, $tempfile);
70 ($fh, $tempfile) = tempfile(
[all...]
H A Dsecurity.t20 use File::Temp qw/ tempfile unlink0 /;
81 # of tests -- we dont use skip since the tempfile() commands will
94 # Create the tempfile
96 my ($fh1, $fname1) = eval { tempfile ( $template,
123 my ($fh2, $fname2) = eval { tempfile ($template, UNLINK => 1 ); };
/opensolaris-onvv-gate/usr/src/cmd/dtrace/test/tst/common/dtraceUtil/
H A Dtst.AddSearchPath.d.ksh69 tempfile=/tmp/test.h
70 echo "#define VALUE 1520" > $tempfile
81 /usr/bin/rm -f $tempfile
/opensolaris-onvv-gate/usr/src/lib/libnsl/dial/
H A Dulockf.c56 static char *tempfile; local
59 tempfile = malloc(MAXNAMESIZE);
60 if (tempfile == NULL)
63 (void) snprintf(tempfile, MAXNAMESIZE, "%s/LTMP.%ld", X_LOCKDIR,
67 if (onelock(pid, tempfile, name) == -1) {
68 (void) unlink(tempfile);
72 if (onelock(pid, tempfile, name)) {
73 (void) unlink(tempfile);
189 * tempfile - name of a temporary in the same file system
196 onelock(char *pid, char *tempfile, cha argument
[all...]
/opensolaris-onvv-gate/usr/src/cmd/refer/
H A Dsortbib.c25 char tempfile[32]; /* temporary file for sorting keys */ variable
75 strcpy(tempfile, "/tmp/SbibXXXXXX"); /* tempfile for sorting keys */
76 if ((tmpfd = mkstemp(tempfile)) == -1)
77 error(tempfile);
82 if ((tfp = fopen(tempfile, "w")) == NULL) {
83 (void) unlink(tempfile);
84 error(tempfile);
90 (void) unlink(tempfile);
127 (void) unlink(tempfile);
[all...]
/opensolaris-onvv-gate/usr/src/cmd/tip/
H A Duucplock.c85 static char tempfile[NAMESIZE]; local
90 (void) snprintf(tempfile, sizeof (tempfile),
93 if (onelock(pid, tempfile, file) == -1) {
95 (void) unlink(tempfile);
99 if (onelock(pid, tempfile, file)) {
100 (void) unlink(tempfile);
199 onelock(char *pid, char *tempfile, char *name) argument
204 fd = creat(tempfile, 0444);
220 (void) unlink(tempfile);
[all...]
/opensolaris-onvv-gate/usr/src/cmd/bnu/
H A Dulockf.c67 static char tempfile[MAXNAMESIZE]; local
75 (void) sprintf(tempfile, "%s/LTMP.%ld", X_LOCKDIR, (long) getpid());
85 if (onelock(pid, tempfile, name) == -1) {
86 (void) unlink(tempfile);
90 if (onelock(pid, tempfile, name)) {
91 (void) unlink(tempfile);
290 * tempfile - name of a temporary in the same file system
297 onelock(pid,tempfile,name)
299 char *tempfile, *name;
304 fd=creat(tempfile, (mode_
[all...]
/opensolaris-onvv-gate/usr/src/cmd/ttymon/
H A Dulockf.c66 static char tempfile[MAXNAMESIZE]; local
74 (void) sprintf(tempfile, "%s/LTMP.%ld", X_LOCKDIR, (long) getpid());
84 if (onelock(pid, tempfile, name) == -1) {
85 (void) unlink(tempfile);
89 if (onelock(pid, tempfile, name)) {
90 (void) unlink(tempfile);
289 * tempfile - name of a temporary in the same file system
296 onelock(pid,tempfile,name)
298 char *tempfile, *name;
303 fd=creat(tempfile, (mode_
[all...]
/opensolaris-onvv-gate/usr/src/tools/onbld/Checks/
H A DProcessCheck.py34 import tempfile
45 # We use a tempfile for output, rather than a pipe, so we
49 tmpfile = tempfile.TemporaryFile(prefix=command)
/opensolaris-onvv-gate/usr/src/lib/libmail/common/
H A Dmaillock.c128 lock1(char tempfile[], char name[]) argument
133 fd = open(tempfile, O_RDWR|O_CREAT|O_EXCL, 0600);
147 if (link(tempfile, name) < 0) {
148 (void) remove(tempfile);
151 (void) remove(tempfile);
/opensolaris-onvv-gate/usr/src/cmd/filebench/scripts/
H A Dfs_flush.pl87 my $tempfile = "/tmp/zpool.cache$$";
90 if (run_prog("cp /etc/zfs/zpool.cache $tempfile") == 0) {
91 $cachefile = "-c $tempfile "
100 system("rm -f $tempfile") if ($cachefile ne "");
/opensolaris-onvv-gate/usr/src/cmd/bdiff/
H A Dbdiff.c69 static char tempfile[32]; variable
332 temptr = maket(tempfile);
350 if ((temptr = fopen(tempfile, "r")) == NULL) {
352 "Can not open tempfile ('%s')", tempfile); fatal(Error);
360 (void) unlink(tempfile);
434 (void) unlink(tempfile);
/opensolaris-onvv-gate/usr/src/cmd/diff/
H A Ddiff.h183 char tempfile[2][16]; /* used when comparing against std input */ variable
H A Ddiff.c1938 (void) strcpy(tempfile[whichtemp++], template);
1947 return (tempfile[whichtemp-1]);
2023 if (whichtemp) (void) unlink(tempfile[0]);
2024 if (whichtemp == 2) (void) unlink(tempfile[1]);
/opensolaris-onvv-gate/usr/src/cmd/sgs/m4/common/
H A Dm4ext.c102 char *tempfile; /* used for diversion files */ variable
H A Dm4.c81 tempfile = mktemp(tmp_name);
82 (void) close(creat(tempfile, 0));
658 tempfile[7] = 'a';
659 (void) unlink(tempfile);
700 tempfile[7] = 'a'+i;
703 fp = xfopen(tempfile, "r");
716 (void) unlink(tempfile);
H A Dm4.h120 extern char *tempfile;
H A Dm4macs.c138 tempfile[7] = 'a'+f;
139 if (ofile[f] || (ofile[f] = xfopen(tempfile, "w"))) {
/opensolaris-onvv-gate/usr/src/cmd/perl/5.8.4/distrib/lib/File/
H A DTemp.pm44 use File::Temp qw/ tempfile tempdir /;
47 ($fh, $filename) = tempfile( DIR => $dir );
49 ($fh, $filename) = tempfile( $template, DIR => $dir);
50 ($fh, $filename) = tempfile( $template, SUFFIX => '.dat');
52 $fh = tempfile();
97 interface. The File::Temp constructor or the tempfile() function can
155 tempfile
226 # in most cases but not if tempfile is called with UNLINK=>0 and
263 # "mkdir"=> if true, we are creating a temp directory rather than tempfile
365 # or a tempfile
1112 sub tempfile { subroutine
[all...]
/opensolaris-onvv-gate/usr/src/cmd/perl/5.8.4/distrib/lib/Pod/Perldoc/
H A DToRtf.pm21 my($self, $tempfile, $perldoc) = @_;
26 $perldoc->aside( "About to launch <\"$rtf_pager\" \"$tempfile\">\n" );
28 return 1 if system( qq{"$rtf_pager"}, qq{"$tempfile"} ) == 0;
/opensolaris-onvv-gate/usr/src/cmd/perl/5.8.4/distrib/utils/
H A Dperlcc.PL54 use File::Temp qw(tempfile);
285 # Don't need to keep it, be safe with a tempfile.
287 ($cfh, $cfile) = tempfile("pccXXXXX", SUFFIX => ".c");
492 (undef, $errname) = tempfile("pccXXXXX");
H A Dperlbug.PL967 my ($fh, $filename) = File::Temp::tempfile(UNLINK => 1);
/opensolaris-onvv-gate/usr/src/grub/grub-0.97/util/
H A Dgrub-install.in45 # look for secure tempfile creation wrappers on this platform
46 if test -x /bin/tempfile; then
47 mklog="/bin/tempfile --prefix=grub"
48 mkimg="/bin/tempfile --prefix=grub"
/opensolaris-onvv-gate/usr/src/cmd/perl/5.8.4/distrib/lib/Pod/
H A DPerldoc.pm1116 die "Can't make a tempfile!?";
1474 return File::Temp::tempfile(UNLINK => 1);
/opensolaris-onvv-gate/usr/src/tools/scripts/
H A Dwsdiff.py73 import re, resource, select, shutil, signal, string, struct, sys, tempfile

Completed in 364 milliseconds

12