# openbsd: fix std.c.getdents and debitrot · gitcafe/zig

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

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

Visibility: public

Requested revision: 40fc71bf710ae3704c85c718636a190a5106c0cf

Requested commit: 40fc71bf710ae3704c85c718636a190a5106c0cf

Commit: 40fc71bf710ae3704c85c718636a190a5106c0cf

Tree: 96d348047db31367e1bcb86a754546ab0398f252

Author: Michael Dusan

Committer: Michael Dusan

## Message

```
openbsd: fix std.c.getdents and debitrot

- fix getdents return type usize → c_int
- special-case process.zig to use sysctl instead of sysctlbyname
- use struct/field pattern for sysctl HW_* constants

```

## Parents

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

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