Lines Matching refs:towrite
335 ssize_t nwritten, towrite, rc;
340 towrite = ber->ber_ptr - ber->ber_rwptr;
344 (void) fprintf( stderr, catgets(slapdcat, 1, 76, "ber_flush: %1$ld bytes to sd %2$ld%s\n"), towrite,
348 lber_bprint( ber->ber_rwptr, towrite );
355 rc = SSL_write( sb->sb_ssl, (u_char *)ber->ber_buf, towrite );
361 rc = write( sb->sb_fd, ber->ber_buf, towrite );
376 (size_t)towrite );
383 if (rc < towrite) {
393 (size_t) towrite )) <= 0 ) {
399 (size_t) towrite )) <= 0 ) {
403 towrite -= rc;
406 } while ( towrite > 0 );