create 出错

小弟在 QNX下,调试了个 help 中 write 部分带的example ,但是,要报错呢,create 文件 失败 ?

fd = create(“myfile.dat”,S_IRUSR | S_IWUSR);

执行后,fd = -1;errno = 89 了(Function not implemented)。

环境:win2000 + vmware5 + qnx6.21pe

从create()的函数说明里抄的。

ENOSYS
The creat() function isn’t implemented for the filesystem specified by path.

你是在哪个目录里create()你的文件的?

/root/workspace/gg01
我在Photon file manager 中,都可以 新建个文件 。

我改用 open 还是一样的错

fd = open( “test.txt”, O_RDONLY );// test.txt 是先用 文件管理器 新建的

fd = open( “myfile.dat”,
O_WRONLY | O_CREAT | O_TRUNC,
S_IRUSR | S_IWUSR );

这个 /root/workspace/gg01 是在vmware里QNX上的吧。有什么特殊么?
可以去别的目录(象 /tmp 什么的)试试。

终于正确了,是这样的,我原来一直用 step into,总是不对;现在用step over 就对了,或者,设置断点,运行也是正确的。奇怪了,为什么step into 就不对呢 ???