更新时间: 2018-03-06 21:09:36#查看Linux 是否支持epoll#/usr/include/bits/syscall.h这个头文件包含了linux内核所支持的所有系统调用。 查看该linux版本是否支持epoll:#cat syscall.h | grep epoll #define SYS_epoll_create __NR_epoll_create #define SYS_epoll_ctl __NR_epoll_ctl #define SYS_epoll_wait __NR_epoll_wait 是否支持inotify:#cat syscall.h | grep inotify #define SYS_inotify_add_watch __NR_inotify_add_watch #define SYS_inotify_init __NR_inotify_init #define SYS_inotify_rm_watch __NR_inotify_rm_watch