[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang-tools-extra / docs / clang-tidy / checks / android / cloexec-epoll-create.rst
blob98f0f6c901d6b0e3a4ede34e54da5334c1fa95d7
1 .. title:: clang-tidy - android-cloexec-epoll-create
3 android-cloexec-epoll-create
4 ============================
6 The usage of ``epoll_create()`` is not recommended, it's better to use
7 ``epoll_create1()``, which allows close-on-exec.
9 Examples:
11 .. code-block:: c++
13   epoll_create(size);
15   // becomes
17   epoll_create1(EPOLL_CLOEXEC);