/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
查看Linux 是否支持epoll
猜你喜欢
转载自www.cnblogs.com/hnhycnlc888/p/12536926.html
今日推荐
周排行