[ILUG-BOM] simple alternative to rename()

Shahed Ali shahed@[EMAIL-PROTECTED]
Tue Jul 17 08:18:03 IST 2001


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.

Is there a func that can do this ?

I can of course copy the file and unlink it, but I just wanted 
to know if there was a utility function in linux to already
take care of this.


More information about the Linuxers mailing list