# std.posix: Default ACCMODE to NONE for serenity · gitcafe/zig

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

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

Visibility: public

Requested revision: 813a0f125e2619f0a056d675339cab6ce34a2cbf

Requested commit: 813a0f125e2619f0a056d675339cab6ce34a2cbf

Commit: 813a0f125e2619f0a056d675339cab6ce34a2cbf

Tree: a2273fd0700d3b949c86768dcb47f110700a690c

Author: Linus Groh

Committer: Linus Groh

## Message

```
std.posix: Default ACCMODE to NONE for serenity

Unlike all other platforms where RDONLY is 0 it does not work as a
default for the O flags on serenity - various syscalls other than
'open', e.g. 'pipe', return EINVAL if unexpected bits are set in the
flags.

```

## Parents

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

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