Microware OS-9 上的文件重命名功能
是否有系统调用(C API 函数,而不是汇编程序)来重命名 Microware OS-9 中的文件3.03?
如果没有,是否有公认的方法来完成这项任务?
Is there a system call (C API function, not assembler) to rename a file in Microware OS-9 3.03?
If not, is there an accepted way to accomplish this task?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
回答第二部分:我通过打开文件来解决这个问题。如果打开成功,那么我推断该文件存在。如果打开失败,那么我检查 errno 中的错误。如果是EOS_PNNF,那么我推断该文件不存在。其他任何内容都是错误。
我还是想知道问题的第一部分。
To answer the second part: I worked around this by doing an open on the file. If the open succeeded then I infer the file exists. If the open failed then I check the error in errno. If it's EOS_PNNF, then I infer the file does not exist. Anything else is an error.
I would still like to know about the first part of the question.