# std.posix.sendfile: don't write trailers on linux · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/8464efa5dd792de25ee8faa413c89f1daf8b5efb)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 8464efa5dd792de25ee8faa413c89f1daf8b5efb

Requested commit: 8464efa5dd792de25ee8faa413c89f1daf8b5efb

Commit: 8464efa5dd792de25ee8faa413c89f1daf8b5efb

Tree: 4f442e36625e6798de96556174a6138dd7f4bf2a

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.posix.sendfile: don't write trailers on linux

After sending the file, better to return total bytes written. The caller
will decide if they want to do another syscall with the trailers. Maybe
the caller would rather buffer them.

```

## Parents

- [a500651370b3ca60f0fe8fba67d0124f136f0ec0](https://git.cafe/gitcafe/zig/commit/a500651370b3ca60f0fe8fba67d0124f136f0ec0?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/8464efa5dd792de25ee8faa413c89f1daf8b5efb?format=markdown)
