# Linux: Add IN_MASK_CREATE and corresponding error handling in inotify_add_watch · gitcafe/zig

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

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

Visibility: public

Requested revision: 1a1b7a3afdd3edac9e8e351ce7e21c91404f8307

Requested commit: 1a1b7a3afdd3edac9e8e351ce7e21c91404f8307

Commit: 1a1b7a3afdd3edac9e8e351ce7e21c91404f8307

Tree: 5d6132c8a0fcacf702bf3804755e49349bbd4d91

Author: Ryan Liptak

Committer: Andrew Kelley

## Message

```
Linux: Add IN_MASK_CREATE and corresponding error handling in inotify_add_watch

From https://man7.org/linux/man-pages/man7/inotify.7.html

> **IN_MASK_CREATE** (since Linux 4.18)
>
> Watch pathname only if it does not already have a watch associated with it; the error EEXIST results if pathname is already being watched.

```

## Parents

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

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