# std.tar: avoid dependency on file system · gitcafe/zig

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

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

Visibility: public

Requested revision: b3ad45f267f4402855613f100c82b12f950b8143

Requested commit: b3ad45f267f4402855613f100c82b12f950b8143

Commit: b3ad45f267f4402855613f100c82b12f950b8143

Tree: 17e5acffe5bc9843059d7362d032dbfafc8d197c

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.tar: avoid dependency on file system

In the iterator function which is the low-level API, don't depend on
`std.fs.MAX_PATH_BYTES` because this is not defined on all operating
systems, such as freestanding.

However in such environments it still makes sense to be able to extract
from a tar file.

An even more flexible solution would be to accept the buffers as
arguments to iterator() which I think is a good idea, but for now let's
just set the same upper limmit across all operating systems.

```

## Parents

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

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