/titanic_41/usr/src/lib/libshell/common/tests/ |
H A D | sun_solaris_cr_6807179_shellpattern_uses_getpwnam.sh | 61 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 D | sun_solaris_cr_6800929_large_command_substitution_hang.sh | 100 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 D | sun_solaris_command_substitution.sh | 50 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 D | tst.freopen.ksh | 30 $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 D | tst.badfreopen.ksh | 30 $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 D | tst.ftruncate.ksh | 30 $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 D | zpool_add.kshlib | 40 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 D | zpool_add_003_pos.ksh | 55 [[ -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 D | zpool_create_003_pos.ksh | 49 [[ -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 D | nss_write.c | 95 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 D | zpool_iostat_002_pos.ksh | 46 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 D | zfs_list_003_pos.ksh | 47 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 D | tst.manypids.ksh | 46 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 D | i.ipsecalgs | 36 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 D | rootpool_002_neg.ksh | 50 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 D | main.c | 106 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 D | inz_inval.c | 38 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 D | CStyle.py | 55 ret, tmpfile = processcheck('cstyle', options, fh, output) 57 if tmpfile: 58 for line in tmpfile: 62 tmpfile.close()
|
H A D | JStyle.py | 54 ret, tmpfile = processcheck('jstyle', options, fh, output) 56 if tmpfile: 57 for line in tmpfile: 61 tmpfile.close()
|
H A D | ManLint.py | 49 ret, tmpfile = processcheck('mandoc', options, fh, output) 51 if tmpfile: 52 for line in tmpfile: 56 tmpfile.close()
|
H A D | ProcessCheck.py | 49 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 D | ilbadm_import.c | 385 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 D | history_002_pos.ksh | 49 [[ -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 D | i.kmfconf | 37 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 D | i.pkcs11conf | 39 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
|