Mail Archives: djgpp/1992/07/08/15:13:16
The rename() function is used to move a file (or directory) within one
device. It is supposed to fail, and set errno to EXDEV, if the source
and destination are not on the same device.
Our implementation sets errno to something other than EXDEV (I think
the actual value was 17, which doesn't correspond to any errno
definition). I believe we could just change the definition of EXDEV
to match the errno value returned by rename(), but I don't know what
other things this might break. I don't know how the value of EXDEV
was arrived at to begin with. An alternative would be to change the
errno value that rename() uses to the current value of EXDEV.
--
Eric Backus
ericb%hplsla AT hplabs DOT hp DOT com
(206) 335-2495
- Raw text -