# std: add fchmodat · gitcafe/zig

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

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

Visibility: public

Requested revision: bb5006d7287607e49b71d25d263ebcc3d5845c60

Requested commit: bb5006d7287607e49b71d25d263ebcc3d5845c60

Commit: bb5006d7287607e49b71d25d263ebcc3d5845c60

Tree: fb6111622cb48a2af6ac232174ae0dcb8e66f813

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std: add fchmodat

Also add `std.fs.has_executable_bit` for doing conditional compilation.

This adds the linux syscalls for chmod and fchmodat, as well as the
extern libc function declarations.

Only `fchmodat` is added to `std.os`, and it is not yet added to std.fs.

```

## Parents

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

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