# lib/std/c: sync "struct stat" for DragonFly · gitcafe/zig

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

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

Visibility: public

Requested revision: 8b5e4e032be23c945fb8d96e15249b3b29b51de1

Requested commit: 8b5e4e032be23c945fb8d96e15249b3b29b51de1

Commit: 8b5e4e032be23c945fb8d96e15249b3b29b51de1

Tree: 0d700b1473b538ac9ffb417e14e84a0256370488

Author: Michael Neumann

Committer: Alex Rønne Petersen

## Message

```
lib/std/c: sync "struct stat" for DragonFly

* Add missing functions like ISDIR() or ISREG(). This is required to
  build the zig compiler

* Use octal notation for the S_ constants. This is how it is done for
  ".freebsd" and it is also the notation used by DragonFly in
  "sys/stat.h"

* Reorder S_ constants in the same order as ".freebsd" does. Again, this
  follows the ordering within "sys/stat.h"

```

## Parents

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

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