Extra Clang Tools 6 documentation

clang-tidy - android-cloexec-inotify-init

«  android-cloexec-fopen   ::   Contents   ::   android-cloexec-inotify-init1  »

android-cloexec-inotify-init

The usage of inotify_init() is not recommended, it’s better to use inotify_init1().

Examples:

inotify_init();

// becomes

inotify_init1(IN_CLOEXEC);

«  android-cloexec-fopen   ::   Contents   ::   android-cloexec-inotify-init1  »