I'm using mac,I was trying to use inofity and fanotify so I have to
#include <linux/inotify.h>
But I didn't find a directory named "linux" under /usr/include.
Where can I find it? Thanks!
I'm using mac,I was trying to use inofity and fanotify so I have to
#include <linux/inotify.h>
But I didn't find a directory named "linux" under /usr/include.
Where can I find it? Thanks!
Header files in this directory are operating system dependent header files and they are just in Linux. You should search for equivalent of each header file with the same functionalities in other header files and their implementations are not the same.
For example, OS X handles file system change events with an event stream that have completely different implementation compare to iNotify of Linux.