开发者

File Rename Function on Microware OS-9

开发者 https://www.devze.com 2022-12-13 11:37 出处:网络
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?To answer the second part:I wor

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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消