Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有系统调用(C API 函数,而不是汇编程序)来重命名Microware OS-9 3.03 中的文件?
如果没有,是否有一种公认的方式来完成这项任务?
回答第二部分:我通过打开文件来解决这个问题。如果打开成功,那么我推断文件存在。如果打开失败,那么我检查 errno 中的错误。如果是 EOS_PNNF,那么我推断该文件不存在。其他任何事情都是错误。
我仍然想知道问题的第一部分。