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

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

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

Visibility: public

Requested revision: 035219132b1b644095bec85677acc6c0c5651593

Requested commit: 035219132b1b644095bec85677acc6c0c5651593

Commit: 035219132b1b644095bec85677acc6c0c5651593

Tree: fffdc7cb460d6d7f7598c2cf8ef8b521da1628f4

Author: Michael Neumann

Committer: Michael Neumann

## 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

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

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