delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1992/07/08/15:13:16

From: Eric Backus <ericb AT lsid DOT hp DOT com>
Subject: rename() vs. EXDEV
To: djgpp AT sun DOT soe DOT clarkson DOT edu (djgpp)
Date: Wed, 8 Jul 92 11:28:09 PDT
Mailer: Elm [revision: 66.25]

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019