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

猜你喜欢

转载自wanxw2001.iteye.com/blog/1609417