… | |
… | |
780 | { |
780 | { |
781 | off_t sbytes; |
781 | off_t sbytes; |
782 | res = sendfile (ifd, ofd, offset, count, 0, &sbytes, 0); |
782 | res = sendfile (ifd, ofd, offset, count, 0, &sbytes, 0); |
783 | |
783 | |
784 | if (res < 0 && sbytes) |
784 | if (res < 0 && sbytes) |
785 | /* maybe only on EAGAIN only: as usual, the manpage leaves you guessing */ |
785 | /* maybe only on EAGAIN: as usual, the manpage leaves you guessing */ |
786 | res = sbytes; |
786 | res = sbytes; |
787 | } |
787 | } |
788 | |
788 | |
789 | # elif __hpux |
789 | # elif __hpux |
790 | res = sendfile (ofd, ifd, offset, count, 0, 0); |
790 | res = sendfile (ofd, ifd, offset, count, 0, 0); |