| /freebsd-13.1/cddl/contrib/opensolaris/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 88 mv $tmpfile $tmpfile.$iter 92 if [ ! -f $tmpfile.$i ]; then 98 j=`cat $tmpfile.$i` [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
|
| /freebsd-13.1/contrib/unbound/contrib/ |
| H A D | update-anchor.sh | 57 tmpfile="/tmp/update-anchor.$$" 58 tmp2=$tmpfile.2 59 tmp3=$tmpfile.3 67 rm -f $tmpfile 75 if grep '(secure)$' $tmpfile >/dev/null 2>&1; then 78 rm -f $tmpfile 90 grep '(secure)$' $tmpfile | \ 97 grep '(secure)$' $tmpfile | \ 107 grep '(secure)$' $tmpfile | \ 114 grep '(secure)$' $tmpfile | \ [all …]
|
| /freebsd-13.1/sys/contrib/openzfs/config/ |
| H A D | kernel-tmpfile.m4 | 3 dnl # Add support for i_op->tmpfile 8 dnl # add support for userns parameter to tmpfile 12 int tmpfile(struct user_namespace *userns, 17 .tmpfile = tmpfile, 22 int tmpfile(struct inode *inode, struct dentry *dentry, 26 .tmpfile = tmpfile, 32 AC_MSG_CHECKING([whether i_op->tmpfile() exists]) 35 AC_DEFINE(HAVE_TMPFILE, 1, [i_op->tmpfile() exists]) 36 AC_DEFINE(HAVE_TMPFILE_USERNS, 1, [i_op->tmpfile() has userns]) 40 AC_DEFINE(HAVE_TMPFILE, 1, [i_op->tmpfile() exists])
|
| /freebsd-13.1/tests/sys/cddl/zfs/tests/cli_root/zpool_add/ |
| H A D | zpool_add.kshlib | 76 typeset tmpfile="$TMPDIR/fstab.tmp" 81 $CAT $vfstab | $GREP "^/dev/" >$tmpfile 87 done <$tmpfile 89 $RM -f $tmpfile 99 typeset tmpfile="$TMPDIR/mnttab.tmp" 104 $MOUNT | $GREP "^/dev/" >$tmpfile 110 done <$tmpfile 112 $RM -f $tmpfile 125 typeset tmpfile="$TMPDIR/swapinfo.tmp" 128 swapinfo | $GREP "^/dev/" >$tmpfile [all …]
|
| /freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_add/ |
| H A D | zpool_add.kshlib | 45 tmpfile="$TEST_BASE_DIR/vfstab.tmp" 48 tmpfile="$TEST_BASE_DIR/fstab.tmp" 51 cat $vfstab | grep "^${DEV_DSKDIR}" >$tmpfile 57 done <$tmpfile 59 rm -f $tmpfile 79 typeset tmpfile="$TEST_BASE_DIR/mtab.tmp" 82 typeset tmpfile="$TEST_BASE_DIR/mnttab.tmp" 85 cat $mnttab | grep "^${DEV_DSKDIR}" >$tmpfile 91 done <$tmpfile 93 rm -f $tmpfile
|
| /freebsd-13.1/contrib/sendmail/contrib/ |
| H A D | doublebounce.pl | 42 use vars qw( $opt_d $tmpfile); 104 open(MSG, "<$tmpfile"); 128 $tmpfile = tmpnam(); 130 if (!open(MSG, ">$tmpfile")) { 131 syslog('err', "Unable to open temporary file $tmpfile"); 136 if (!open(MSG, "<$tmpfile")) { 137 syslog('err', "Unable to reopen temporary file $tmpfile"); 220 unlink($tmpfile);
|
| /freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/tests/functional/zpool_influxdb/ |
| H A D | zpool_influxdb.ksh | 29 typeset tmpfile=$TEST_BASE_DIR/zpool_influxdb.out.$$ 32 if [[ -f $tmpfile ]]; then 33 rm -f $tmpfile 46 grep "^${1}," $tmpfile >/dev/null 2>/dev/null 53 log_must zpool_influxdb > $tmpfile 68 zpool_influxdb > $tmpfile
|
| /freebsd-13.1/tests/sys/cddl/zfs/tests/cli_root/zpool_create/ |
| H A D | zpool_create_003_pos.ksh | 62 [[ -e $tmpfile ]] && \ 63 log_must $RM -f $tmpfile 66 tmpfile="$TMPDIR/zpool_create_003.tmp${TESTCASE_ID}" 82 create_pool $TESTPOOL ${disk}p1 > $tmpfile 85 $ZPOOL create -n $TESTPOOL ${disk}p1 > $tmpfile 91 $CAT $tmpfile | $GREP "$str" >/dev/null 2>&1
|
| /freebsd-13.1/tests/sys/cddl/zfs/tests/cli_user/zfs_list/ |
| H A D | zfs_list_003_pos.ksh | 61 if [[ -f $tmpfile ]]; then 62 $RM -f $tmpfile 71 tmpfile=$TMPDIR/zfslist.out.${TESTCASE_ID} 81 run_unprivileged $ZFS list -rH -o name $path > $tmpfile 83 $GREP -q "^${fs}$" $tmpfile 85 cat $tmpfile
|
| /freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_create/ |
| H A D | zpool_create_003_pos.ksh | 51 rm -f $tmpfile 54 tmpfile="$TEST_BASE_DIR/zpool_create_003.tmp$$" 70 create_pool $TESTPOOL $DISK0 > $tmpfile 73 log_must eval "zpool create -n $prop $TESTPOOL $DISK0 > $tmpfile" 79 grep "$str" $tmpfile >/dev/null 2>&1 || \ 89 create_pool $TESTPOOL $DISK0 > $tmpfile
|
| H A D | zpool_create.shlib | 90 done <$tmpfile 92 rm -f $tmpfile 137 typeset tmpfile=$(mktemp) 154 echo "$line" >>$tmpfile 169 cat $tmpfile 170 rm -f $tmpfile 175 if grep -q $name $tmpfile; then 176 cat $tmpfile 177 rm -f $tmpfile 182 rm -f $tmpfile [all …]
|
| /freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_user/zpool_iostat/ |
| H A D | zpool_iostat_002_pos.ksh | 46 typeset tmpfile=$TEST_BASE_DIR/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)
|
| /freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zdb/ |
| H A D | zdb_002_pos.ksh | 35 typeset tmpfile="$TEST_BASE_DIR/zdb-feature-mismatch" 39 grep "$errstr" $tmpfile 40 rm -f $tmpfile 45 log_must eval "zdb $TESTPOOL >$tmpfile" 46 grep -q "$errstr" $tmpfile && \
|
| H A D | zdb_recover.ksh | 36 rm $tmpfile 42 tmpfile="$TEST_BASE_DIR/zdb-recover" 52 output=$(zdb -r $TESTPOOL/$TESTFS file1 $tmpfile) 53 log_must cmp $init_data $tmpfile
|
| /freebsd-13.1/include/ |
| H A D | mk-osreldate.sh | 35 tmpfile=$(mktemp osreldate.XXXXXXXX) 36 trap "rm -f $tmpfile" EXIT 44 cat > $tmpfile <<EOF 53 chmod 644 $tmpfile 54 mv -f $tmpfile osreldate.h
|
| /freebsd-13.1/tests/sys/cddl/zfs/tests/cli_user/zpool_iostat/ |
| H A D | zpool_iostat_002_pos.ksh | 60 typeset tmpfile=$TMPDIR/zfsiostat.out.${TESTCASE_ID} 65 if [[ -f $tmpfile ]]; then 66 $RM -f $tmpfile 77 run_unprivileged $ZPOOL iostat $TESTPOOL 2 3 > $tmpfile 2>&1 78 stat_count=$($GREP $TESTPOOL $tmpfile | $WC -l)
|
| /freebsd-13.1/contrib/atf/test-programs/ |
| H A D | sh_helpers.sh | 37 touch $(atf_config_get tmpfile) 42 rm $(atf_config_get tmpfile) 53 touch $(atf_config_get tmpfile) 59 rm $(atf_config_get tmpfile) 70 touch $(atf_config_get tmpfile) 76 rm $(atf_config_get tmpfile) 101 touch $(atf_config_get tmpfile) 103 touch $(atf_config_get tmpfile).no 107 rm $(atf_config_get tmpfile)
|
| /freebsd-13.1/usr.sbin/vigr/ |
| H A D | vigr.sh | 62 tmpfile="${tmpdir}/group" 70 cp "${grpfile}" "${tmpfile}" 74 ${EDITOR:-/usr/bin/vi} "${tmpfile}" 77 if chkgrp -q "${tmpfile}" ; then 78 install -b -m 0644 -C -S "${tmpfile}" "${grpfile}"
|
| /freebsd-13.1/cddl/contrib/opensolaris/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
|
| /freebsd-13.1/sys/contrib/openzfs/tests/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=$TEST_BASE_DIR/zfslist.out.$$ 67 zfs list -rH -o name $path > $tmpfile 69 grep "^${fs}$" $tmpfile > /dev/null 2>&1
|
| /freebsd-13.1/contrib/elftoolchain/libelftc/ |
| H A D | make-toolchain-version | 94 tmpfile=`mktemp ${TMPDIR:-/tmp}/MV.XXXXXXX` 95 trap "rm -f ${tmpfile};" 0 1 2 3 15 97 cat > ${tmpfile} <<EOF 110 if ! cmp -s ${tmpfile} ${versionfile}; then 112 cp ${tmpfile} ${versionfile} || exit ${?}
|
| /freebsd-13.1/sys/contrib/openzfs/lib/libshare/os/freebsd/ |
| H A D | nfs.c | 193 char *tmpfile = NULL; in nfs_init_tmpfile() local 195 if (asprintf(&tmpfile, "%s%s", ZFS_EXPORTS_FILE, ".XXXXXXXX") == -1) { in nfs_init_tmpfile() 201 int fd = mkstemp(tmpfile); in nfs_init_tmpfile() 205 free(tmpfile); in nfs_init_tmpfile() 209 return (tmpfile); in nfs_init_tmpfile() 213 nfs_fini_tmpfile(char *tmpfile) in nfs_fini_tmpfile() argument 215 if (rename(tmpfile, ZFS_EXPORTS_FILE) == -1) { in nfs_fini_tmpfile() 216 fprintf(stderr, "Unable to rename %s: %s\n", tmpfile, in nfs_fini_tmpfile() 218 unlink(tmpfile); in nfs_fini_tmpfile() 219 free(tmpfile); in nfs_fini_tmpfile() [all …]
|
| /freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/tests/functional/rootpool/ |
| H A D | rootpool_002_neg.ksh | 51 typeset tmpfile="$TEST_BASE_DIR/mounted-datasets.$$" 57 mount -p | awk '{if ($4 == "zfs") print $1}' > $tmpfile 64 done < $tmpfile 65 rm -f $tmpfile
|