Lines Matching defs:from

469 		error("Invalid packet back from SSH2_FXP_INIT (type %u)",
1044 fatal("Got multiple names (%d) from %s", count, what);
1390 fatal("Got multiple names (%d) from SSH_FXP_READLINK", count);
1659 /* Read from remote and write to local */
2089 /* Read from local and write to remote */
2104 * Simulate an EOF on interrupt, allowing ACKs from the
2373 /* Try to eat replies from the upload side */
2419 * the counter based on the reply from the destination...
2428 sftp_crossload(struct sftp_conn *from, struct sftp_conn *to,
2450 if (sftp_stat(from, from_path, 0, &attr) != 0)
2465 buflen = from->download_buflen;
2470 if (send_open(from, from_path, "origin", SSH2_FXF_READ, NULL,
2483 sftp_close(from, from_handle, from_handle_len);
2487 /* Read from remote "from" and write to remote "to" */
2519 req = request_enqueue(&requests, from->msg_id++,
2523 send_read_request(from, req->id, req->offset,
2527 /* Try to eat replies from the upload side (nonblocking) */
2532 get_msg(from, msg);
2591 req->id = from->msg_id++;
2594 send_read_request(from, req->id,
2609 } else if (max_req < from->num_requests) {
2623 /* Drain replies from the server (blocking) */
2624 debug3_f("waiting for %u replies from destination", num_upload_req);
2645 sftp_close(from, from_handle, from_handle_len);
2651 sftp_close(from, from_handle, from_handle_len);
2655 if (sftp_close(from, from_handle, from_handle_len) != 0 ||
2675 crossload_dir_internal(struct sftp_conn *from, struct sftp_conn *to,
2694 if (sftp_stat(from, from_path, 1, &ldirattrib) != 0) {
2736 if (sftp_readdir(from, from_path, &dir_entries) == -1) {
2756 if (sftp_stat(from, new_from_path, 1, &lsym) != 0) {
2768 if (crossload_dir_internal(from, to,
2774 if (sftp_crossload(from, to, new_from_path,
2796 sftp_crossload_dir(struct sftp_conn *from, struct sftp_conn *to,
2803 if ((from_path_canon = sftp_realpath(from, from_path)) == NULL) {
2809 ret = crossload_dir_internal(from, to, from_path_canon, to_path, 0,
2976 /* Check whether path returned from glob(..., GLOB_MARK, ...) is a directory */