Home
last modified time | relevance | path

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

1234

/freebsd/sys/contrib/openzfs/config/
H A Dkernel-tmpfile.m43 dnl # Add support for i_op->tmpfile
12 static int tmpfile(struct mnt_idmap *idmap,
17 .tmpfile = tmpfile,
25 static int tmpfile(struct user_namespace *userns,
30 .tmpfile = tmpfile,
35 dnl # add support for userns parameter to tmpfile
39 static int tmpfile(struct user_namespace *userns,
44 .tmpfile = tmpfile,
53 .tmpfile = tmpfile,
59 AC_MSG_CHECKING([whether i_op->tmpfile() exists])
[all …]
/freebsd/cddl/contrib/opensolaris/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
88 mv $tmpfile $tmpfile.$iter
92 if [ ! -f $tmpfile.$i ]; then
98 j=`cat $tmpfile.$i`
[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
/freebsd/contrib/unbound/contrib/
H A Dupdate-anchor.sh57 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/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zdb/
H A Dzdb_backup.ksh23 tmpfile=$TEST_BASE_DIR/tmpfile
28 rm $tmpfile.1 $tmpfile.2
47 log_must eval "zfs send -ecL $snap > $tmpfile.1"
48 log_must eval "zdb -B $TESTPOOL/$objsetid ecL > $tmpfile.2"
50 typeset sum1=$(cat $tmpfile.1 | md5sum)
51 typeset sum2=$(cat $tmpfile.2 | md5sum)
H A Dzdb_002_pos.ksh35 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 && \
/freebsd/contrib/sendmail/contrib/
H A Ddoublebounce.pl42 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/sys/contrib/openzfs/tests/zfs-tests/tests/functional/zpool_influxdb/
H A Dzpool_influxdb.ksh29 typeset tmpfile=$TEST_BASE_DIR/zpool_influxdb.out.$$
32 if [[ -f $tmpfile ]]; then
33 rm -f $tmpfile
46 log_must grep -q "^${1}," $tmpfile
50 log_must eval "zpool_influxdb > $tmpfile"
65 log_must eval "zpool_influxdb > $tmpfile"
/freebsd/usr.sbin/bsdconfig/share/packages/
H A Dindex.awk31 cat, npkgs, desc >>tmpfile
53 print "_categories_" varpkg "=\"" $7 "\"" >> tmpfile
57 print "_rundeps_" varpkg "=\"" $9 "\"" >> tmpfile
68 print "_npkgs_" varcat "=\"" npkgs "\"" >>tmpfile
72 print "CATEGORY_MENU_LIST=\"" >>tmpfile
90 print "\"" >>tmpfile
94 print "PACKAGE_CATEGORIES=\"" category_list "\"" >> tmpfile
95 print "_npkgs=\""npkg"\"" >>tmpfile
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zpool_create/
H A Dzpool_create_003_pos.ksh57 [[ -e $tmpfile ]] && \
58 log_must $RM -f $tmpfile
61 tmpfile="$TMPDIR/zpool_create_003.tmp${TESTCASE_ID}"
77 create_pool $TESTPOOL ${disk}p1 > $tmpfile
80 $ZPOOL create -n $TESTPOOL ${disk}p1 > $tmpfile
86 $CAT $tmpfile | $GREP "$str" >/dev/null 2>&1
/freebsd/tests/sys/cddl/zfs/tests/cli_user/zfs_list/
H A Dzfs_list_003_pos.ksh56 if [[ -f $tmpfile ]]; then
57 $RM -f $tmpfile
66 tmpfile=$TMPDIR/zfslist.out.${TESTCASE_ID}
76 run_unprivileged $ZFS list -rH -o name $path > $tmpfile
78 $GREP -q "^${fs}$" $tmpfile
80 cat $tmpfile
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_create/
H A Dzpool_create_003_pos.ksh51 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
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_user/zpool_iostat/
H A Dzpool_iostat_002_pos.ksh46 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 -c $TESTPOOL $tmpfile)
/freebsd/include/
H A Dmk-osreldate.sh34 tmpfile=$(mktemp osreldate.XXXXXXXX)
35 trap "rm -f $tmpfile" EXIT
43 cat > $tmpfile <<EOF
52 chmod 644 $tmpfile
53 mv -f $tmpfile osreldate.h
/freebsd/tests/sys/cddl/zfs/tests/cli_user/zpool_iostat/
H A Dzpool_iostat_002_pos.ksh55 typeset tmpfile=$TMPDIR/zfsiostat.out.${TESTCASE_ID}
60 if [[ -f $tmpfile ]]; then
61 $RM -f $tmpfile
72 run_unprivileged $ZPOOL iostat $TESTPOOL 2 3 > $tmpfile 2>&1
73 stat_count=$($GREP $TESTPOOL $tmpfile | $WC -l)
/freebsd/contrib/atf/test-programs/
H A Dsh_helpers.sh37 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/usr.sbin/vigr/
H A Dvigr.sh61 tmpfile="${tmpdir}/group"
69 cp "${grpfile}" "${tmpfile}"
73 ${EDITOR:-/usr/bin/vi} "${tmpfile}"
76 if chkgrp -q "${tmpfile}" ; then
77 install -b -m 0644 -C -S "${tmpfile}" "${grpfile}"
/freebsd/sys/contrib/openzfs/tests/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=$TEST_BASE_DIR/zfslist.out.$$
67 zfs list -rH -o name $path > $tmpfile
69 log_must grep -qxF "$fs" $tmpfile
/freebsd/cddl/contrib/opensolaris/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
/freebsd/sys/contrib/openzfs/lib/libshare/os/freebsd/
H A Dnfs.c103 nfs_enable_share_impl(sa_share_impl_t impl_share, FILE *tmpfile) in nfs_enable_share_impl() argument
116 if (fputs(mp, tmpfile) == EOF || in nfs_enable_share_impl()
117 fputc('\t', tmpfile) == EOF || in nfs_enable_share_impl()
118 translate_opts(shareopts, tmpfile) == EOF || in nfs_enable_share_impl()
119 fputc('\n', tmpfile) == EOF) { in nfs_enable_share_impl()
138 nfs_disable_share_impl(sa_share_impl_t impl_share, FILE *tmpfile) in nfs_disable_share_impl() argument
140 (void) impl_share, (void) tmpfile; in nfs_disable_share_impl()
/freebsd/contrib/elftoolchain/libelftc/
H A Dmake-toolchain-version94 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/sys/contrib/openzfs/lib/libshare/os/linux/
H A Dnfs.c55 typedef int (*nfs_host_callback_t)(FILE *tmpfile, const char *sharepath,
126 FILE *tmpfile; member
207 error = udata->callback(udata->tmpfile, in foreach_nfs_host_cb()
230 foreach_nfs_host(sa_share_impl_t impl_share, FILE *tmpfile, in foreach_nfs_host() argument
238 udata.tmpfile = tmpfile; in foreach_nfs_host()
422 nfs_add_entry(FILE *tmpfile, const char *sharepath, in nfs_add_entry() argument
436 if (fprintf(tmpfile, "%s %s(sec=%s,%s,%s)\n", mp, in nfs_add_entry()
452 nfs_enable_share_impl(sa_share_impl_t impl_share, FILE *tmpfile) in nfs_enable_share_impl() argument
459 error = foreach_nfs_host(impl_share, tmpfile, nfs_add_entry, in nfs_enable_share_impl()
480 nfs_disable_share_impl(sa_share_impl_t impl_share, FILE *tmpfile) in nfs_disable_share_impl() argument
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/rootpool/
H A Drootpool_002_neg.ksh51 typeset tmpfile="$TEST_BASE_DIR/mounted-datasets.$$"
57 mount -p | awk '$4 == "zfs" {print $1}' > $tmpfile
64 done < $tmpfile
65 rm -f $tmpfile
/freebsd/sys/contrib/openzfs/tests/zfs-tests/
H A DMakefile.am23 scripts_zfs_tests_functional_tmpfiledir = $(datadir)/$(PACKAGE)/zfs-tests/tests/functional/tmpfile
25 %D%/tests/functional/tmpfile/tmpfile_001_pos \
26 %D%/tests/functional/tmpfile/tmpfile_002_pos \
27 %D%/tests/functional/tmpfile/tmpfile_003_pos \
28 %D%/tests/functional/tmpfile/tmpfile_stat_mode \
29 %D%/tests/functional/tmpfile/tmpfile_test

1234