/freebsd-13-stable/tests/sys/cddl/zfs/tests/cli_root/zpool_create/ |
H A D | zpool_create.kshlib | 102 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 D | send-c_stream_size_estimate.ksh | 45 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 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-stable/usr.sbin/bsdconfig/console/ |
H A D | ttys | 117 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 D | history_007_pos.ksh | 101 tmpfile=$import_dir/cmds_tmp.$$ 104 head -n $linenum $migrated_cmds_f > $tmpfile 105 log_must diff $tmpfile $orig_cmds_f1
|
H A D | history_002_pos.ksh | 49 [[ -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 D | history_007_pos.ksh | 118 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 D | history_002_pos.ksh | 65 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 D | nfs.c | 193 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 D | mmp.kshlib | 178 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 D | acl_common.kshlib | 279 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 D | acl_common.kshlib | 288 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 D | zpool_create_014_neg.ksh | 71 typeset TMP_FILE=$mntp/tmpfile.$$
|
/freebsd-13-stable/usr.bin/mkimg/tests/ |
H A D | mkimg_test.sh | 73 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 D | nfs.c | 400 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 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-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_clear/ |
H A D | zpool_clear_001_pos.ksh | 88 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 D | Makefile.am | 90 tmpfile
|
/freebsd-13-stable/lib/libc/stdio/ |
H A D | tmpfile.c | 36 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 D | zfs_receive_005_neg.ksh | 95 log_must touch $ZFSROOT/$rst_root/$TESTFS/tmpfile
|
/freebsd-13-stable/tests/sys/cddl/zfs/tests/cli_root/zfs_receive/ |
H A D | zfs_receive_005_neg.ksh | 109 log_must $TOUCH $ZFSROOT/$rst_root/$TESTFS/tmpfile
|
/freebsd-13-stable/tests/sys/fs/fusefs/ |
H A D | rename.cc | 46 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 D | run_test.sh | 28 < $CMP >$tmpfile \ 29 && mv $tmpfile $CMP 126 tmpfile=temp$$
|
/freebsd-13-stable/sbin/gvinum/ |
H A D | gvinum.c | 188 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 D | ntploopwatch | 187 $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...] |