Lines Matching defs:maxwrite
3876 size_t maxwrite;
3900 maxwrite = bytes;
3912 maxwrite = min(bytes, piosize);
3920 if ((buf = malloc(TBLOCKS(maxwrite) * TBLOCK)) == NULL) {
3931 for (bytesread = 0; bytesread < maxwrite; bytesread += TBLOCK) {
3935 if (write(ofile, buf, maxwrite) < 0) {
3964 bytes -= maxwrite;
3968 * to be written, maxwrite had to have been determined
3972 * just set maxwrite to the number of bytes left to write.
3974 if ((bytes > 0) && (bytes < maxwrite)) {
3975 maxwrite = bytes;