【发布时间】:2016-12-07 12:04:53
【问题描述】:
我正在开发基于 Linux 的路由器,我使用 inotify_init() 编写代码来监控文件。交叉编译在没有警告或错误消息的情况下完成,但是当我尝试执行该代码时,它会显示类似 function not implemented
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);
}
【问题讨论】:
-
您的嵌入式 linux 内核版本是多少?以及完整的错误信息?
标签: linux-kernel embedded-linux system-calls router inotify