# openbsd: make test lib/std/std.zig pass · gitcafe/zig

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

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

Visibility: public

Requested revision: 09f06082f0b43f93d1d4267539cb29c603fe0d11

Requested commit: 09f06082f0b43f93d1d4267539cb29c603fe0d11

Commit: 09f06082f0b43f93d1d4267539cb29c603fe0d11

Tree: 8b2884451485e53744727e5eb2736b9edea6b8e2

Author: Michael Dusan

Committer: Michael Dusan

## Message

```
openbsd: make test lib/std/std.zig pass

* According to OpenBSD's getdents docs indicate the buffer must be
  greater or or equal to the block size associated with the file and to
  refer to stat(2).
* Use S_BLKSIZE, which is 512, instead of @sizeOf(std.c.dirent), which is 280.
* Oddly the other BSDs are not this picky.

```

## Parents

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

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