xref: /llvm-project/clang-tools-extra/docs/clang-tidy/checks/android/cloexec-inotify-init.rst (revision 6e566bc5523f743bc34a7e26f050f1f2b4d699a8)
1.. title:: clang-tidy - android-cloexec-inotify-init
2
3android-cloexec-inotify-init
4============================
5
6The usage of ``inotify_init()`` is not recommended, it's better to use
7``inotify_init1()``.
8
9Examples:
10
11.. code-block:: c++
12
13  inotify_init();
14
15  // becomes
16
17  inotify_init1(IN_CLOEXEC);
18