pike.git / src / modules / _Stdio / buffer.cmod

version» Context lines:

pike.git/src/modules/_Stdio/buffer.cmod:1026:    while( sz > written )    {    size_t rd = MINIMUM(sz-written,4096);    ptrdiff_t wr = io_call_write( io, f, rd );    if( wr <= 0 )    {    if (!written) written = -1;    break;    }    written += wr; +  if( wr < 4096 ) +  break;    }    }    RETURN written;    }       /*! @decl int read_sint( int size )    *!    *! Read a network byte order two:s complement signed number of size n*8 bits, then    *! return it.    *!