# std: Make file copy ops use zero-copy mechanisms · gitcafe/zig

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

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

Visibility: public

Requested revision: 0f248e0988b24bf4fcdaadd0e47127462206711e

Requested commit: 0f248e0988b24bf4fcdaadd0e47127462206711e

Commit: 0f248e0988b24bf4fcdaadd0e47127462206711e

Tree: a90c54f9c5ada84504d1c6775a7e35a8827e1a66

Author: LemonBoy

Committer: LemonBoy

## Message

```
std: Make file copy ops use zero-copy mechanisms

Use copy_file_range on Linux (if available), fcopyfile on Darwin,
sendfile on *BSDs (and on Linux kernels without copy_file_range).

```

## Parents

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

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