vxworks C++:vxworks中不能重命名文件

vxworks中不能重命名文件:
rename(finFile.c_str(), buFile.c_str());
是什么原因(确认不是路径问题,试过可以创建和删除文件)?

有熟悉vxworks系统的大神可以帮忙解答下吗?

1个回答

检查下文件系统是什么类型。

Currently both the Target Server File System (TSFS) and NFS are not able to be used.

The Target Server File System (TSFS) uses the netDrv driver. This driver does not support any ioctl that allows flushing to the disk,
nor does it allow renaming of files via FIORENAME. The NFS file system uses nfsDrv and that driver does not support FIORENAME and cannot be used with Berkeley DB.

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐