I am using the rename function with RTEMS
to attempt to rename files. I am setting up a correct error handling and reporting system when i discovered that RTEMS
does not seem to be conforming to its own errno reporting guide.
So the function in failure will always return -1. The current example is in a directory </D\>
where i have the following:
</D\LALALA>
</D\LALALA_2>
</D\OTHER_DIRECTORY>
I call rename("LALALA_1", "LALALA_2")
which works correctly and the folder is renamed. So i know the function works. If i call rename("LALALA", "LALALA_2")
, it fails returning -1... which is great, but instead of EEXIST
i get errno == -1
.