c++ - errno failure with rename RTEMS -


i using rename function rtems attempt rename files. setting correct error handling , reporting system when discovered rtems not seem conforming own errno reporting guide.

so function in failure return -1. current example in directory </d\> have following:

 </d\lalala>  </d\lalala_2>  </d\other_directory> 

i call rename("lalala_1", "lalala_2") works correctly , folder renamed. know function works. if call rename("lalala", "lalala_2"), fails returning -1... great, instead of eexist errno == -1.

so looks bug rtems implementation.

https://lists.rtems.org/pipermail/bugs/2014-january/004755.html

it not ever fixed.