inotify_init()函数未实现错误
问题描述:
我正在使用基于Linux的路由器,我使用inotify_init()
编写代码来监视文件。交叉编译没有警告或错误信息是这样做,但当我尝试执行代码它显示像function not implemented
inotify_init()函数未实现错误
if ((fp = inotify_init()) < 0 ) {
printf("something went wrong with inotify_init()! %s\n", strerror(errno));
printf("#### 1 can't open file\n");
goto err; //exit(0);
}
答
您的系统正在使用缺少inotify的功能内核错误。检查你的内核配置并确保它在那里。
什么是您的嵌入式Linux内核版本?和完整的错误信息? –