/freebsd/crypto/openssh/regress/ |
H A D | sftp-perm.sh | 22 rm -f ${COPY} ${COPY}.1 23 test -d ${COPY}.dd && { rmdir ${COPY}.dd || fatal "rmdir ${COPY}.dd"; } 86 "put $DATA $COPY" \ 88 "cmp $DATA $COPY" \ 89 "test ! -f $COPY" 93 "chmod 0700 $COPY" \ 94 "touch $COPY; chmod 0400 $COPY" \ 95 "test -x $COPY" \ 96 "test ! -x $COPY" 100 "rm $COPY" \ [all …]
|
H A D | sftp-cmds.sh | 19 QUOTECOPY=${COPY}".\"blah\"" 20 QUOTECOPY_ARG=${COPY}'.\"blah\"' 22 SPACECOPY="${COPY} this has spaces.txt" 23 SPACECOPY_ARG="${COPY}\ this\ has\ spaces.txt" 25 GLOBMETACOPY="${COPY} [metachar].txt" 27 rm -rf ${COPY} ${COPY}.1 ${COPY}.2 ${COPY}.dd ${COPY}.dd2 28 mkdir ${COPY}.dd 68 rm -f ${COPY} 70 echo "get $DATA $COPY" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \ 72 cmp $DATA ${COPY} || fail "corrupted copy after get" [all …]
|
H A D | sftp-badcmds.sh | 10 rm -rf ${COPY} ${COPY}.1 ${COPY}.2 ${COPY}.dd 12 rm -f ${COPY} 14 echo "get $NONEXIST $COPY" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \ 16 test -f ${COPY} && fail "existing copy after get nonexistent" 18 rm -f ${COPY}.dd/* 23 test -f ${COPY}.dd/$x && fail "existing copy after get nonexistent" 26 rm -f ${COPY} 28 echo "put $NONEXIST $COPY" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \ 30 test -f ${COPY} && fail "existing copy after put nonexistent" 32 rm -f ${COPY}.dd/* [all …]
|
H A D | sftp-batch.sh | 8 rm -rf ${COPY} ${COPY}.1 ${COPY}.2 ${COPY}.dd ${BATCH}.* 11 get $DATA $COPY 12 put ${COPY} ${COPY}.1 13 rm ${COPY} 14 -put ${COPY} ${COPY}.2 25 get $DATA $COPY 26 put ${COPY} ${COPY}.3 27 rm ${COPY}.* 29 put ${COPY}.3 ${COPY}.4 53 rm -rf ${COPY} ${COPY}.1 ${COPY}.2 ${COPY}.dd ${BATCH}.*
|
H A D | scp.sh | 9 DIR=${COPY}.dd 10 DIR2=${COPY}.dd2 12 DIR3=${COPY}.dd.glob[456] 28 rm -rf ${COPY} ${COPY2} ${DIR} ${DIR2} ${COPY3} ${DIR3} 54 $SCP $scpopts ${DATA} ${COPY} || fail "copy failed" 55 cmp ${DATA} ${COPY} || fail "corrupted copy" 59 $SCP $scpopts ${DATA} somehost:${COPY} || fail "copy failed" 60 cmp ${DATA} ${COPY} || fail "corrupted copy" 64 $SCP $scpopts somehost:${DATA} ${COPY} || fail "copy failed" 65 cmp ${DATA} ${COPY} || fail "corrupted copy" [all …]
|
H A D | multiplex.sh | 61 rm -f ${COPY} 63 ${SSH} -F $OBJ/ssh_config -S$CTL otherhost cat ${DATA} > ${COPY} 64 test -f ${COPY} || fail "ssh -Sctl: failed copy ${DATA}" 65 cmp ${DATA} ${COPY} || fail "ssh -Sctl: corrupted copy of ${DATA}" 67 rm -f ${COPY} 69 ${SSH} -F $OBJ/ssh_config -S $CTL otherhost cat ${DATA} > ${COPY} 70 test -f ${COPY} || fail "ssh -S ctl: failed copy ${DATA}" 71 cmp ${DATA} ${COPY} || fail "ssh -S ctl: corrupted copy of ${DATA}" 73 rm -f ${COPY} 75 echo "get ${DATA} ${COPY}" | \ [all …]
|
H A D | scp-uri.sh | 9 DIR=${COPY}.dd 10 DIR2=${COPY}.dd2 20 rm -rf ${COPY} ${COPY2} ${DIR} ${DIR2} 37 $SCP $scpopts ${DATA} "scp://${USER}@somehost:${PORT}/${COPY}" || fail "copy failed" 38 cmp ${DATA} ${COPY} || fail "corrupted copy" 42 $SCP $scpopts "scp://${USER}@somehost:${PORT}/${DATA}" ${COPY} || fail "copy failed" 43 cmp ${DATA} ${COPY} || fail "corrupted copy" 47 cp ${DATA} ${COPY} 48 $SCP $scpopts ${COPY} "scp://${USER}@somehost:${PORT}/${DIR}" || fail "copy failed" 49 cmp ${COPY} ${DIR}/copy || fail "corrupted copy" [all …]
|
H A D | sftp.sh | 9 get $DATA ${COPY}.1 10 put $DATA ${COPY}.2 19 rm -f ${COPY}.1 ${COPY}.2 26 cmp $DATA ${COPY}.1 || fail "corrupted copy after get" 27 cmp $DATA ${COPY}.2 || fail "corrupted copy after put" 31 rm -f ${COPY}.1 ${COPY}.2
|
H A D | scp3.sh | 7 DIR=${COPY}.dd 8 DIR2=${COPY}.dd2 18 rm -rf ${COPY} ${COPY2} ${DIR} ${DIR2} 45 $SCP $scpopts -3 hostA:${DATA} hostB:${COPY} || fail "copy failed" 46 cmp ${DATA} ${COPY} || fail "corrupted copy" 50 cp ${DATA} ${COPY} 51 $SCP $scpopts -3 hostA:${COPY} hostB:${DIR} || fail "copy failed" 52 cmp ${COPY} ${DIR}/copy || fail "corrupted copy" 62 echo a > ${COPY} 64 $SCP $scpopts -3 hostA:${DATA} hostA:${COPY} hostB:${COPY2} [all …]
|
H A D | ssh-com-sftp.sh | 10 get $DATA ${COPY}.1 11 put $DATA ${COPY}.2 51 rm -f ${COPY}.1 ${COPY}.2 58 cmp $DATA ${COPY}.1 || fail "corrupted copy after get" 59 cmp $DATA ${COPY}.2 || fail "corrupted copy after put" 64 rm -f ${COPY}.1 ${COPY}.2
|
H A D | transfer.sh | 6 rm -f ${COPY} 7 ${SSH} -n -q -F $OBJ/ssh_proxy somehost cat ${DATA} > ${COPY} 11 cmp ${DATA} ${COPY} || fail "corrupted copy" 15 rm -f ${COPY} 17 ${SSH} -q -F $OBJ/ssh_proxy somehost "cat > ${COPY}" 21 cmp $DATA ${COPY} || fail "corrupted copy" 23 rm -f ${COPY}
|
H A D | rekey.sh | 22 rm -f ${COPY} ${LOG} 24 ${SSH} <${DATA} $_opts -v -F $OBJ/ssh_proxy somehost "cat > ${COPY}" 28 cmp ${DATA} ${COPY} || fail "corrupted copy ($@)" 72 rm -f ${COPY} ${LOG} 74 $OBJ/ssh_proxy somehost "cat >${COPY};sleep $s;sleep 10" 78 cmp ${DATA} ${COPY} || fail "corrupted copy" 89 rm -f ${COPY} ${LOG} 107 rm -f ${COPY} ${LOG} 109 > ${COPY} 113 cmp ${DATA} ${COPY} || fail "corrupted copy" [all …]
|
H A D | sftp-uri.sh | 9 DIR=${COPY}.dd 10 DIR2=${COPY}.dd2 14 rm -rf ${COPY} ${COPY2} ${DIR} ${DIR2} 26 ${SFTP} -q -S "$SSH" -F $OBJ/ssh_config "sftp://${USER}@somehost:${PORT}/${DATA}" ${COPY} || fail "… 27 cmp ${DATA} ${COPY} || fail "corrupted copy" 31 cp ${DATA} ${COPY} 32 ${SFTP} -q -S "$SSH" -F $OBJ/ssh_config "sftp://${USER}@somehost:${PORT}/${COPY}" ${DIR} || fail "c… 33 cmp ${COPY} ${DIR}/copy || fail "corrupted copy"
|
H A D | putty-transfer.sh | 16 rm -f ${COPY} 21 -i ${OBJ}/putty.rsa2 cat ${DATA} > ${COPY} 25 cmp ${DATA} ${COPY} || fail "corrupted copy" 29 rm -f ${COPY} 33 "cat > ${COPY}" 37 cmp $DATA ${COPY} || fail "corrupted copy" 40 rm -f ${COPY}
|
H A D | channel-timeout.sh | 129 rm -f ${COPY} 130 $SFTP -qS $SSH -F $OBJ/ssh_proxy somehost:$DATA $COPY 135 cmp $DATA $COPY || fail "corrupted copy" 142 rm -f ${COPY} 143 $SFTP -qS $SSH -F $OBJ/ssh_proxy somehost:$DATA $COPY 148 test -f $COPY && cmp $DATA $COPY && fail "intact copy" 155 rm -f ${COPY} 156 $SFTP -qS $SSH -F $OBJ/ssh_proxy somehost:$DATA $COPY 161 cmp $DATA $COPY || fail "corrupted copy"
|
H A D | sftp-chroot.sh | 27 ${SFTP} -S "$SSH" -F $OBJ/ssh_config host:/${FILENAME} $COPY \ 30 cmp $PRIVDATA $COPY || fail "$PRIVDATA $COPY differ" 42 ${SFTP} -S "$SSH" -F $OBJ/ssh_config host:/${FILENAME} $COPY \ 45 cmp $PRIVDATA $COPY || fail "$PRIVDATA $COPY differ"
|
H A D | forwarding.sh | 33 somehost cat ${DATA} > ${COPY} 34 test -s ${COPY} || fail "failed copy of ${DATA}" 35 cmp ${DATA} ${COPY} || fail "corrupted copy of ${DATA}" 114 somehost cat ${DATA} > ${COPY} 115 test -s ${COPY} || fail "failed copy of ${DATA}" 116 cmp ${DATA} ${COPY} || fail "corrupted copy of ${DATA}" 128 somehost cat ${DATA} > ${COPY} 129 test -s ${COPY} || fail "failed copy ${DATA}" 130 cmp ${DATA} ${COPY} || fail "corrupted copy of ${DATA}"
|
H A D | ssh-com-client.sh | 97 rm -f ${COPY} 98 ${ssh2} -F ${OBJ}/ssh2_config somehost cat ${DATA} > ${COPY} 102 cmp ${DATA} ${COPY} || fail "ssh2 ${v} cat test (receive) data mismatch" 106 rm -f ${COPY} 108 ${ssh2} -F ${OBJ}/ssh2_config host "cat > ${COPY}" 112 cmp ${DATA} ${COPY} || \ 117 rm -f ${COPY}
|
H A D | conch-ciphers.sh | 19 rm -f ${COPY} 24 127.0.0.1 "cat ${DATA}" 2>/dev/null | cat > ${COPY} 28 cmp ${DATA} ${COPY} || fail "corrupted copy" 30 rm -f ${COPY}
|
H A D | reexec.sh | 24 rm -f ${COPY} 26 cat ${DATA} > ${COPY} 30 cmp ${DATA} ${COPY} || fail "corrupted copy" 31 rm -f ${COPY}
|
H A D | dropbear-kex.sh | 21 rm -f ${COPY} 25 -J "$OBJ/ssh_proxy.sh" somehost cat ${DATA} > ${COPY} 29 cmp ${DATA} ${COPY} || fail "corrupted copy" 31 rm -f ${COPY}
|
H A D | dropbear-ciphers.sh | 23 rm -f ${COPY} 25 -c $c -m $m -J "$OBJ/ssh_proxy.sh" somehost cat ${DATA} > ${COPY} 29 cmp ${DATA} ${COPY} || fail "corrupted copy" 33 rm -f ${COPY}
|
/freebsd/lib/libc/gen/ |
H A D | statvfs.c | 107 #define COPY(field) \ in sfs2svfs() macro 116 COPY(f_bavail); in sfs2svfs() 117 COPY(f_bfree); in sfs2svfs() 118 COPY(f_blocks); in sfs2svfs() 119 COPY(f_ffree); in sfs2svfs() 120 COPY(f_files); in sfs2svfs()
|
/freebsd/lib/libc/stdlib/ |
H A D | heapsort.c | 66 #define COPY(a, b, count, size, tmp1, tmp2) { \ macro 122 COPY(par, child, count, size, tmp1, tmp2); \ 130 COPY(child, k, count, size, tmp1, tmp2); \ 133 COPY(child, par, count, size, tmp1, tmp2); \ 189 COPY(k, base + nmemb * size, cnt, size, tmp1, tmp2); in heapsort_b() 190 COPY(base + nmemb * size, base + size, cnt, size, tmp1, tmp2); in heapsort_b()
|
/freebsd/lib/libc/stdio/ |
H A D | fvwrite.c | 64 #define COPY(n) (void)memcpy((void *)fp->_p, (void *)p, (size_t)(n)) in __sfvwrite() macro 124 COPY(w); /* copy MIN(fp->_w,len), */ in __sfvwrite() 131 COPY(w); in __sfvwrite() 144 COPY(w); in __sfvwrite() 171 COPY(w); in __sfvwrite() 182 COPY(w); in __sfvwrite()
|