Lines Matching defs:nwrite
2960 ssize_t nwrite;
2964 nwrite = (ssize_t)
2967 ssh_block2waitfor(conn, (nwrite == LIBSSH2_ERROR_EAGAIN)?TRUE:FALSE);
2969 if(nwrite == LIBSSH2_ERROR_EAGAIN) {
2971 nwrite = 0;
2973 else if(nwrite < LIBSSH2_ERROR_NONE) {
2974 *err = libssh2_session_error_to_CURLE((int)nwrite);
2975 nwrite = -1;
2978 return nwrite;
3103 ssize_t nwrite; /* libssh2_sftp_write() used to return size_t in 0.14
3108 nwrite = libssh2_sftp_write(conn->proto.sshc.sftp_handle, mem, len);
3110 ssh_block2waitfor(conn, (nwrite == LIBSSH2_ERROR_EAGAIN)?TRUE:FALSE);
3112 if(nwrite == LIBSSH2_ERROR_EAGAIN) {
3114 nwrite = 0;
3116 else if(nwrite < LIBSSH2_ERROR_NONE) {
3117 *err = libssh2_session_error_to_CURLE((int)nwrite);
3118 nwrite = -1;
3121 return nwrite;