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

1234

/illumos-gate/usr/src/lib/libast/common/stdio/
H A Dtmpfile.c27 tmpfile(void) function
/illumos-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...]
/illumos-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
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zdb/
H A Dzdb_002_pos.ksh35 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 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)
/illumos-gate/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
/illumos-gate/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
/illumos-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
/illumos-gate/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
/illumos-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 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)
/illumos-gate/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
/illumos-gate/usr/src/lib/libbc/libc/stdio/common/
H A Dtmpfile.c29 * tmpfile - return a pointer to an update file that can be
41 tmpfile() function
/illumos-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
/illumos-gate/usr/src/test/libc-tests/tests/random/
H A Dinz_inval.c38 char *tmpfile; local
82 tmpfile = strdup(template);
83 assert(tmpfile != NULL);
84 fd = mkstemp(tmpfile);
109 (void) unlink(tmpfile);
110 free(tmpfile);
/illumos-gate/usr/src/test/zfs-tests/tests/functional/rsend/
H A Dsend-c_stream_size_estimate.ksh43 typeset tmpfile=$(mktemp -p $BACKDIR)
45 eval "$cmd >$tmpfile"
47 typeset size=$(eval "awk '\$2 == \"$ds\" {print \$3}' $tmpfile")
48 rm -f $tmpfile
/illumos-gate/usr/src/lib/print/libprint/common/
H A Dnss_write.c95 char *tmpfile; local
101 if ((tmpfile = malloc(size)) == NULL)
104 if (snprintf(tmpfile, size, "%sXXXXXX", file) >= size) {
105 syslog(LOG_ERR, "_file_put_printer:buffer overflow:tmpfile");
117 free(tmpfile);
127 free(tmpfile);
131 if ((fd = mkstemp(tmpfile)) < 0) {
133 free(tmpfile);
149 * In this case, just don't write any entries to the tmpfile
180 (void) rename(tmpfile, fil
[all...]
/illumos-gate/usr/src/cmd/genmsg/
H A Dmain.c106 char tmpfile[32]; local
299 (void) strlcpy(tmpfile, "/tmp/gensmg.XXXXXX",
300 sizeof (tmpfile));
302 if ((tmpfd = mkstemp(tmpfile)) == -1) {
304 "cannot create \"%s\""), tmpfile);
312 "cannot create \"%s\""), tmpfile);
317 (void) unlink(tmpfile);
326 (void) unlink(tmpfile);
343 (void) file_copy(tmpfile, newfile);
345 (void) unlink(tmpfile);
[all...]

Completed in 133 milliseconds

1234