Commit e3634bb
illumos sendfile(3EXT) returns the number of transferred bytes by adding
it to the offset without initializing it, so the offset cannot be used to
detect a partial write. Use sendfilev(3EXT), which reports the number of
transferred bytes in an explicit out parameter.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 4f3e856 commit e3634bb
2 files changed
Lines changed: 26 additions & 15 deletions
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12614 | 12614 | | |
12615 | 12615 | | |
12616 | 12616 | | |
12617 | | - | |
12618 | | - | |
12619 | | - | |
12620 | | - | |
12621 | | - | |
12622 | | - | |
12623 | | - | |
12624 | | - | |
| 12617 | + | |
| 12618 | + | |
| 12619 | + | |
| 12620 | + | |
| 12621 | + | |
| 12622 | + | |
| 12623 | + | |
| 12624 | + | |
| 12625 | + | |
| 12626 | + | |
| 12627 | + | |
| 12628 | + | |
12625 | 12629 | | |
12626 | 12630 | | |
12627 | 12631 | | |
12628 | | - | |
12629 | | - | |
12630 | | - | |
12631 | | - | |
12632 | | - | |
12633 | | - | |
| 12632 | + | |
| 12633 | + | |
| 12634 | + | |
| 12635 | + | |
12634 | 12636 | | |
12635 | | - | |
12636 | 12637 | | |
12637 | 12638 | | |
| 12639 | + | |
| 12640 | + | |
| 12641 | + | |
| 12642 | + | |
| 12643 | + | |
| 12644 | + | |
| 12645 | + | |
12638 | 12646 | | |
12639 | 12647 | | |
12640 | 12648 | | |
| |||
0 commit comments