Commit 92fd074
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 2d0da0b commit 92fd074
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 | |
|---|---|---|---|
| |||
11972 | 11972 | | |
11973 | 11973 | | |
11974 | 11974 | | |
11975 | | - | |
11976 | | - | |
11977 | | - | |
11978 | | - | |
11979 | | - | |
11980 | | - | |
11981 | | - | |
11982 | | - | |
| 11975 | + | |
| 11976 | + | |
| 11977 | + | |
| 11978 | + | |
| 11979 | + | |
| 11980 | + | |
| 11981 | + | |
| 11982 | + | |
| 11983 | + | |
| 11984 | + | |
| 11985 | + | |
| 11986 | + | |
11983 | 11987 | | |
11984 | 11988 | | |
11985 | 11989 | | |
11986 | | - | |
11987 | | - | |
11988 | | - | |
11989 | | - | |
11990 | | - | |
11991 | | - | |
| 11990 | + | |
| 11991 | + | |
| 11992 | + | |
| 11993 | + | |
11992 | 11994 | | |
11993 | | - | |
11994 | 11995 | | |
11995 | 11996 | | |
| 11997 | + | |
| 11998 | + | |
| 11999 | + | |
| 12000 | + | |
| 12001 | + | |
| 12002 | + | |
| 12003 | + | |
11996 | 12004 | | |
11997 | 12005 | | |
11998 | 12006 | | |
| |||
0 commit comments