【问题标题】:inotify_init() function not implemented ERRORinotify_init() 函数未实现 ERROR
【发布时间】: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


【解决方案1】:

您的系统使用的内核缺少 inotify 功能。检查您的内核配置并确保它存在。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-12-27
    • 2013-09-10
    • 2022-06-16
    • 2017-08-14
    • 1970-01-01
    • 2023-03-29
    • 2017-04-18
    • 1970-01-01
    相关资源
    最近更新 更多