# freebsd: fix std.c.getdents · gitcafe/zig

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

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

Visibility: public

Requested revision: 64ddba955a1f98ab77cfb39844a09f472ebc4609

Requested commit: 64ddba955a1f98ab77cfb39844a09f472ebc4609

Commit: 64ddba955a1f98ab77cfb39844a09f472ebc4609

Tree: cfa19a5d06fabf23feda0cae220c16a2c8512e9c

Author: Michael Dusan

Committer: Michael Dusan

## Message

```
freebsd: fix std.c.getdents

- fix getdents return type usize → isize
- usize ultimately forced errors to .SUCCESS in std.c.getError

New behavior in freebsd 13.2 is to return ENOENT if the directory being
iterated is deleted during iteration. We now detect this and treat it
consistent with iteration ending.

```

## Parents

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

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