Lines Matching defs:maxwrite
3877 size_t maxwrite;
3901 maxwrite = bytes;
3913 maxwrite = min(bytes, piosize);
3921 if ((buf = malloc(TBLOCKS(maxwrite) * TBLOCK)) == NULL) {
3932 for (bytesread = 0; bytesread < maxwrite; bytesread += TBLOCK) {
3936 if (write(ofile, buf, maxwrite) < 0) {
3965 bytes -= maxwrite;
3969 * to be written, maxwrite had to have been determined
3973 * just set maxwrite to the number of bytes left to write.
3975 if ((bytes > 0) && (bytes < maxwrite)) {
3976 maxwrite = bytes;