… | |
… | |
450 | { |
450 | { |
451 | off_t sbytes; |
451 | off_t sbytes; |
452 | res = sendfile (ifd, ofd, offset, count, 0, &sbytes, 0); |
452 | res = sendfile (ifd, ofd, offset, count, 0, &sbytes, 0); |
453 | |
453 | |
454 | if (!res && errno == EAGAIN) |
454 | if (!res && errno == EAGAIN) |
|
|
455 | /* maybe on others, too, as usual, the manpage leaves you guessing */ |
455 | res = sbytes; |
456 | res = sbytes; |
456 | } |
457 | } |
457 | |
458 | |
458 | #elif __hpux |
459 | #elif __hpux |
459 | res = sendfile (ofd, ifd, offset, count, 0, 0); |
460 | res = sendfile (ofd, ifd, offset, count, 0, 0); |