[ILUG-BOM] simple alternative to rename()

S. Krishnan sri_krishnan@[EMAIL-PROTECTED]
Tue Jul 17 08:47:02 IST 2001


--- Shahed Ali <shahed at enoor.com> wrote:
> Hi,
> 
> I have a C program which calls rename()
> 
> However, it tries to rename a file from a filesys on
> one device
> to one on another, and this results in errno=18.
> 

I believe rename() does not work across filesystems. 
I do not know of any other system call that provides
similar functionality, so that I guess you will have
to use the copy/ unlink modality, unless of course I
have missed something somewhere in libc.

Rgds,

Krishnan


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



More information about the Linuxers mailing list