Commit ffdd751
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.
(cherry picked from commit e3634bb)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent c3b7eb0 commit ffdd751
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 | |
|---|---|---|---|
| |||
12095 | 12095 | | |
12096 | 12096 | | |
12097 | 12097 | | |
12098 | | - | |
12099 | | - | |
12100 | | - | |
12101 | | - | |
12102 | | - | |
12103 | | - | |
12104 | | - | |
12105 | | - | |
| 12098 | + | |
| 12099 | + | |
| 12100 | + | |
| 12101 | + | |
| 12102 | + | |
| 12103 | + | |
| 12104 | + | |
| 12105 | + | |
| 12106 | + | |
| 12107 | + | |
| 12108 | + | |
| 12109 | + | |
12106 | 12110 | | |
12107 | 12111 | | |
12108 | 12112 | | |
12109 | | - | |
12110 | | - | |
12111 | | - | |
12112 | | - | |
12113 | | - | |
12114 | | - | |
| 12113 | + | |
| 12114 | + | |
| 12115 | + | |
| 12116 | + | |
12115 | 12117 | | |
12116 | | - | |
12117 | 12118 | | |
12118 | 12119 | | |
| 12120 | + | |
| 12121 | + | |
| 12122 | + | |
| 12123 | + | |
| 12124 | + | |
| 12125 | + | |
| 12126 | + | |
12119 | 12127 | | |
12120 | 12128 | | |
12121 | 12129 | | |
| |||
0 commit comments