Lines Matching refs:nwrite
3213 ssize_t nwrite; in ssh_tls_send() local
3223 result = Curl_write(data, sock, buffer, length, &nwrite); in ssh_tls_send()
3229 Curl_debug(data, CURLINFO_DATA_OUT, (char *)buffer, (size_t)nwrite); in ssh_tls_send()
3230 return nwrite; in ssh_tls_send()
3538 ssize_t nwrite; in scp_send() local
3544 nwrite = (ssize_t) libssh2_channel_write(sshc->ssh_channel, mem, len); in scp_send()
3546 ssh_block2waitfor(data, (nwrite == LIBSSH2_ERROR_EAGAIN)?TRUE:FALSE); in scp_send()
3548 if(nwrite == LIBSSH2_ERROR_EAGAIN) { in scp_send()
3550 nwrite = 0; in scp_send()
3552 else if(nwrite < LIBSSH2_ERROR_NONE) { in scp_send()
3553 *err = libssh2_session_error_to_CURLE((int)nwrite); in scp_send()
3554 nwrite = -1; in scp_send()
3557 return nwrite; in scp_send()
3676 ssize_t nwrite; in sftp_send() local
3681 nwrite = libssh2_sftp_write(sshc->sftp_handle, mem, len); in sftp_send()
3683 ssh_block2waitfor(data, (nwrite == LIBSSH2_ERROR_EAGAIN)?TRUE:FALSE); in sftp_send()
3685 if(nwrite == LIBSSH2_ERROR_EAGAIN) { in sftp_send()
3687 nwrite = 0; in sftp_send()
3689 else if(nwrite < LIBSSH2_ERROR_NONE) { in sftp_send()
3690 *err = libssh2_session_error_to_CURLE((int)nwrite); in sftp_send()
3691 nwrite = -1; in sftp_send()
3694 return nwrite; in sftp_send()