Microware OS-9 上的文件重命名功能

发布于 2024-08-14 06:33:51 字数 165 浏览 10 评论 0原文

是否有系统调用(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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

浅唱々樱花落 2024-08-21 06:33:51

回答第二部分:我通过打开文件来解决这个问题。如果打开成功,那么我推断该文件存在。如果打开失败,那么我检查 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文