Searched refs:tmpfile (Results 26 - 50 of 69) sorted by relevance

123

/freebsd-13-stable/tests/sys/cddl/zfs/tests/cli_root/zpool_create/
H A Dzpool_create.kshlib102 typeset tmpfile="$TMPDIR/fstab.tmp"
107 $CAT $fstab | $GREP "^/dev" >$tmpfile
113 done <$tmpfile
115 $RM -f $tmpfile
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/rsend/
H A Dsend-c_stream_size_estimate.ksh45 typeset tmpfile=$(TMPDIR=$BACKDIR mktemp)
47 typeset tmpfile=$(mktemp -p $BACKDIR)
50 eval "$cmd >$tmpfile"
52 typeset size=$(eval "awk '\$2 == \"$ds\" {print \$3}' $tmpfile")
53 rm -f $tmpfile
/freebsd-13-stable/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-13-stable/usr.sbin/bsdconfig/console/
H A Dttys117 local tmpfile
118 f_eval_catch -k tmpfile $funcname mktemp 'mktemp -t "%s"' "$pgm" ||
131 f_eval_catch -d $funcname chmod 'chmod "%s" "%s"' "$mode" "$tmpfile"
132 f_eval_catch -d $funcname chown 'chown "%s" "%s"' "$owner" "$tmpfile"
160 ' "$ETC_TTYS" > "$tmpfile" 2>&1 ); then
164 f_eval_catch $funcname mv 'mv -f "%s" "%s"' "$tmpfile" "$ETC_TTYS" ||
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/history/
H A Dhistory_007_pos.ksh101 tmpfile=$import_dir/cmds_tmp.$$
104 head -n $linenum $migrated_cmds_f > $tmpfile
105 log_must diff $tmpfile $orig_cmds_f1
H A Dhistory_002_pos.ksh49 [[ -f $tmpfile ]] && rm -f $tmpfile
64 tmpfile=$TEST_BASE_DIR/tmpfile.$$ ; tmpfile2=$TEST_BASE_DIR/tmpfile2.$$
176 log_must eval "zfs send -i $fssnap $fssnap2 > $tmpfile"
184 run_and_verify "zfs receive $fs < $tmpfile"
/freebsd-13-stable/tests/sys/cddl/zfs/tests/history/
H A Dhistory_007_pos.ksh118 tmpfile=$import_dir/cmds_tmp.${TESTCASE_ID}
121 $HEAD -n $linenum $migrated_cmds_f > $tmpfile
122 log_must $DIFF $tmpfile $orig_cmds_f1
H A Dhistory_002_pos.ksh65 for FileToRm in $EXPECT_HISTORY $REAL_HISTORY $tmpfile $tmpfile2; do
116 tmpfile=$TMPDIR/tmpfile.${TESTCASE_ID} ; tmpfile2=$TMPDIR/tmpfile2.${TESTCASE_ID}
154 log_must eval "$ZFS send -i $fssnap $fssnap2 > $tmpfile"
158 exec_record eval "$ZFS receive $fs < $tmpfile"
/freebsd-13-stable/sys/contrib/openzfs/lib/libshare/os/freebsd/
H A Dnfs.c193 char *tmpfile = NULL; local
195 if (asprintf(&tmpfile, "%s%s", ZFS_EXPORTS_FILE, ".XXXXXXXX") == -1) {
201 int fd = mkstemp(tmpfile);
205 free(tmpfile);
209 return (tmpfile);
213 nfs_fini_tmpfile(char *tmpfile) argument
215 if (rename(tmpfile, ZFS_EXPORTS_FILE) == -1) {
216 fprintf(stderr, "Unable to rename %s: %s\n", tmpfile,
218 unlink(tmpfile);
219 free(tmpfile);
[all...]
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/mmp/
H A Dmmp.kshlib178 typeset tmpfile=$(mktemp)
183 log_must zdb -e -p $devpath $pool >$tmpfile 2>/dev/null
184 mmp_fail=$(awk '/mmp_fail/ {print $NF}' $tmpfile)
185 mmp_write=$(awk '/mmp_write/ {print $NF}' $tmpfile)
186 mmp_delay=$(awk '/mmp_delay/ {print $NF}' $tmpfile)
187 if [ -f $tmpfile ]; then
188 rm $tmpfile
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/acl/
H A Dacl_common.kshlib279 typeset tmpfile=$TEST_BASE_DIR/tmp_get_ACE.$$
293 ls $args $file > $tmpfile
294 (( $? != 0 )) && log_fail "FAIL: ls $args $file > $tmpfile"
313 done < $tmpfile
315 rm -f $tmpfile
316 (( $? != 0 )) && log_fail "FAIL: rm -f $tmpfile"
373 if [[ -f ${node}/tmpfile ]]; then
374 log_must rm -f ${node}/tmpfile
376 chgusr_exec $user touch ${node}/tmpfile > \
/freebsd-13-stable/tests/sys/cddl/zfs/tests/acl/
H A Dacl_common.kshlib288 typeset tmpfile=$TMPDIR/tmp_get_ACE.${TESTCASE_ID}
302 $LS $args $file > $tmpfile
303 (( $? != 0 )) && log_fail "FAIL: $LS $args $file > $tmpfile"
322 done < $tmpfile
324 $RM -f $tmpfile
325 (( $? != 0 )) && log_fail "FAIL: $RM -f $tmpfile"
382 if [[ -f ${node}/tmpfile ]]; then
383 log_must $RM -f ${node}/tmpfile
385 chgusr_exec $user $TOUCH ${node}/tmpfile > \
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_create/
H A Dzpool_create_014_neg.ksh71 typeset TMP_FILE=$mntp/tmpfile.$$
/freebsd-13-stable/usr.bin/mkimg/tests/
H A Dmkimg_test.sh73 local baseline image result tmpfile update
82 tmpfile=_tmp-baseline
83 sed -e '/^#.*/D' < $baseline > $tmpfile
84 if diff -u $tmpfile $result; then
/freebsd-13-stable/sys/contrib/openzfs/lib/libshare/os/linux/
H A Dnfs.c400 char *tmpfile = NULL; local
410 if (asprintf(&tmpfile, "%s%s", ZFS_EXPORTS_FILE, ".XXXXXXXX") == -1) {
415 int fd = mkstemp(tmpfile);
419 free(tmpfile);
423 return (tmpfile);
427 nfs_fini_tmpfile(char *tmpfile) argument
429 if (rename(tmpfile, ZFS_EXPORTS_FILE) == -1) {
430 fprintf(stderr, "Unable to rename %s: %s\n", tmpfile,
432 unlink(tmpfile);
433 free(tmpfile);
[all...]
/freebsd-13-stable/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-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_clear/
H A Dzpool_clear_001_pos.ksh88 typeset tmpfile=$TEST_BASE_DIR/file.$$
96 | grep -v "errors:" > $tmpfile
128 done <$tmpfile
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/
H A DMakefile.am90 tmpfile
/freebsd-13-stable/lib/libc/stdio/
H A Dtmpfile.c36 static char sccsid[] = "@(#)tmpfile.c 8.1 (Berkeley) 6/4/93";
54 tmpfile(void) function
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_receive/
H A Dzfs_receive_005_neg.ksh95 log_must touch $ZFSROOT/$rst_root/$TESTFS/tmpfile
/freebsd-13-stable/tests/sys/cddl/zfs/tests/cli_root/zfs_receive/
H A Dzfs_receive_005_neg.ksh109 log_must $TOUCH $ZFSROOT/$rst_root/$TESTFS/tmpfile
/freebsd-13-stable/tests/sys/fs/fusefs/
H A Drename.cc46 char tmpfile[80] = "/tmp/fuse.rename.XXXXXX"; member in class:Rename
51 unlink(tmpfile);
175 tmpfd = mkstemp(tmpfile);
180 ASSERT_NE(0, rename(tmpfile, FULLB));
183 ASSERT_NE(0, rename(FULLB, tmpfile));
/freebsd-13-stable/contrib/byacc/test/
H A Drun_test.sh28 < $CMP >$tmpfile \
29 && mv $tmpfile $CMP
126 tmpfile=temp$$
/freebsd-13-stable/sbin/gvinum/
H A Dgvinum.c188 char original[BUFSIZ], tmpfile[20], *token[GV_MAXARGS]; local
208 snprintf(tmpfile, sizeof(tmpfile), "/tmp/gvinum.XXXXXX");
210 if ((fd = mkstemp(tmpfile)) == -1) {
215 warn("can't open '%s' for writing", tmpfile);
226 tmpfile);
233 if ((tmp = fopen(tmpfile, "r")) == NULL) {
234 warn("can't open '%s' for reading", tmpfile);
393 unlink(tmpfile);
/freebsd-13-stable/contrib/ntp/scripts/monitoring/
H A Dntploopwatch187 $tmpfile = "/tmp/ntpstat.$$";
209 unlink($tmpfile);
223 unlink($tmpfile);
310 ($c eq 'exit') && (unlink($tmpfile),die("$0: exit by config request\n"));
508 ($doplot .= sprintf($fmt,$c,$tmpfile,2,
515 ($doplot .= sprintf($fmt,$c,$tmpfile,4,
528 ($doplot .= sprintf($fmt,$c,$tmpfile,3,
1452 unlink($tmpfile);
1456 @filepos = &genfile($samples,$srcprefix,$tmpfile,$lo,$lf,@filepos);
1479 unlink($tmpfile);
[all...]

Completed in 307 milliseconds

123