简体   繁体   中英

Where to find #include<linux/xxxxx> header files under my MAC

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM