# Adds Linux support for POSIX file locking with fcntl · gitcafe/zig

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

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

Visibility: public

Requested revision: 078aa5f7b20e6e705378713a717bc2dd9afb8835

Requested commit: 078aa5f7b20e6e705378713a717bc2dd9afb8835

Commit: 078aa5f7b20e6e705378713a717bc2dd9afb8835

Tree: 29c2dbc7e9072d35837664f799854237a4d76f47

Author: Anthony Carrico

Committer: Veikka Tuominen

## Message

```
Adds Linux support for POSIX file locking with fcntl

On Linux, locking fails with EAGAIN (vs. EACCES on other systems).
This commit also adds FcntlErrors for EDEADLK and ENOLCK.

```

## Parents

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

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