Home
last modified time | relevance | path

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

12345

/titanic_41/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…
64 rm -f "${tmpfile}"
68 truss -u :: -o "${tmpfile}" ${SHELL} -c '[[ ${hello} == ~(Elr)wo.*ld ]] ; true' || err_exit "truss …
69 [[ "$( < "${tmpfile}")" != *getpwnam* ]] || err_exit "truss log reports the use of getpwnam() for p…
70 rm "${tmpfile}" || err_exit "rm ${tmpfile} failed."
74 truss -u :: -o "${tmpfile}" ${SHELL} -c '[[ ${hello} == ~(Si)wo*ld ]] ; true' || err_exit "truss re…
75 [[ "$( < "${tmpfile}")" != *getpwnam* ]] || err_exit "truss log reports the use of getpwnam() for p…
76 rm "${tmpfile}" || err_exit "rm ${tmpfile} failed."
82 truss -u :: -o "${tmpfile}" ${SHELL} -c '[[ ${hello} == ~root/ ]] ; true' || err_exit "truss return…
[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")" |…
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 ; }\" ; tru…
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}\" ; true ; }\" ; tr…
[all …]
H A Dsun_solaris_command_substitution.sh50 typeset tmpfile
60 tmpfile="$(mktemp -t "ksh93_tests_command_substitution.${PPID}.$$.XXXXXX")" || err_exit "Cannot cre…
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 ; }\" ; tru…
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}\" ; true ; }\" ; tr…
[all …]
/titanic_41/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 $tmpfile.$iter
92 if [ ! -f $tmpfile.$i ]; then
[all …]
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
H A Dtst.ftruncate.ksh30 $dtrace -q -o $tmpfile -s /dev/stdin <<EOF
56 tmpfile=/tmp/tst.ftruncate.$$
61 cat $tmpfile
62 rm $tmpfile
/titanic_41/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_add/
H A Dzpool_add.kshlib40 typeset tmpfile="/tmp/vfstab.tmp"
45 $CAT $vfstab | $GREP "^/dev/dsk" >$tmpfile
51 done <$tmpfile
53 $RM -f $tmpfile
63 typeset tmpfile="/tmp/mnttab.tmp"
68 $CAT $mnttab | $GREP "^/dev/dsk" >$tmpfile
74 done <$tmpfile
76 $RM -f $tmpfile
H A Dzpool_add_003_pos.ksh55 [[ -e $tmpfile ]] && \
56 log_must $RM -f $tmpfile
64 tmpfile="/var/tmp/zpool_add_003.tmp$$"
69 $ZPOOL add -n "$TESTPOOL" ${disk}s${SLICE1} > $tmpfile
74 $CAT $tmpfile | $GREP "$str" >/dev/null 2>&1
/titanic_41/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_create/
H A Dzpool_create_003_pos.ksh49 [[ -e $tmpfile ]] && log_must $RM -f $tmpfile
52 tmpfile="/var/tmp/zpool_create_003.tmp$$"
68 create_pool $TESTPOOL ${disk}s${SLICE0} > $tmpfile
71 $ZPOOL create -n $TESTPOOL ${disk}s${SLICE0} > $tmpfile
77 $CAT $tmpfile | $GREP "$str" >/dev/null 2>&1
/titanic_41/usr/src/lib/print/libprint/common/
H A Dnss_write.c95 char *tmpfile; in _file_put_printer() local
101 if ((tmpfile = malloc(size)) == NULL) in _file_put_printer()
104 if (snprintf(tmpfile, size, "%sXXXXXX", file) >= size) { in _file_put_printer()
117 free(tmpfile); in _file_put_printer()
127 free(tmpfile); in _file_put_printer()
131 if ((fd = mkstemp(tmpfile)) < 0) { in _file_put_printer()
133 free(tmpfile); in _file_put_printer()
180 (void) rename(tmpfile, file); in _file_put_printer()
183 (void) unlink(tmpfile); in _file_put_printer()
188 (void) free(tmpfile); in _file_put_printer()
/titanic_41/usr/src/test/zfs-tests/tests/functional/cli_user/zpool_iostat/
H A Dzpool_iostat_002_pos.ksh46 typeset tmpfile=/var/tmp/zfsiostat.out.$$
51 if [[ -f $tmpfile ]]; then
52 $RM -f $tmpfile
63 $ZPOOL iostat $TESTPOOL 1 4 > $tmpfile 2>&1 &
65 stat_count=$($GREP $TESTPOOL $tmpfile | $WC -l)
/titanic_41/usr/src/test/zfs-tests/tests/functional/cli_user/zfs_list/
H A Dzfs_list_003_pos.ksh47 if [[ -f $tmpfile ]]; then
48 $RM -f $tmpfile
57 tmpfile=/var/tmp/zfslist.out.$$
67 $ZFS list -rH -o name $path > $tmpfile
69 $GREP "^${fs}$" $tmpfile > /dev/null 2>&1
/titanic_41/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
/titanic_41/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
/titanic_41/usr/src/test/zfs-tests/tests/functional/rootpool/
H A Drootpool_002_neg.ksh50 typeset tmpfile="/tmp/mounted-datasets.$$"
56 $MOUNT -p | $AWK '{if ($4 == "zfs") print $1" "$3}' > $tmpfile
63 done < $tmpfile
64 $RM -f $tmpfile
/titanic_41/usr/src/cmd/genmsg/
H A Dmain.c106 char tmpfile[32]; in main() local
299 (void) strlcpy(tmpfile, "/tmp/gensmg.XXXXXX", in main()
300 sizeof (tmpfile)); in main()
302 if ((tmpfd = mkstemp(tmpfile)) == -1) { in main()
304 "cannot create \"%s\""), tmpfile); in main()
312 "cannot create \"%s\""), tmpfile); in main()
317 (void) unlink(tmpfile); in main()
326 (void) unlink(tmpfile); in main()
343 (void) file_copy(tmpfile, newfile); in main()
345 (void) unlink(tmpfile); in main()
/titanic_41/usr/src/test/libc-tests/tests/random/
H A Dinz_inval.c38 char *tmpfile; in main() local
82 tmpfile = strdup(template); in main()
83 assert(tmpfile != NULL); in main()
84 fd = mkstemp(tmpfile); in main()
109 (void) unlink(tmpfile); in main()
110 free(tmpfile); in main()
/titanic_41/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 DManLint.py49 ret, tmpfile = processcheck('mandoc', options, fh, output)
51 if tmpfile:
52 for line in tmpfile:
56 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)
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/
H A Dilbadm_import.c385 char tmpfile[MAXPATHLEN]; in ilbadm_export() local
389 *tmpfile = '\0'; in ilbadm_export()
392 (void) snprintf(tmpfile, sizeof (tmpfile), "%sXXXXXX", fname); in ilbadm_export()
393 fd = mkstemp(tmpfile); in ilbadm_export()
423 if (rename(tmpfile, fname) == -1) { in ilbadm_export()
428 *tmpfile = '\0'; in ilbadm_export()
438 if (*tmpfile != '\0') in ilbadm_export()
439 (void) unlink(tmpfile); in ilbadm_export()
/titanic_41/usr/src/test/zfs-tests/tests/functional/history/
H A Dhistory_002_pos.ksh49 [[ -f $tmpfile ]] && $RM -f $tmpfile
64 tmpfile=/tmp/tmpfile.$$ ; tmpfile2=/tmp/tmpfile2.$$
119 log_must $ZFS send -i $fssnap $fssnap2 > $tmpfile
127 run_and_verify "$ZFS receive $fs < $tmpfile"
/titanic_41/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

12345