ftok info: No such file or directory

简介: ftok info: No such file or directory

共享内存时使用到ftok函数

ftok ("/app", 'i')

问题描述

报错

ftok info: No such file or directory


原因分析:

在当前目录下已近创建了app文件但依旧报错

解决方案:

在根文件目录下创建id文件app

注意:
当前目录下路径指定要加上“.”
ftok (“./app”, ‘i’)才可以
“./”才是当前路径,“/“根目录路径

目录
相关文章
mkdir: cannot create directory `**': No such file or directory
在mkdir时报错的解决方案,在网上找了很多文章都没有说清楚原因。
424 0
libfreetype.so.6: cannot open shared object file: No such file or directory
libfreetype.so.6: cannot open shared object file: No such file or directory
479 0
|
6月前
|
Shell
adb: error: cannot create file/directory ‘d:/1.png‘: No such file or directory
adb: error: cannot create file/directory ‘d:/1.png‘: No such file or directory
102 0
|
6月前
|
Java
cannot open shared object file: No such file or directory
cannot open shared object file: No such file or directory
85 0
|
Python
ERROR: file or directory not found: xx.py
​ 1、问题出现原因 在vscode中已导入pytest框架,做自动化demo小测试,运行Python文件一直出现如题错误,截图如下: ERROR: file or directory not found: xx.py  2、解决办法 1)直接把该文件移到当前主目录下,放在PYTHON-STUDY下 2)VSCode中右键tuopan.py文件,选择[在集成终端中打开],或者通过CD命令进入到tuopan.py文件所在目录 然后输入以下命令即可: 注:上述命令不是换行,在d:/前有空格 ,第一行信息为python所在安装路径,空格后的换行为运行的python文件的所在路径  
155 0
成功解决:ERROR StatusLogger No log4j2 configuration file found.
成功解决:ERROR StatusLogger No log4j2 configuration file found.
|
JavaScript
The file is in the program because: Imported via xxx Root file specified for compilation Vetur(1261)
The file is in the program because: Imported via xxx Root file specified for compilation Vetur(1261)
188 0
The file is in the program because: Imported via xxx Root file specified for compilation Vetur(1261)
objdump: ‘1443.14.0)‘: No such file or directory
objdump: ‘1443.14.0)‘: No such file or directory
108 0
autoreconf: failed to run autopoint: No such file or directory
autoreconf: failed to run autopoint: No such file or directory
208 0
error: ac_nonexistent.h: No such file or directory
error: ac_nonexistent.h: No such file or directory
554 0