# std: fix sendfile on macOS and FreeBSD · gitcafe/zig

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

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

Visibility: public

Requested revision: d31b65e762fbf59d29780d4cbf7be1ab824a67de

Requested commit: d31b65e762fbf59d29780d4cbf7be1ab824a67de

Commit: d31b65e762fbf59d29780d4cbf7be1ab824a67de

Tree: f264cc180948c1880b0173d782ec9d0546f818ba

Author: Michael Dusan

Committer: Andrew Kelley

## Message

```
std: fix sendfile on macOS and FreeBSD

- fix std.os.sendfile/FreeBSD use correct in/out fd_t
- fix std.os.sendfile/macOS use correct in/out fd_t
- undo 1141bfb21b82f8d3fc353e968a591f2ad9aaa571 (no longer needed)
- fix c.freebsd.sendfile use off_t value
- fix c.freebsd.sendfile decl correct in/out fd_t
- fix c.darwin.sendfile decl correct in/out fd_t

fix signature param names

```

## Parents

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

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