# wasi: implement file truncation · gitcafe/zig

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

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

Visibility: public

Requested revision: e000db278295e6ca61e1d078ae32f83a9abca6da

Requested commit: e000db278295e6ca61e1d078ae32f83a9abca6da

Commit: e000db278295e6ca61e1d078ae32f83a9abca6da

Tree: a5b4984b0a87c1cecf55576eaf314cd2486f956e

Author: Jacob Young

Committer: Andrew Kelley

## Message

```
wasi: implement file truncation

The way this is implemented destroys the contents of the file, so
revisit if this causes issues in the future.

```

## Parents

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

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