Searched refs:tmpfile (Results 1 - 25 of 115) sorted by relevance

12345

/opensolaris-onvv-gate/usr/src/lib/libast/common/stdio/
H A Dtmpfile.c27 tmpfile(void) function
/opensolaris-onvv-gate/usr/src/lib/libshell/common/tests/
H A Dsun_solaris_cr_6807179_shellpattern_uses_getpwnam.sh61 typeset tmpfile
63 tmpfile="$(mktemp -t "sun_solaris_cr_6807179_shellpattern_uses_getpwnam.${PPID}.$$.XXXXXX")" || err_exit "Cannot create temporary file."
64 rm -f "${tmpfile}"
68 truss -u :: -o "${tmpfile}" ${SHELL} -c '[[ ${hello} == ~(Elr)wo.*ld ]] ; true' || err_exit "truss returned failure=$?"
69 [[ "$( < "${tmpfile}")" != *getpwnam* ]] || err_exit "truss log reports the use of getpwnam() for pattern ~(Elr)wo.*ld"
70 rm "${tmpfile}" || err_exit "rm ${tmpfile} failed."
74 truss -u :: -o "${tmpfile}" ${SHELL} -c '[[ ${hello} == ~(Si)wo*ld ]] ; true' || err_exit "truss returned failure=$?"
75 [[ "$( < "${tmpfile}")" != *getpwnam* ]] || err_exit "truss log reports the use of getpwnam() for pattern ~(Si)wo*ld"
76 rm "${tmpfile}" || err_exi
[all...]
H A Dsun_solaris_cr_6800929_large_command_substitution_hang.sh100 typeset tmpfile
105 tmpfile="$(mktemp -t "sun_solaris_cr_6800929_large_command_substitution_hang.${PPID}.$$.XXXXXX")" || err_exit "Cannot create temporary file."
110 ( name="test1a" cmd="builtin cat ; print -- \"\$(cat \"${tmpfile}\" | cat)\" ; true" )
112 ( name="test1b" cmd="builtin cat ; print -- \"\${ cat \"${tmpfile}\" | cat ; }\" ; true" )
114 ( name="test1c" cmd="builtin cat ; print -- \"\$(cat \"${tmpfile}\" ; true)\" ; true" )
116 ( name="test1d" cmd="builtin cat ; print -- \"\${ cat \"${tmpfile}\" ; true ; }\" ; true" )
119 ( name="test1e" cmd="builtin -d cat /bin/cat ; print -- \"\$(cat \"${tmpfile}\" | cat)\" ; true" )
121 ( name="test1f" cmd="builtin -d cat /bin/cat ; print -- \"\${ cat \"${tmpfile}\" | cat ; }\" ; true" )
123 ( name="test1g" cmd="builtin -d cat /bin/cat ; print -- \"\$(cat \"${tmpfile}\" ; true)\" ; true" )
125 ( name="test1h" cmd="builtin -d cat /bin/cat ; print -- \"\${ cat \"${tmpfile}\" ; tru
[all...]
H A Dsun_solaris_command_substitution.sh50 typeset tmpfile
60 tmpfile="$(mktemp -t "ksh93_tests_command_substitution.${PPID}.$$.XXXXXX")" || err_exit "Cannot create temporary file."
66 ( name="test1a" cmd="builtin cat ; print -- \"\$(cat \"${tmpfile}\" | cat)\" ; true" )
68 ( name="test1b" cmd="builtin cat ; print -- \"\${ cat \"${tmpfile}\" | cat ; }\" ; true" )
70 ( name="test1c" cmd="builtin cat ; print -- \"\$(cat \"${tmpfile}\" ; true)\" ; true" )
72 ( name="test1d" cmd="builtin cat ; print -- \"\${ cat \"${tmpfile}\" ; true ; }\" ; true" )
75 ( name="test1e" cmd="builtin -d cat /bin/cat ; print -- \"\$(cat \"${tmpfile}\" | cat)\" ; true" )
77 ( name="test1f" cmd="builtin -d cat /bin/cat ; print -- \"\${ cat \"${tmpfile}\" | cat ; }\" ; true" )
79 ( name="test1g" cmd="builtin -d cat /bin/cat ; print -- \"\$(cat \"${tmpfile}\" ; true)\" ; true" )
81 ( name="test1h" cmd="builtin -d cat /bin/cat ; print -- \"\${ cat \"${tmpfile}\" ; tru
[all...]
/opensolaris-onvv-gate/usr/src/cmd/dtrace/test/tst/common/funcs/
H A Dtst.freopen.ksh30 $dtrace -wq -o $tmpfile -s /dev/stdin $tmpfile <<EOF
56 if [ -f $tmpfile ]; then
57 rm $tmpfile
61 if [ -f $tmpfile.$i ]; then
62 rm $tmpfile.$i
74 tmpfile=/tmp/tst.freopen.$$
82 if [ -f $tmpfile.$iter ]; then
83 echo "$0: did not expect to find file: $tmpfile.$iter"
88 mv $tmpfile
[all...]
H A Dtst.ftruncate.ksh30 $dtrace -q -o $tmpfile -s /dev/stdin <<EOF
56 tmpfile=/tmp/tst.ftruncate.$$
61 cat $tmpfile
62 rm $tmpfile
H A Dtst.badfreopen.ksh30 $dtrace -wq -o $tmpfile -s /dev/stdin 2> $errfile <<EOF
75 tmpfile=/tmp/tst.badfreopen.$$
82 i=`cat $tmpfile`
85 echo "$0: unexpected contents in $tmpfile: " \
100 rm $tmpfile $errfile
/opensolaris-onvv-gate/usr/src/cmd/cmd-inet/usr.sadm/scripts/
H A Di.ipsecalgs36 tmpfile=/tmp/$$ipsecalgs
49 sed -e "/$pkg_start/,/$pkg_end/d" $dest > $tmpfile \
52 cp $dest $tmpfile || error=yes
56 echo "$pkg_start" >> $tmpfile || error=yes
57 cat $src >> $tmpfile || error=yes
58 echo "$pkg_end" >> $tmpfile || error=yes
63 mv $tmpfile $dest || error=yes
65 rm -f $tmpfile
H A Dr.ipsecalgs36 tmpfile=/tmp/$$ipsecalgs
45 sed -e "/$pkg_start/,/$pkg_end/d" $dest > $tmpfile || error=yes
48 mv $tmpfile $dest || error=yes
50 rm -f $tmpfile
/opensolaris-onvv-gate/usr/src/cmd/dtrace/test/tst/common/pid/
H A Dtst.manypids.ksh46 tmpfile=/tmp/dtest.$$
58 echo "tick-1sec\n{\n\texit(0);\n}\n" > $tmpfile
61 echo "pid${pids[$i]}::malloc:entry\n{}\n" >> $tmpfile
65 $dtrace -s $tmpfile
68 rm $tmpfile
/opensolaris-onvv-gate/usr/src/cmd/cmd-crypto/scripts/
H A Di.kmfconf37 tmpfile=/tmp/$$kmfconf
74 sed -e "/$pkg_start/,/$pkg_end/d" $dest > $tmpfile \
77 cp $dest $tmpfile || error=yes
93 echo "$pkg_start" >> $tmpfile || error=yes
94 cat $src >> $tmpfile || error=yes
95 echo "$pkg_end" >> $tmpfile || error=yes
101 mv $tmpfile $dest || error=yes
103 rm -f $tmpfile
H A Di.pkcs11conf39 tmpfile=/tmp/$$pkcs11conf
76 sed -e "/$pkg_start/,/$pkg_end/d" $dest > $tmpfile \
79 cp $dest $tmpfile || error=yes
95 echo "$pkg_start" >> $tmpfile || error=yes
96 cat $src >> $tmpfile || error=yes
97 echo "$pkg_end" >> $tmpfile || error=yes
103 mv $tmpfile $dest || error=yes
105 rm -f $tmpfile
H A Dr.kcfconf35 tmpfile=/tmp/$$kcfconf
65 sed -e "/$pkg_start/,/$pkg_end/d" $dest > $tmpfile || error=yes
68 mv $tmpfile $dest || error=yes
70 rm -f $tmpfile
H A Dr.kmfconf34 tmpfile=/tmp/$$kmfconf
64 sed -e "/$pkg_start/,/$pkg_end/d" $dest > $tmpfile || error=yes
67 mv $tmpfile $dest || error=yes
69 rm -f $tmpfile
H A Dr.pkcs11conf35 tmpfile=/tmp/$$pkcs11conf
65 sed -e "/$pkg_start/,/$pkg_end/d" $dest > $tmpfile || error=yes
68 mv $tmpfile $dest || error=yes
70 rm -f $tmpfile
H A Di.kcfconf48 tmpfile=/tmp/$$kcfconf
85 sed -e "/$pkg_start/,/$pkg_end/d" $dest > $tmpfile \
88 cp $dest $tmpfile || error=yes
111 echo "$pkg_start `cat $src`" >> $tmpfile \
128 echo "$pkg_start" >> $tmpfile || error=yes
129 cat $src >> $tmpfile || error=yes
132 echo "$pkg_end" >> $tmpfile || error=yes
137 mv $tmpfile $dest || error=yes
139 rm -f $tmpfile
/opensolaris-onvv-gate/usr/src/tools/onbld/Checks/
H A DCStyle.py55 ret, tmpfile = processcheck('cstyle', options, fh, output)
57 if tmpfile:
58 for line in tmpfile:
62 tmpfile.close()
H A DJStyle.py54 ret, tmpfile = processcheck('jstyle', options, fh, output)
56 if tmpfile:
57 for line in tmpfile:
61 tmpfile.close()
H A DProcessCheck.py49 tmpfile = tempfile.TemporaryFile(prefix=command)
56 stdin=subprocess.PIPE, stdout=tmpfile,
68 tmpfile.seek(0)
70 return (ret < 0 and 1 or ret, tmpfile)
/opensolaris-onvv-gate/usr/src/cmd/perl/5.8.4/distrib/lib/
H A DShell.t23 my $tmpfile = 'sht0001';
24 while ( -f $tmpfile ) {
25 $tmpfile++;
27 END { -f $tmpfile && (open STDERR, '>&SAVERR' and unlink $tmpfile) }
31 open(STDERR, ">$tmpfile");
36 ok(($^O eq 'os2' xor !(-s $tmpfile)), '$Shell::capture_stderr');
H A Dstrict.t14 my $tmpfile = "tmp0000";
16 1 while -e ++$tmpfile;
17 END { if ($tmpfile) { 1 while unlink $tmpfile; } }
68 open TEST, ">$tmpfile" or die "Could not open: $!";
72 `.\\perl -I../lib $switch $tmpfile 2>&1` :
74 `perl -I../lib $switch $tmpfile 2>&1` :
76 `$^X -I::lib -MMac::err=unix $switch $tmpfile` :
77 `./perl $switch $tmpfile 2>&1`;
/opensolaris-onvv-gate/usr/src/cmd/perl/5.8.4/distrib/t/op/
H A Danonsub.t21 $tmpfile = "asubtmp000";
22 1 while -f ++$tmpfile;
23 END { if ($tmpfile) { 1 while unlink $tmpfile; } }
31 open TEST, ">$tmpfile";
35 `MCR $^X "-I[-.lib]" $switch $tmpfile 2>&1` :
37 `.\\perl -I../lib $switch $tmpfile 2>&1` :
39 `$^X -I::lib $switch $tmpfile` :
41 `perl -I../lib $switch $tmpfile 2>&1` :
42 `./perl $switch $tmpfile
[all...]
H A Dstat.t41 my $tmpfile = 'Op_stat.tmp';
42 my $tmpfile_link = $tmpfile.'2';
45 1 while unlink $tmpfile;
46 open(FOO, ">$tmpfile") || DIE("Can't open temp test file: $!");
49 open(FOO, ">$tmpfile") || DIE("Can't open temp test file: $!");
79 my $lnk_result = eval { link $tmpfile, $tmpfile_link };
84 ok( chmod(0644, $tmpfile), 'chmoded tmp testfile' );
86 my($nlink, $mtime, $ctime) = (stat($tmpfile))[$NLINK, $MTIME, $CTIME];
127 # truncate and touch $tmpfile.
128 open(F, ">$tmpfile") || DI
[all...]
/opensolaris-onvv-gate/usr/src/cmd/perl/5.8.4/distrib/lib/Pod/t/
H A Dpod2html-lib.pl45 open my $tmpfile, ">", $expectfile or die $!;
46 print $tmpfile $expect;
47 close $tmpfile;
/opensolaris-onvv-gate/usr/src/cmd/dtrace/test/tst/common/pragma/
H A Dtst.libdepfullyconnected.ksh41 tmpfile=/tmp/libdeporder.$$
67 DTRACE_DEBUG=1 $dtrace -L$libdir -e >$tmpfile 2>&1
69 perl /dev/stdin $tmpfile <<EOF
99 rm $tmpfile

Completed in 132 milliseconds

12345