/illumos-gate/usr/src/cmd/ast/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 …]
|
/illumos-gate/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
|
/illumos-gate/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
|
/illumos-gate/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
|
/illumos-gate/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() 181 (void) rename(tmpfile, file); in _file_put_printer() 184 (void) unlink(tmpfile); in _file_put_printer() 189 (void) free(tmpfile); in _file_put_printer()
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zdb/ |
H A D | zdb_002_pos.ksh | 35 typeset tmpfile="/var/tmp/zdb-feature-mismatch" 39 grep "$errstr" $tmpfile 40 rm -f $tmpfile 45 log_must eval "zdb $TESTPOOL >$tmpfile" 46 grep -q "$errstr" $tmpfile && \
|
/illumos-gate/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)
|
/illumos-gate/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
|
/illumos-gate/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
|
/illumos-gate/usr/src/tools/smatch/src/smatch_scripts/ |
H A D | whitespace_only.sh | 45 tmpfile=$(mktemp) 55 mv $before $tmpfile 57 cat $tmpfile >> $before 65 mv $after $tmpfile 67 cat $tmpfile >> $after 89 rm -f $before $after $tmpfile
|
/illumos-gate/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
|
/illumos-gate/usr/src/cmd/genmsg/ |
H A D | main.c | 104 char tmpfile[32]; in main() local 297 (void) strlcpy(tmpfile, "/tmp/gensmg.XXXXXX", in main() 298 sizeof (tmpfile)); in main() 300 if ((tmpfd = mkstemp(tmpfile)) == -1) { in main() 302 "cannot create \"%s\""), tmpfile); in main() 310 "cannot create \"%s\""), tmpfile); in main() 315 (void) unlink(tmpfile); in main() 324 (void) unlink(tmpfile); in main() 341 (void) file_copy(tmpfile, newfile); in main() 343 (void) unlink(tmpfile); in main()
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/rootpool/ |
H A D | rootpool_002_neg.ksh | 51 typeset tmpfile="/tmp/mounted-datasets.$$" 57 mount -p | awk '{if ($4 == "zfs") print $1}' > $tmpfile 64 done < $tmpfile 65 rm -f $tmpfile
|
/illumos-gate/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()
|
/illumos-gate/usr/src/tools/onbld/Checks/ |
H A D | ShellLint.py | 29 ret, tmpfile = processcheck('shcomp', options, fh, output) 31 if tmpfile: 32 for line in tmpfile: 41 tmpfile.close()
|
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 | 50 ret, tmpfile = processcheck('mandoc', options, fh, output) 52 if tmpfile: 53 for line in tmpfile: 57 tmpfile.close()
|
H A D | ProcessCheck.py | 49 tmpfile = tempfile.TemporaryFile(prefix=command, mode="w+") 56 stdin=subprocess.PIPE, stdout=tmpfile, 68 tmpfile.seek(0) 70 return (ret < 0 and 1 or ret, tmpfile)
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/mdb/ |
H A D | mdb_001_pos.ksh | 47 rm -f $tmpfile 53 tmpfile=$(mktemp) 104 log_must eval "mdb -ke \"${cmd}\" >$tmpfile 2>&1" 107 log_mustnot grep -q "mdb:" $tmpfile
|